You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: server crash with SIGSEGV on startup while trying to reschedule recordings #1712
Thread 1 "tvheadend" hit Breakpoint 1, dvr_entry_rerecord (de=0x5555584dbb30) at src/dvr/dvr_db.c:1483
1483 src/dvr/dvr_db.c: No such file or directory.
(gdb) print de->de_directory
$1 = 0x0
(gdb) s
htsmsg_add_str (msg=0x5555581d8fa0, name=0x55555668a074 "directory", str=0x0) at src/htsmsg.c:372
372 src/htsmsg.c: No such file or directory.
(gdb) n
373 in src/htsmsg.c
(gdb) n
Thread 1 "tvheadend" received signal SIGSEGV, Segmentation fault.
__strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:74
74 ../sysdeps/x86_64/multiarch/strlen-avx2.S: No such file or directory.
(gdb) n
traphandler (sig=11, si=0x7fffffffcff0, UC=0x7fffffffcec0) at src/trap.c:169
169 src/trap.c: No such file or directory.
Activity
bwarden commentedon Jun 18, 2024
This appears to be the offending DVR auto-record entry, taken from
/var/lib/tvheadend/dvr/autorec:882efe313d0de21ffb8a47944b6fa35e.txt
bwarden commentedon Jun 18, 2024
Tested fix via hot-patching binary to call
htsmsg_add_str2instead ofhtsmsg_add_str:Flole998 commentedon Jun 18, 2024
Nice job patching the assembly!
I'll check why the PR hasn't been merged yet, looks like the static analysis somehow got stuck.
Use safer htsmsg_add_str2 when copying de->de_directory
Use safer htsmsg_add_str2 when copying de->de_directory