Project

General

Profile

Bug #1223

segfault

Added by Steve Allison about 12 years ago. Updated about 12 years ago.

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

100%

Estimated time:
(Total: 0.00 h)
Found in version:
3.1.670.g9ed26.dirty
Affected Versions:

Description

CRASH: Signal: 11 in PRG: /usr/bin/tvheadend (3.1.670.g9ed26.dirty) [9816688a8b2d8d8a7e0e3f38ff0fc25507c82008] CWD: /home/hts  
CRASH: Fault address 0x41 (Address not mapped)
CRASH: Loaded libraries: /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/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  
CRASH: Register dump [23]: 0000000000000000 0000000000000000 00007ffff68c64a0 a3d70a3d70a3d70b 00007fffe40fe550 000000000133ee48 0000000000939bf0 000000000133ee48 0000000000469111 0000000000000041 00007fffe40fec90 0000000000469111 0000000000000003 0000000000000011 0000000000000001 00007fffefffd668 00007ffff68c5d7a 0000000000010287 0000000000000033 0000000000000004 000000000000000e fffffffe7ffbfa07 0000000000000041 
CRASH: STACKTRACE
CRASH: /usr/src/tvheadend/src/trap.c:139 0x4249a6
CRASH: ??:0 0x7ffff6b4c030
CRASH: ??:0 0x7ffff68c5d7a
CRASH: /usr/src/tvheadend/src/lang_str.c:33 0x4291b0
CRASH: /usr/src/tvheadend/src/epg.c:297 0x40af37
CRASH: /usr/src/tvheadend/src/epg.c:309 0x40afe6
CRASH: /usr/src/tvheadend/src/epggrab/module/eit.c:554 0x42e6ff
CRASH: /usr/src/tvheadend/src/epggrab/module/eit.c:665 0x42f12c
CRASH: /usr/src/tvheadend/src/dvb/dvb_tables.c:173 0x44459a
CRASH: ??:0 0x7ffff6b43b50
CRASH: clone+0x6d  (/lib/x86_64-linux-gnu/libc.so.6)
Segmentation fault

Attached is gdb output.

Compiled from git #9ed26c1a54 -- https://github.com/tvheadend/tvheadend/tree/9ed26c1a54a173104e2b2c714b75dc7c21036183
Debian Wheezy


Files

debug-log.txt (2.76 KB) debug-log.txt Steve Allison, 2012-09-14 10:53
gdb-bt-full.txt (4.73 KB) gdb-bt-full.txt Steve Allison, 2012-09-14 10:53
gdb-disassemble.txt (1002 Bytes) gdb-disassemble.txt Steve Allison, 2012-09-14 10:53
gdb-info-reg.txt (873 Bytes) gdb-info-reg.txt Steve Allison, 2012-09-14 10:53
gdb-output.txt (1.64 KB) gdb-output.txt Steve Allison, 2012-09-14 10:53

Subtasks

Bug #1227: 3.1.676.g010175 crashInvalid

Actions

History

#1

Updated by Adam Sutton about 12 years ago

  • Category set to EPG

What EPG modules do you have enabled?

#2

Updated by Steve Allison about 12 years ago

Just EIT.

.hts/tvheadend/epggrab/config {
"mod_enabled": {
"uk_freeview": 1,
"eit": 1
}
}

#3

Updated by Adam Sutton about 12 years ago

And second question was this an update from an existing install? I.e. would if have had an existing EPG database?

Some question hanging over whether there is a cockup in recent fixes that mean it crashes with older DBs. Though I'm reviewing the code to see what I might have done.

#4

Updated by Steve Allison about 12 years ago

Fresh install. I removed /home/hts/.hts prior to dpkg -i

#5

Updated by Adam Sutton about 12 years ago

Ta,

That helps to narrow things down.

#6

Updated by Adam Sutton about 12 years ago

  • Status changed from New to Need feedback

Steve,

If you fancy helping to track this down do you think you could pull the latest master and rebuild with some of my additional debug enabled:

make distclean
./configure
CFLAGS=-DEPG_TRACE make

And then run TVH to capture all output to file and ideally get a gdb stack trace to go with it.

Sorry to ask for so much, but the info you've given so far has been pretty detailed but unfortunately I'm struggling to find the root of the problem.

Adam

P.S.
The extra debug will add a LOT of output so might be best to zip it and mail to me directly.

#7

Updated by Steve Allison about 12 years ago

Don't apologies, its the least I can do in return for your hard work.

It hasn't crashed again since, so I'll stop, rebuild with that configure and install.

Is it okay for me to keep the config?
Is logging to syslog enough?

#8

Updated by Adam Sutton about 12 years ago

I'd redirect to file if I were you. It's a LOT of a logging and some syslog implementations get overloaded and stop writing to file from processes that spam the system logs.

Adn don't enable debug logging in the web UI, you'll most likely crash the browser ;)

Adam

#9

Updated by Adam Sutton about 12 years ago

  • Status changed from Need feedback to Fixed

Applied in changeset commit:c3fe6fae734ecef6f7cdecd135f888a803e81105.

#10

Updated by Steve Allison about 12 years ago

I can kill this now? I think I will run out of space over night, haha.

-rw-r--r-- 1 hts  hts  789M Sep 16 23:42 tvheadend-gdb.log
#11

Updated by Adam Sutton about 12 years ago

Yeah that's nice and big ;) still not quite on a par with Andy B's 2G log he mailed me ;)

But yeah I think this should now be fixed, certainly it was a bad bug and would have led to my own crash and could easily explain most of the others.

Update to latest code and run that (without EPG_TRACE) and see what happens.

Adam

Also available in: Atom PDF