Project

General

Profile

Actions

Bug #5896

closed

SIGABRT during record removal on FreeBSD

Added by Martin Rehak almost 5 years ago. Updated almost 5 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Crashes
Target version:
-
Start date:
2020-05-13
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-1857~g221c29b40-dirty
Affected Versions:

Description

I am hitting this frequently with HTS Tvheadend 4.3-1857~g221c29b40-dirty on FreeBSD-12.1. This is on console:

2020-05-13 09:21:07.705 [ DEBUG]:dvr: adding inotify watch to /tv/live (fd=1)
2020-05-13 09:21:07.705 [ INFO]:dvr: delete entry 317667e0c3cb6991651657e5bbd3569f "Fejeton ze skal a kamení" on "CT2 CZ" start time 2020-05-09 08:59:30, scheduled for recording by "192.168.0.38", retention "On file removal" removal "3 days"
2020-05-13 09:21:07.706 [ DEBUG]:dvr: adding inotify watch to /tv/live (fd=1)
2020-05-13 09:21:07.706 [ INFO] dvr: delete entry 6a23133e6d99310c02ca58e46e15a9ed "Australská železnice" on "Prima Zoom CZ" start time 2020-05-09 14:54:30, scheduled for recording by "192.168.0.38", retention "On file removal" removal "3 days"
Abort trap

The issue doesn't relate to any Tvheadend DVB work. If I stop all receivers
and DVR and just remove recordings this abort appears.

No core remains on the filesystem, no stack trace is in the log. I was not
able to track down exact place in the code where the abort happens even after
abort handlers breakpoint has been installed in gdb. The only thing what I
have is a truss output. Complete truss attached.

...
11222: rename("/tv/live/P<C5><99><C3><AD>b<C4><9B>hy ze Zambie-Prima Zoom CZ2020-05-1016-50-1.ts","/tv/live/.<C5><99><C3><AD>b<C4><9B>hy ze Zambie-Prima Zoom CZ2020-05-1016-50-1.ts.removing") = 0 (0x0)
11222: getdirentries(85,"b;\0\0\0\0\0\0u\^W9\^_\0\0\0\08"...,4096,{ 0x1f2de95c }) = 2456 (0x998)
11222: access("/tv/live/P<C5><99><C3><AD>b<C4><9B>hy ze Zambie-Prima Zoom CZ2020-05-1016-50-1.txt",F_OK) ERR#2 'No such file or directory'
11222: getdirentries(85,0x8043f7000,4096,{ 0x1ffd85e0 }) = 0 (0x0)
11222: lseek(91,0x0,SEEK_END) = 185762445 (0xb12828d)
11222: close(85) = 0 (0x0)
11222: access("/tv/live/P<C5><99><C3><AD>b<C4><9B>hy ze Zambie-Prima Zoom CZ2020-05-1016-50-1.edl",F_OK) ERR#2 'No such file or directory'
11222: fcntl(91,F_GETFD,) = 0 (0x0)
11222: fcntl(91,F_SETFD,FD_CLOEXEC) = 0 (0x0)
11222: sigprocmask(SIG_BLOCK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
11222: fstat(91,{ mode=-rw-r--r-- ,inode=107084,size=185762445,blksize=131072 }) = 0 (0x0)
11222: __sysctl(0x7fffd83be7a0,0x2,0x7fffd83bf4f0,0x7fffd83be798,0x0,0x0) = 0 (0x0)
11222: getpid() = 11222 (0x2bd6)
11222: write(91,"2020-05-13 10:17:36.254 [ INFO"...,247) = 247 (0xf7)
11222: sendto(8,"<26>1 2020-05-13T10:17:36.263645"...,109,0,NULL,0) = 109 (0x6d)
11222: close(91) = 0 (0x0)
11222: sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGKILL|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGSTOP|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 }) = 0 (0x0)
11222: kevent(44,0x0,0,{ 43,EVFILT_READ,0x0,0,0,0x800f90c00 },1,{ 0.150000000 }) = 1 (0x1)
11222: sigaction(SIGABRT,{ SIG_DFL 0x0 ss_t },{ SIG_DFL 0x0 ss_t }) = 0 (0x0)
11222: read(43,"GI\^F\^Q\0\0\^A\M-`\0\0\M^D\M-P"...,188000) = 31208 (0x79e8)
11222: sigprocmask(SIG_SETMASK,{ SIGHUP|SIGINT|SIGQUIT|SIGILL|SIGTRAP|SIGABRT|SIGEMT|SIGFPE|SIGBUS|SIGSEGV|SIGSYS|SIGPIPE|SIGALRM|SIGTERM|SIGURG|SIGTSTP|SIGCONT|SIGCHLD|SIGTTIN|SIGTTOU|SIGIO|SIGXCPU|SIGXFSZ|SIGVTALRM|SIGPROF|SIGWINCH|SIGINFO|SIGUSR1|SIGUSR2 },0x0) = 0 (0x0)
11222: sendmsg(40,{NULL,0,[{"\^A\0\0\0\0\^B\0\0\0\0\0\0Q\0\0"...,97},{"\^A\0\0\0\0\^B\0\0\0\0\0\0O\0\0"...,95},{"\^A\0\0\0\0\^B\0\0\0\0\0\0005\0"...,69}],3,{},0,0},MSG_NOSIGNAL) = 261 (0x105)
11222: kevent(37,0x0,0,{ 38,EVFILT_VNODE,EV_CLEAR,NOTE_WRITE,0,0x804404530 },1,0x0) = 1 (0x1)
11222: _umtx_op(0x8044bdeb8,UMTX_OP_NWAKE_PRIVATE,0x1,0x0,0x0) = 0 (0x0)
11222: _umtx_op(0x800f98380,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x0,0x0) = 0 (0x0)
11222: getpid() = 11222 (0x2bd6)
11222: fcntl(38,F_DUPFD_CLOEXEC,0x0) = 85 (0x55)
11222: lseek(85,0x0,SEEK_SET) = 0 (0x0)
11222: kill(11222,SIGABRT) = 0 (0x0)
11222: _umtx_op(0x800f98008,UMTX_OP_WAIT_UINT_PRIVATE,0x0,0x0,0x0) ERR#4 'Interrupted system call'
11222: read(39,"\^A\0\0\0\0\^B\0\0\0\0\0\0Q\0\0"...,335) = 261 (0x105)
11222: SIGNAL 6 (SIGABRT) code=SI_USER pid=11222 uid=984
11222: <thread 101915 exited>
11222: <thread 102390 exited>
...

Could anyone guide me where to place a breakpoint or how to force the core to
be written, please?


Files

trace.gz (3.62 MB) trace.gz truss trace Martin Rehak, 2020-05-13 14:22
core.76255.gz (8.2 MB) core.76255.gz Martin Rehak, 2020-05-15 11:26
Actions

Also available in: Atom PDF