Project

General

Profile

Bug #1257

TVHeadend segfaults

Added by George - over 10 years ago. Updated over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
EPG
Target version:
-
Start date:
2012-09-28
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Found in version:
3.3 from GIT
Affected Versions:

Description

TVH segfaults after commits of Septemer 25th.

Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: Fault address 0x3e800000c66 (N/A)
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/x86_64-linux-gnu/libavahi-common.so.3 /usr/lib/x86_64-linux-gnu/libavahi-client.so.3 /lib/x86_64-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/libdl.so.2 /lib/x86_64-linux-gnu/libpthread.so.0 /lib/x86_64-linux-gnu/libc.so.6 /lib/x86_64-linux-gnu/libdbus-1.so.3 /lib64/ld-linux-x86-64.so.2 /lib/x86_64-linux-gnu/libnss_compat.so.2 /lib/x86_64-linux-gnu/libnsl.so.1 /lib/x86_64-linux-gnu/libnss_nis.so.2 /lib/x86_64-linux-gnu/libnss_files.so.2  
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: Register dump [23]: fefefefefefefeff feff092d63646b68 0000000000000008 0000000000000206 0000000000462fad 0000000000463580 00007fc698002cc0 0000000000000019 0000000000000c66 0000000000000c6c 0000000000462bf8 00007fc6ae763000 0000000000000006 0000000000000000 ffffffffffffffff 00007fc6ab41c4d8 00007fc6ad1a0445 0000000000000206 0000000000000033 0000000000000000 0000000000000000 fffffffe7ffbfa17 0000000000000000 
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: STACKTRACE
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: /home/xbmc/tvheadend/src/trap.c:139 0x425c9b
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: ??:0 0x7fc6ad536cb0
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: gsignal+0x35  (/lib/x86_64-linux-gnu/libc.so.6)
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: abort+0x17b  (/lib/x86_64-linux-gnu/libc.so.6)
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: ??:0 0x7fc6ad19910e
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: ??:0 0x7fc6ad1991b2
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: /home/xbmc/tvheadend/src/epg.c:156 0x40a1f6
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: /home/xbmc/tvheadend/src/epg.c:1055 0x40a254
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: /home/xbmc/tvheadend/src/epg.c:1490 0x40b5a0
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: /home/xbmc/tvheadend/src/epggrab/module/eit.c:524 0x430133
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: /home/xbmc/tvheadend/src/epggrab/module/eit.c:736 0x430f17
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: /home/xbmc/tvheadend/src/dvb/dvb_tables.c:173 0x447b42
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: ??:0 0x7fc6ad52ee9a
Sep 26 07:26:25 mediacenter tvheadend[3174]: CRASH: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)

Subtasks

Bug #1269: Random crashesRejected

Actions

History

#1

Updated by hanza hanza over 10 years ago

i can confirm for same version 3.3

Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: Signal: 6 in PRG: /usr/local/bin/tvheadend (3.3.dirty) [87f1be0d8dfcf21a9a35c45166353e5fd0df8eb3] CWD: /  
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: Fault address 0xc7a (N/A)
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: Loaded libraries: /lib/libssl.so.0.9.8 /lib/libcrypto.so.0.9.8 /lib/i386-linux-gnu/libz.so.1 /usr/lib/i386-linux-gnu/libavahi-common.so.3 /usr/lib/i386-linux-gnu/libavahi-client.so.3 /lib/i386-linux-gnu/librt.so.1 /lib/i386-linux-gnu/libdl.so.2 /lib/i386-linux-gnu/libpthread.so.0 /lib/i386-linux-gnu/libc.so.6 /lib/i386-linux-gnu/libdbus-1.so.3 /lib/ld-linux.so.2 /lib/i386-linux-gnu/libnss_compat.so.2 /lib/i386-linux-gnu/libnsl.so.1 /lib/i386-linux-gnu/libnss_nis.so.2 /lib/i386-linux-gnu/libnss_files.so.2  
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: Register dump [19]: 00000033 c1500000 ffff007b ffff007b 0026cff4 0024633e b6590978 b659096c 00000c7a 00000006 00000c7e 00000000 00000000 00000000 009e5416 00000073 00000202 b659096c 0000007b 
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: STACKTRACE
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/trap.c:139 0x806ca3a
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: __kernel_rt_sigreturn+0x0  ()
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: abort+0x17e  (/lib/i386-linux-gnu/libc.so.6)
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: __assert_fail+0xf8  (/lib/i386-linux-gnu/libc.so.6)
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/epg.c:156 0x805031d
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/epg.c:1055 0x805089d
Sep 26 11:14:12 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/epg.c:1419 0x805144e
Sep 26 11:14:13 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/epg.c:1490 0x8051843
Sep 26 11:14:13 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/epggrab/module/eit.c:524 0x807731b
Sep 26 11:14:13 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/epggrab/module/eit.c:736 0x807822c
Sep 26 11:14:13 sat-atom tvheadend[3194]: CRASH: /home/testing/tvheadend/src/dvb/dvb_tables.c:173 0x8090646
Sep 26 11:14:13 sat-atom tvheadend[3194]: CRASH: ??:0 0xcebe99
Sep 26 11:14:13 sat-atom tvheadend[3194]: CRASH: clone+0x5e  (/lib/i386-linux-gnu/libc.so.6)

#2

Updated by Adam Sutton over 10 years ago

  • Category set to EPG
  • Status changed from New to Need feedback
  • Assignee set to Adam Sutton

Yeah there have been a couple of reports, trying to determine whether it was the EIT mods or the minor mod to EPG scheduling timer. Neither of which should cause this.

If someone can get a GDB trace (bt full) that would really help.

Adam

P.S.
To all: when reporting issues please but the full version (with git hash'ish) in the found version, it really helps.

#3

Updated by George - over 10 years ago

Tried a gdb trace, but I'm not that experienced with it. Hope this helps:

http://pastebin.com/Br4ibwgK

#4

Updated by Adam Sutton over 10 years ago

George,

Thanks, that's perfect. I think I might have figured out what's going on. I'll get back when I've had a chance to check it through. I might not be able to test as it's not happening on my system and I think it will be specific to certain setups.

What I'll do is generate a fix and post it here for you and the others to try.

Regards
Adam

#5

Updated by George - over 10 years ago

You're more than welcome Adam. I really like your work on TVH. Thanks a lot for that.

#6

Updated by Adam Sutton over 10 years ago

Try this branch on my fork:

https://github.com/adamsutton/tvheadend/tree/issue/redmine-1257

I had failed to clear a couple of ptrs that no longer pointed to valid objects, previously this was fine as they were never used before the relevant ptrs were correctly updated. However to solve a minor issue in new HTSP code for another dev I was not accessing the ptrs and causing it to crash.

Hopefully this will fix the issue.

Adam

#7

Updated by George - over 10 years ago

It compiles and it doesn't crash on startup but it gives me the same problems as experienced before: https://www.lonelycoder.com/redmine/boards/5/topics/5535

#8

Updated by Adam Sutton over 10 years ago

Might be a mistake in my fork, I thought I synced it with master before that commit. I'll check.

Adam

#9

Updated by George - over 10 years ago

Hi Adam,

I just changed the my master clone from GIT with your changes to src/epg.c I found in your fork and compiled. It works like it should now.

Regards,

George

#10

Updated by Adam Sutton over 10 years ago

OK, I'll submit the fix to tvheadend/master.

Adam

#11

Updated by Adam Sutton over 10 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

Applied in changeset commit:4e57ef651b0f0775c20d5a5a4d4e96f979f3bb51.

Also available in: Atom PDF