Project

General

Profile

Bug #705

crash after merging pull request #39

Added by Tai Lee almost 11 years ago. Updated almost 11 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2011-09-15
Due date:
% Done:

100%

Estimated time:
Found in version:
d4562ecdeb1c2cfbd9654956aea1c071003efdff
Affected Versions:

Description

Usually happens very soon after starting tvheadend. However, I think it ran for a day or so before the first crash.

[email protected]:/boot/unraid-custom/packages# su nobody -c 'gdb /boot/unraid-custom/src/tvheadend/build.Linux/tvheadend'
GNU gdb (GDB) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying" 
and "show warranty" for details.
This GDB was configured as "i486-slackware-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /boot/unraid-custom/src/tvheadend/build.Linux/tvheadend...done.
(gdb) run -c /boot/unraid-custom/etc/tvheadend/ -C
Starting program: /boot/unraid-custom/src/tvheadend/build.Linux/tvheadend -c /boot/unraid-custom/etc/tvheadend/ -C
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c8ab70 (LWP 18906)]
[New Thread 0xb748ab70 (LWP 18907)]
[New Thread 0xb6c8ab70 (LWP 18908)]
[INFO]:dvb: Found adapter /dev/dvb/adapter0 (NXP TDA10048HN DVB-T) via PCI
[New Thread 0xb648ab70 (LWP 18915)]
tcp_server: epoll_wait: Interrupted system call
[New Thread 0xb5c8ab70 (LWP 18916)]
tcp_server: epoll_wait: Interrupted system call
[INFO]:dvb: Found adapter /dev/dvb/adapter1 (NXP TDA10048HN DVB-T) via PCI
[New Thread 0xb548ab70 (LWP 18919)]
tcp_server: epoll_wait: Interrupted system call
[New Thread 0xb4c8ab70 (LWP 18920)]
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
tcp_server: epoll_wait: Interrupted system call
[INFO]:v4l: /dev/video0: saa7164[0] Hauppauge WinTV-HVR2200 PCI:0000:03:00.0 capabilities: 0x01010001
[INFO]:v4l: /dev/video0: Standard #0: 0000000000001000 NTSC-M, frameperiod: 1001/30000, 525 lines
[INFO]:v4l: /dev/video0: Standard #1: 0000000000002000 NTSC-M-JP, frameperiod: 1001/30000, 525 lines
[INFO]:v4l: /dev/video0: Standard #2: 0000000000004000 NTSC-443, frameperiod: 1001/30000, 525 lines
[INFO]:v4l: /dev/video0: Input #0: tuner (Tuner), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video0: Input #1: composite (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video0: Input #2: svideo (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video0: Input #3: aux (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video0: Input #4: composite 2 (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video0: Input #5: svideo 2 (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video0: Input #6: aux 2 (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video0: Format #0: MPEG [MPEG] 
[INFO]:v4l: Hauppauge WinTV-HVR2200 saa7164[0] PCI:0000:03:00.0: Using adapter
[INFO]:v4l: /dev/video1: saa7164[0] Hauppauge WinTV-HVR2200 PCI:0000:03:00.0 capabilities: 0x01010001
[INFO]:v4l: /dev/video1: Standard #0: 0000000000001000 NTSC-M, frameperiod: 1001/30000, 525 lines
[INFO]:v4l: /dev/video1: Standard #1: 0000000000002000 NTSC-M-JP, frameperiod: 1001/30000, 525 lines
[INFO]:v4l: /dev/video1: Standard #2: 0000000000004000 NTSC-443, frameperiod: 1001/30000, 525 lines
[INFO]:v4l: /dev/video1: Input #0: tuner (Tuner), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video1: Input #1: composite (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video1: Input #2: svideo (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video1: Input #3: aux (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video1: Input #4: composite 2 (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video1: Input #5: svideo 2 (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video1: Input #6: aux 2 (Camera), audio:0x0, tuner:0, standard:0000000000003000, 
[INFO]:v4l: /dev/video1: Format #0: MPEG [MPEG] 
[INFO]:v4l: Hauppauge WinTV-HVR2200 saa7164[0] PCI:0000:03:00.0: Using adapter
[New Thread 0xb4458b70 (LWP 18922)]
tcp_server: epoll_wait: Interrupted system call
[NOTICE]:EPG: Injected 3506 event from disk database
[INFO]:dvr: Creating new configuration ''
[INFO]:CSA: Using SSE2 128bit parallel descrambling
[NOTICE]:START: HTS Tvheadend version git-d4562ec started, running as PID:18901 UID:99 GID:100, settings located in '/boot/unraid-custom/etc/tvheadend/'
[INFO]:dvr: "Packed To The Rafters" on "7 Digital": Updated Timer

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb5c8ab70 (LWP 18916)]
0xb7d13d03 in strlen () from /lib/libc.so.6
(gdb) info reg
eax            0x0      0
ecx            0x0      0
edx            0x8385880        137910400
ebx            0xb7df8ff4       -1210085388
esp            0xb5c841fc       0xb5c841fc
ebp            0xb5c84218       0xb5c84218
esi            0x0      0
edi            0x4e73343b       1316172859
eip            0xb7d13d03       0xb7d13d03 <strlen+51>
eflags         0x210246 [ PF ZF IF RF ID ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51
(gdb) disassemble $pc-32,$pc+32
Dump of assembler code from 0xb7d13ce3 to 0xb7d13d23:
   0xb7d13ce3 <strlen+19>:      inc    %eax
   0xb7d13ce4 <strlen+20>:      xor    $0x3,%ecx
   0xb7d13ce7 <strlen+23>:      je     0xb7d13d03 <strlen+51>
   0xb7d13ce9 <strlen+25>:      cmp    %ch,(%eax)
   0xb7d13ceb <strlen+27>:      je     0xb7d13d7a <strlen+170>
   0xb7d13cf1 <strlen+33>:      add    $0x1,%eax
   0xb7d13cf4 <strlen+36>:      sub    $0x1,%ecx
   0xb7d13cf7 <strlen+39>:      je     0xb7d13d03 <strlen+51>
   0xb7d13cf9 <strlen+41>:      cmp    %ch,(%eax)
   0xb7d13cfb <strlen+43>:      je     0xb7d13d7a <strlen+170>
   0xb7d13cfd <strlen+45>:      sub    $0xf,%eax
   0xb7d13d00 <strlen+48>:      add    $0x10,%eax
=> 0xb7d13d03 <strlen+51>:      mov    (%eax),%ecx
   0xb7d13d05 <strlen+53>:      mov    $0xfefefeff,%edx
   0xb7d13d0a <strlen+58>:      add    %ecx,%edx
   0xb7d13d0c <strlen+60>:      jae    0xb7d13d67 <strlen+151>
   0xb7d13d0e <strlen+62>:      xor    %ecx,%edx
   0xb7d13d10 <strlen+64>:      or     $0xfefefeff,%edx
   0xb7d13d16 <strlen+70>:      inc    %edx
   0xb7d13d17 <strlen+71>:      jne    0xb7d13d67 <strlen+151>
   0xb7d13d19 <strlen+73>:      mov    0x4(%eax),%ecx
   0xb7d13d1c <strlen+76>:      mov    $0xfefefeff,%edx
   0xb7d13d21 <strlen+81>:      add    %ecx,%edx
End of assembler dump.
(gdb) bt full
#0  0xb7d13d03 in strlen () from /lib/libc.so.6
No symbol table info available.
#1  0xb7d13a35 in strdup () from /lib/libc.so.6
No symbol table info available.
#2  0x0806c1e3 in dvr_entry_update (de=0x8385880, de_title=0x0, de_start=1316169212, de_stop=1316172859)
    at /boot/unraid-custom/src/tvheadend/src/dvr/dvr_db.c:620
No locals.
#3  0x0806c909 in dvr_event_replaced (e=0x8326688, new_e=0x0) at /boot/unraid-custom/src/tvheadend/src/dvr/dvr_db.c:647
        de = 0x0
        ude = 0x8385880
#4  0x080508e2 in epg_erase_duplicates (ch=0x81f4e40, start=1316169212, stop=1316172859, dvb_id=41433, created=0x0)
    at /boot/unraid-custom/src/tvheadend/src/epg.c:427
        dvb_id = 41433
#5  epg_event_create (ch=0x81f4e40, start=1316169212, stop=1316172859, dvb_id=41433, created=0x0)
    at /boot/unraid-custom/src/tvheadend/src/epg.c:410
        skel = 0x0
        e = 0x8326688
        tally = 3716
#6  0x08080f6f in dvb_eit_callback (tdmi=<value optimized out>, 
    ptr=0xb5c89515 "M.eng\021Underbelly: Razor\030The Darlinghurst OutrageN\375\001eng", len=1451, tableid=80 'P', opaque=0x0)
    at /boot/unraid-custom/src/tvheadend/src/dvb/dvb_tables.c:565
        changed = <value optimized out>
        t = 0x81f7fc0
        ch = 0x81f4e40
        tda = <value optimized out>
        transport_stream_id = <value optimized out>
        start_time = 0
        stop_time = 1316172859
        dllen = 487
        dtag = <value optimized out>
        dlen = <value optimized out>
        title = "The Farmer Wants A Wife\000\024\223\310\265\210\221\310\265\332\235\005\[email protected]\037\b\364\217\337\267\344I\000\000\300\177\037\b\303\222\310\265w\000\000\000(\222\310\265\321\270\005\b\270\200\037\bG\002\000\000\354\221\310\265\003\000\000\000\324\222\310\265\002\001\000\000\310\221\310\265\f\222\310\265\324\222\310\265\002\001\000\000\005\000\000\000\334\025\b\303\003\000\000\000\377\377\377\377\377\377\377\377\000\000\000\000\000\000\000\000\003\000\000\000L\377\037\b\000\374\037\v\001\t\000\000\351\003\000\000\000\000\000\000\005\000\000\000\340\065\070)\360\000\000\000!\004\000\000\023\000\000\000\214\r\037\b\361\261\342\267\f\000\000\000\000\000\000\000\247\257\342\267(\243\310\265X\222\310\265d\304\342\267\270\200\037\bw\000\000\000h\222\310\265S\f\b\b\300\177\037\b\270\200\037\bh\222\310\265\\\f\b\b\270\200\037\b\030\060\037\bh\222\310\265" 
        desc = "The Farmer Wants A Wife\000Tigers v NZ Warriors\000rongly imprisoned for the rape and abduction of an 11-year-old girl in 1993. M (L,A) CC 2009 Rpt\000 back Allison, the girl he loves. M (V) CC\000t clients. M CC"...
        extdesc = '\000' <repeats 1444 times>"\376, ~\310\265[\000\000\000$p\310\265\243\211\320\267\016w\310\265\376~\310\265[\000\000\000\260u\310\265#\000\000\000\260u\310\265Dv\310\265\001\000\000\000`\220\310\265[\000\000\000\364\217\337\267\260u\310\265#J\f\b\214u\310\265\226\245\315\267\260u\310\265#J\f\b\000\000\000\000\314u\310\265U\244\t\b\250u\310\265\000\000\000\000\314u\310\265T\244\t\b\001\000\000\000\002", '\000' <repeats 11 times>, "\001", '\000' <repeats 39 times>"\377, \377\377\377", '\000' <repeats 23 times>, " \377\377\377\377", '\000' <repeats 24 times>"\374, t\310\265\000\000\000\000\000\000\000\000\260\a\000\000\fu\310\265\377\377\377\377\245\377\377\377\001\000\000\000\000\000\000\000\370\257\315\267\320v\310\265#J\f\b \211\337\267#J\f\bDv\310\265\004\000\000\000\036J\f\b\000\000\000\000\324v\310\265\036J\f\bk\000\000\000`v\310\265\004\000\000\000>\244\t\b\000\000\000\000\270\207\310\265=\244\t\bV", '\000' <repeats 1059 times>, "$\210\320\267\000\000\000\000\000\000\000\000\364"...
        extitem = '\000' <repeats 4999 times>
        exttext = "Tonight our farmers take a fresh approach to love. They are taking their favourites off the farm for romantic overnight dates. While love is defiantly in the air for some, for others competing for one"...
        e = 0x0
#7  0x08081980 in dvb_proc_table (aux=0x81f3018) at /boot/unraid-custom/src/tvheadend/src/dvb/dvb_tables.c:220
        chkcrc = 1
        tableid = <value optimized out>
        len = 137910400
        ret = <value optimized out>
#8  dvb_table_input (aux=0x81f3018) at /boot/unraid-custom/src/tvheadend/src/dvb/dvb_tables.c:264
        r = 1458
        i = 0
        x = <value optimized out>
        ev = {{events = 1, data = {ptr = 0x36, fd = 54, u32 = 54, u64 = 77309411382}}}
        sec = "P\365\257\004\"\363X\370\004 \020\022XR\241\327\332\f\t\000\005\000\060\066\000\302M\023eng\aThe Zoo\aThe ZooNz\000eng\000tThe Zoo takes you behind the scenes at Auckland Zoo, bringing you great stories about the animals and their keepers.T\002\000\000P\022\362\003\000engStereo AudioU\004AUS\006v\t\304\a/ZOO0"...
        tdmi = <value optimized out>
        tdt = 0x81f43b8
        cycle_barrier = 0
        __PRETTY_FUNCTION__ = "dvb_table_input" 
#9  0xb7e28830 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#10 0xb7d7a15e in clone () from /lib/libc.so.6
No symbol table info available.
(gdb)

History

#1

Updated by Hein Rigolo almost 11 years ago

Is this now solved with Revision c88a6469?

#2

Updated by Hein Rigolo almost 11 years ago

  • Target version set to 2.13
  • % Done changed from 0 to 90
#3

Updated by Hein Rigolo almost 11 years ago

  • % Done changed from 90 to 100

closed this bug after one month ... I assume this is solved now.

#4

Updated by Hein Rigolo almost 11 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF