Bug #2303
tvheadend (3.9.1450~g6e42115) crashes when trying to delete invalid entry
0%
Description
Steps to reproduce:
1. In the web interface, add manually a new recording entry. Fill all fields without Channel.
2. The entry is accepted but automatically send to "failed" recordings.
3. Try to delete the entry.
I was able to repeatedly get the following crash:
2014-09-15 23:28:05.688 [ ALERT] CRASH: Signal: 6 in PRG: tvheadend (3.9.1450~g6e42115) [af029fd6d00059a9f2f92eb31b30ecd4b75fc73f] CWD: /capture/dvb
2014-09-15 23:28:05.688 [ ALERT] CRASH: Fault address 0x5f18 (N/A)
2014-09-15 23:28:05.688 [ ALERT] CRASH: Loaded libraries: linux-gate.so.1 /usr/lib/libssl.so.1 /usr/lib/libcrypto.so.1 /usr/lib/libz.so.1 /usr/lib/libXv.so.1 /usr/lib/libXfixes.so.3 /usr/lib/libXext.so.6 /usr/lib/libX11.so.6 /usr/lib/libasound.so.2 /usr/lib/libSDL-1.2.so.0 /lib/libpthread.so.0 /usr/lib/libx264.so.142 /usr/lib/libvorbisenc.so.2 /usr/lib/libvorbis.so.0 /usr/lib/libtheoraenc.so.1 /usr/lib/libtheoradec.so.1 /usr/lib/libogg.so.0 /usr/lib/libmp3lame.so.0 /usr/lib/libfaac.so.0 /lib/libbz2.so.1 /lib/libm.so.6 /usr/lib/libdbus-1.so.3 /lib/libdl.so.2 /lib/librt.so.1 /lib/libc.so.6 /usr/lib/libxcb.so.1 /usr/lib/libXau.so.6 /usr/lib/libXdmcp.so.6 /lib/ld-linux.so.2 /usr/lib/libXrandr.so.2 /usr/lib/libXrender.so.1 /usr/lib/libvga.so.1
2014-09-15 23:28:05.688 [ ALERT] CRASH: Register dump [19]: 089bda5300000033089bda53c0770000089bda53ffff007b089bda530000007b089bda53b6d52000089bda5300000028089bda53ad3022a0089bda53aa0fe904089bda5300005f18089bda5300000006089bda5300006617089bda5300000000089bda5300000000089bda5300000000089bda53b6bfa05c089bda5300000073089bda5300200206089bda53aa0fe904089bda530000007b
2014-09-15 23:28:05.688 [ ALERT] CRASH: STACKTRACE
2014-09-15 23:28:05.919 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/trap.c:148 0x80dfff3
2014-09-15 23:28:05.919 [ ALERT] CRASH: __kernel_rt_sigreturn+0x0 (linux-gate.so.1)
2014-09-15 23:28:05.919 [ ALERT] CRASH: gsignal+0x3c (/lib/libc.so.6)
2014-09-15 23:28:05.919 [ ALERT] CRASH: abort+0x143 (/lib/libc.so.6)
2014-09-15 23:28:05.931 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/dvr/dvr_db.c:2646 0x8103b87
2014-09-15 23:28:05.941 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/idnode.c:187 0x80b7eea
2014-09-15 23:28:05.953 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/api/api_idnode.c:483 0x80f39f9
2014-09-15 23:28:05.964 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/api.c:94 0x80f21af
2014-09-15 23:28:05.980 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/webui/webui_api.c:43 0x810eecc
2014-09-15 23:28:05.990 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/http.c:478 0x80c27a1
2014-09-15 23:28:06.001 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/http.c:572 0x80c2e2b
2014-09-15 23:28:06.011 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/http.c:900 0x80c3203
2014-09-15 23:28:06.022 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/tcp.c:447 0x80bf4aa
2014-09-15 23:28:06.032 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140912_1246/src/wrappers.c:125 0x80bcdf1
2014-09-15 23:28:06.040 [ ALERT] CRASH: ??:0 0xb7217df5
2014-09-15 23:28:06.040 [ ALERT] CRASH: clone+0x5e (/lib/libc.so.6)
I tried a little bit newer git version and I'm not getting the crash anymore. Instead I get infinite loop in tvheadend. Now it hangs right after start.
History
Updated by Jaroslav Kysela about 10 years ago
Please, test with more recent version. The actual master is v3.9-1498-g89ee111 .
Updated by Ivan Kalvachev about 10 years ago
Here you go:
2014-09-17 02:53:53.373 [ ALERT] CRASH: Signal: 6 in PRG: tvheadend (3.9.1500~gf35f4ce) [03c3aa0f110e27dbec69509b097cf1957993922b] CWD: /capture/dvb
2014-09-17 02:53:53.373 [ ALERT] CRASH: Fault address 0x59ae (N/A)
2014-09-17 02:53:53.373 [ ALERT] CRASH: Loaded libraries: linux-gate.so.1 /usr/lib/libssl.so.1 /usr/lib/libcrypto.so.1 /usr/lib/libz.so.1 /usr/lib/libXv.so.1 /usr/lib/libXfixes.so.3 /usr/lib/libXext.so.6 /usr/lib/libX11.so.6 /usr/lib/libasound.so.2 /usr/lib/libSDL-1.2.so.0 /lib/libpthread.so.0 /usr/lib/libx264.so.142 /usr/lib/libvorbisenc.so.2 /usr/lib/libvorbis.so.0 /usr/lib/libtheoraenc.so.1 /usr/lib/libtheoradec.so.1 /usr/lib/libogg.so.0 /usr/lib/libmp3lame.so.0 /usr/lib/libfaac.so.0 /lib/liblzma.so.5 /lib/libbz2.so.1 /lib/libm.so.6 /usr/lib/libdbus-1.so.3 /lib/libdl.so.2 /lib/librt.so.1 /lib/libc.so.6 /usr/lib/libxcb.so.1 /usr/lib/libXau.so.6 /usr/lib/libXdmcp.so.6 /lib/ld-linux.so.2 /usr/lib/libXrandr.so.2 /usr/lib/libXrender.so.1 /usr/lib/libvga.so.1
2014-09-17 02:53:53.373 [ ALERT] CRASH: Register dump [19]: 089cc3b300000033089cc3b300000000089cc3b30000007b089cc3b30000007b089cc3b3b6cd7000089cc3b300000028089cc3b3acc01588089cc3b3acafe8f4089cc3b3000059ae089cc3b300000006089cc3b300005a6c089cc3b300000000089cc3b300000000089cc3b300000000089cc3b3b6b7f05c089cc3b300000073089cc3b300200202089cc3b3acafe8f4089cc3b30000007b
2014-09-17 02:53:53.373 [ ALERT] CRASH: STACKTRACE
2014-09-17 02:53:53.422 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/trap.c:148 0x80e1183
2014-09-17 02:53:53.422 [ ALERT] CRASH: __kernel_rt_sigreturn+0x0 (linux-gate.so.1)
2014-09-17 02:53:53.422 [ ALERT] CRASH: gsignal+0x3c (/lib/libc.so.6)
2014-09-17 02:53:53.422 [ ALERT] CRASH: abort+0x143 (/lib/libc.so.6)
2014-09-17 02:53:53.434 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/dvr/dvr_db.c:2743 0x8105127
2014-09-17 02:53:53.444 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/idnode.c:187 0x80b83fa
2014-09-17 02:53:53.459 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/api/api_idnode.c:483 0x80f4ba9
2014-09-17 02:53:53.469 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/api.c:97 0x80f3368
2014-09-17 02:53:53.485 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/webui/webui_api.c:43 0x81117dc
2014-09-17 02:53:53.499 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/http.c:487 0x80c2f51
2014-09-17 02:53:53.509 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/http.c:581 0x80c35db
2014-09-17 02:53:53.520 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/http.c:909 0x80c39b3
2014-09-17 02:53:53.530 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/tcp.c:447 0x80bfbaa
2014-09-17 02:53:53.539 [ ALERT] CRASH: /tmp/tvheadend-3.9_GIT20140917_0104/src/wrappers.c:125 0x80bd351
Updated by Jaroslav Kysela about 10 years ago
- Status changed from New to Fixed
Thanks. Fixed in v3.9-1501-g54dd7dd .