[mythtv] DVB failure followed by segmentation fault
Brian May
bam at snoopy.apana.org.au
Fri Apr 9 18:39:37 EDT 2004
I am not sure what is going on here...
First the DVB fails, and then mythbackend segfaults. Mythbackend
shouldn't segfault, I consider this to be a bug.
I can't seem to restart mythbackend, I suspect a reboot is required.
When I reboot, I doubt I will be able to reproduce this crash again, I
haven't seen it before.
The frontend is currently running, and showing a recorded show. I
suspect this isn't related to the crash.
The following was with debug information in all mythtv libraries and
programs.
This is the CVS version as of 2004-04-02.
Is there anything else I can do to help get this rectified (assuming I
still can reproduce it)?
launchpad:~/tree/mythtv$ gdb ./programs/mythbackend/mythbackend
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) set args "-v all"
(gdb) handle SIGPIPE nostop
Signal Stop Print Pass to program Description
SIGPIPE No Yes Yes Broken pipe
(gdb) r
Starting program: /home/mythtv/tree/mythtv/programs/mythbackend/mythbackend "-v all"
[New Thread 16384 (LWP 2113)]
Invalid argument: -v all
Valid options are:
-l or --logfile filename Writes STDERR and STDOUT messages to filename
-p or --pidfile filename Write PID of mythbackend to filename
-d or --daemon Runs mythbackend as a daemon
-v or --verbose debug-level Prints more information
Accepts any combination (separated by comma)
of all,none,quiet,record,playback,
channel,osd,file,schedule,network,commflag
--printexpire List of auto-expire programs
--printsched Upcoming scheduled programs
--version Version information
Program exited with code 0377.
(gdb) set args -v all
(gdb) r
Starting program: /home/mythtv/tree/mythtv/programs/mythbackend/mythbackend -v all
[New Thread 16384 (LWP 2115)]
Starting up as the master server.
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 0
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 1
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 2
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 3
2004-04-10 18:23:27 Probed: /dev/video0 - Tuner 0
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 4
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 0
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 1
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 2
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 3
2004-04-10 18:23:27 TuneTo(7) curList[i].freq(182250)
2004-04-10 18:23:27 TuneToFrequency(2916)
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 0
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 1
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 2
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 3
2004-04-10 18:23:27 Probed: /dev/video0 - Tuner 0
2004-04-10 18:23:27 Probed: /dev/video0 - Composite 4
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 0
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 1
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 2
2004-04-10 18:23:27 Probed: /dev/video0 - S-Video 3
[New Thread 32769 (LWP 2124)]
[New Thread 16386 (LWP 2125)]
2004-04-10 18:23:27 DVB#0 ERROR - Opening DVB frontend device failed.
(2) No such file or directory
[New Thread 32771 (LWP 2128)]
[New Thread 49156 (LWP 2129)]
[New Thread 65541 (LWP 2130)]
[New Thread 81926 (LWP 2131)]
2004-04-10 18:23:27 Found changes in the todo list.
[New Thread 98311 (LWP 2132)]
2004-04-10 18:23:27 mythbackend version: 0.15.20040324-1 www.mythtv.org
2004-04-10 18:23:27 Enabled verbose msgs :all
[New Thread 114696 (LWP 2133)]
[New Thread 131081 (LWP 2134)]
2004-04-10 18:23:27 Scheduling:
+Doctor Who 2 12004 12 17:55-18:30 12 9 5 A 0 9 3
+Doctor Who 2 12004 13 17:55-18:30 12 9 5 A 0 9 3
+Doctor Who 2 12004 14 17:55-18:30 12 9 5 A 0 9 3
+Doctor Who 2 12004 15 17:55-18:30 12 9 5 A 0 9 3
+ABC News 2 12004 10 19:00-19:30 12 9 5 T 0 9 2
+ABC News 2 12004 11 19:00-19:30 12 9 5 T 0 9 2
+ABC News 2 12004 12 19:00-19:30 12 9 5 T 0 9 2
+ABC News 2 12004 13 19:00-19:30 12 9 5 T 0 9 2
+ABC News 2 12004 14 19:00-19:30 12 9 5 T 0 9 2
+ABC News 2 12004 15 19:00-19:30 12 9 5 T 0 9 2
+ABC News 2 12004 16 19:00-19:30 12 9 5 T 0 9 2
+60 Minutes 9 12000 11 19:30-20:30 12 9 5 A 0 9 2
+Today Tonight 7 12001 12 18:30-19:00 12 9 5 A 0 9 2
+24 7 12001 12 21:30-22:35 12 9 5 A 0 9 2
+Today Tonight 7 12001 13 18:30-19:00 12 9 5 A 0 9 2
+CSI: Crime Scene Investigation 9 12000 13 20:30-21:35 12 9 5 A 0 9 2
+Today Tonight 7 12001 14 18:30-19:00 12 9 5 A 0 9 2
+Blue Heelers 7 12001 14 20:30-21:35 12 9 5 A 0 9 2
+Today Tonight 7 12001 15 18:30-19:00 12 9 5 A 0 9 2
+Charmed 10 12003 15 19:30-20:35 12 9 5 A 0 9 2
+Angel 7 12001 15 23:25-00:25 12 9 5 A 0 9 2
+James Cameron's Dark Angel 7 12001 16 00:25-02:40 12 9 5 A 0 9 2
+Agatha Christie's Poirot 31 12005 16 15:00-16:05 12 9 5 A 0 9 2
+Today Tonight 7 12001 16 18:30-19:00 12 9 5 A 0 9 2
+The Simpsons 10 12003 11 18:00-18:30 12 9 5 A 0 9 1
+A Current Affair 9 12000 12 18:30-19:00 12 5 6 A 0 5 1
+The Simpsons 10 12003 12 20:00-20:30 12 9 5 A 0 9 1
+A Current Affair 9 12000 13 18:30-19:00 12 5 6 A 0 5 1
+All Saints 7 12001 13 20:30-21:30 12 5 6 A 0 5 1
+Alias 7 12001 13 21:30-22:35 12 5 6 A 0 5 1
+A Current Affair 9 12000 14 18:30-19:00 12 5 6 A 0 5 1
+The Simpsons 10 12003 14 19:30-20:30 12 9 5 A 0 9 1
+CSI: Miami 9 12000 14 20:30-21:40 12 5 6 A 0 5 1
+A Current Affair 9 12000 15 18:30-19:00 12 5 6 A 0 5 1
+Inspector Rex 28 12002 15 19:29-20:25 12 5 6 A 0 5 1
+ER 9 12000 15 20:30-21:35 12 5 6 A 0 5 1
+The Simpsons 10 12003 16 18:00-18:30 12 9 5 A 0 9 1
+A Current Affair 9 12000 16 18:30-19:00 12 5 6 A 0 5 1
+The Simpsons 10 12003 16 19:30-20:30 12 9 5 A 0 9 1
+The Simpsons 10 12003 10 18:00-18:30 12 9 5 A 0 9 1
+The Simpsons 10 12003 13 18:00-18:30 12 5 6 A 0 5 0
+The Simpsons 10 12003 14 18:00-18:30 12 5 6 A 0 5 0
+The Simpsons 10 12003 15 18:00-18:30 12 5 6 A 0 5 0
+National Nine News Sunday 9 12000 11 18:00-18:30 12 5 6 A 0 5 -1
+National Nine News 9 12000 12 18:00-18:30 12 5 6 A 0 5 -1
+National Nine News 9 12000 16 18:00-18:30 12 5 6 A 0 5 -1
--- print list start ---
Title - Subtitle Chan ChID Day Start End S C I T O N Pri
The Simpsons 10 12003 10 18:00-18:30 12 9 5 A 0 9 1
ABC News 2 12004 10 19:00-19:30 12 9 5 T 0 9 2
The Simpsons 10 12003 11 18:00-18:30 12 9 5 A 0 9 1
National Nine News Sunday 9 12000 11 18:00-18:30 12 5 6 A 0 5 -1
[New Thread 147466 (LWP 2135)]
ABC News 2 12004 11 19:00-19:30 12 9 5 T 0 9 2
60 Minutes 9 12000 11 19:30-20:30 12 9 5 A 0 9 2
Doctor Who 2 12004 12 17:55-18:30 12 9 5 A 0 9 3
National Nine News 9 12000 12 18:00-18:30 12 5 6 A 0 5 -1
Today Tonight 7 12001 12 18:30-19:00 12 9 5 A 0 9 2
A Current Affair 9 12000 12 18:30-19:00 12 5 6 A 0 5 1
ABC News 2 12004 12 19:00-19:30 12 9 5 T 0 9 2
The Simpsons 10 12003 12 20:00-20:30 12 9 5 A 0 9 1
24 7 12001 12 21:30-22:35 12 9 5 A 0 9 2
Doctor Who 2 12004 13 17:55-18:30 12 9 5 A 0 9 3
The Simpsons 10 12003 13 18:00-18:30 12 5 6 A 0 5 0
National Nine News 9 12000 13 18:00-18:30 12 0 0 A 0 C 0
Today Tonight 7 12001 13 18:30-19:00 12 9 5 A 0 9 2
A Current Affair 9 12000 13 18:30-19:00 12 5 6 A 0 5 1
ABC News 2 12004 13 19:00-19:30 12 9 5 T 0 9 2
All Saints 7 12001 13 20:30-21:30 12 5 6 A 0 5 1
The Simpsons 10 12003 13 20:30-21:30 12 0 0 A 0 C 1
CSI: Crime Scene Investigation 9 12000 13 20:30-21:35 12 9 5 A 0 9 2
Alias 7 12001 13 21:30-22:35 12 5 6 A 0 5 1
Doctor Who 2 12004 14 17:55-18:30 12 9 5 A 0 9 3
The Simpsons 10 12003 14 18:00-18:30 12 5 6 A 0 5 0
National Nine News 9 12000 14 18:00-18:30 12 0 0 A 0 C 0
Today Tonight 7 12001 14 18:30-19:00 12 9 5 A 0 9 2
A Current Affair 9 12000 14 18:30-19:00 12 5 6 A 0 5 1
ABC News 2 12004 14 19:00-19:30 12 9 5 T 0 9 2
The Simpsons 10 12003 14 19:30-20:30 12 9 5 A 0 9 1
Blue Heelers 7 12001 14 20:30-21:35 12 9 5 A 0 9 2
CSI: Miami 9 12000 14 20:30-21:40 12 5 6 A 0 5 1
Doctor Who 2 12004 15 17:55-18:30 12 9 5 A 0 9 3
The Simpsons 10 12003 15 18:00-18:30 12 5 6 A 0 5 0
National Nine News 9 12000 15 18:00-18:30 12 0 0 A 0 C 0
Today Tonight 7 12001 15 18:30-19:00 12 9 5 A 0 9 2
A Current Affair 9 12000 15 18:30-19:00 12 5 6 A 0 5 1
ABC News 2 12004 15 19:00-19:30 12 9 5 T 0 9 2
Inspector Rex 28 12002 15 19:29-20:25 12 5 6 A 0 5 1
Charmed 10 12003 15 19:30-20:35 12 9 5 A 0 9 2
ER 9 12000 15 20:30-21:35 12 5 6 A 0 5 1
Angel 7 12001 15 23:25-00:25 12 9 5 A 0 9 2
James Cameron's Dark Angel 7 12001 16 00:25-02:40 12 9 5 A 0 9 2
Agatha Christie's Poirot 31 12005 16 15:00-16:05 12 9 5 A 0 9 2
The Simpsons 10 12003 16 18:00-18:30 12 9 5 A 0 9 1
National Nine News 9 12000 16 18:00-18:30 12 5 6 A 0 5 -1
Today Tonight 7 12001 16 18:30-19:00 12 9 5 A 0 9 2
A Current Affair 9 12000 16 18:30-19:00 12 5 6 A 0 5 1
ABC News 2 12004 16 19:00-19:30 12 9 5 T 0 9 2
The Simpsons 10 12003 16 19:30-20:30 12 9 5 A 0 9 1
--- print list end ---
2004-04-10 18:23:27 Recording starts soon, AUTO-Startup assumed
2004-04-10 18:23:27 Started recording "The Simpsons" on channel: 12003 on cardid: 9, sourceid 12
[New Thread 163851 (LWP 2136)]
[New Thread 180236 (LWP 2138)]
2004-04-10 18:23:27 DVB#0 ERROR - Opening DVB frontend device failed.
(2) No such file or directory
[New Thread 196621 (LWP 2139)]
2004-04-10 18:23:27 Changing from None to RecordingOnly
2004-04-10 18:23:27 Using profile 'Default' to record
2004-04-10 18:23:27 DVB#0 ERROR - Opening DVB frontend device failed.
(2) No such file or directory
[New Thread 213006 (LWP 2141)]
2004-04-10 18:23:27 DVB#0 Recorder: Card opened successfully.
2004-04-10 18:23:27 DVB#0 ERROR - No PIDS set, please correct your channel setup.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 213006 (LWP 2141)]
DVBRecorder::SetDemuxFilters(dvbpids&) (this=0x80fcd30, pids=@0x80fce5c) at stl_pair.h:84
84 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {}
(gdb) thread apply all bt full
Thread 15 (Thread 213006 (LWP 2141)):
#0 DVBRecorder::SetDemuxFilters(dvbpids&) (this=0x80fcd30, pids=@0x80fce5c) at stl_pair.h:84
No locals.
#1 0x40340556 in DVBRecorder::StartRecording() (this=0x80fcd30) at dvbrecorder.cpp:408
ret = 135253692
dataflow = -1
polls = {fd = 20, events = 1, revents = 0}
qualthread = 0
qthreadexists = false
#2 0x40318c41 in SpawnEncode (param=0xbdfff934) at tv_rec.cpp:40
No locals.
#3 0x411dde51 in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#4 0x411ddecf in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.
#5 0x413e464a in clone () from /lib/libc.so.6
No symbol table info available.
Thread 14 (Thread 196621 (LWP 2139)):
#0 0x413b4c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
Thread 13 (Thread 180236 (LWP 2138)):
#0 0x411e05f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1 0x411e03b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2 0x00000020 in ?? ()
No symbol table info available.
#3 0xbe3ff968 in ?? ()
No symbol table info available.
#4 0xffffffff in ?? ()
No symbol table info available.
Thread 12 (Thread 163851 (LWP 2136)):
#0 0x411e05f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1 0x411e03b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2 0x00000020 in ?? ()
No symbol table info available.
#3 0xbe5ff968 in ?? ()
No symbol table info available.
#4 0xffffffff in ?? ()
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
Thread 11 (Thread 147466 (LWP 2135)):
#0 0x411e05f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1 0x411e03b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2 0x00000020 in ?? ()
No symbol table info available.
#3 0xbe7ff968 in ?? ()
No symbol table info available.
#4 0xffffffff in ?? ()
No symbol table info available.
Thread 10 (Thread 131081 (LWP 2134)):
#0 0x411e05f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1 0x411e03b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2 0x00000020 in ?? ()
No symbol table info available.
#3 0xbe9ff968 in ?? ()
No symbol table info available.
#4 0xffffffff in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
Thread 9 (Thread 114696 (LWP 2133)):
#0 0x411e05f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1 0x411e03b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2 0x00000020 in ?? ()
No symbol table info available.
#3 0xbebff968 in ?? ()
No symbol table info available.
Thread 8 (Thread 98311 (LWP 2132)):
#0 0x413b4c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
Thread 7 (Thread 81926 (LWP 2131)):
#0 0x413b4c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
Thread 6 (Thread 65541 (LWP 2130)):
#0 0x413b4c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
Thread 5 (Thread 49156 (LWP 2129)):
#0 0x413b4c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
Thread 4 (Thread 32771 (LWP 2128)):
#0 0x411e05f4 in __pthread_sigsuspend () from /lib/libpthread.so.0
No symbol table info available.
#1 0x411e03b8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0
No symbol table info available.
#2 0x00000020 in ?? ()
No symbol table info available.
#3 0xbf5ff654 in ?? ()
No symbol table info available.
#4 0x40f690a4 in QStringData::deleteSelf() () from /usr/lib/libqt-mt.so.3
No symbol table info available.
Thread 3 (Thread 16386 (LWP 2125)):
#0 0x413b4c36 in nanosleep () from /lib/libc.so.6
No symbol table info available.
Thread 2 (Thread 32769 (LWP 2124)):
#0 0x41336571 in kill () from /lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#1 0x411e03fe in __pthread_restart_new () from /lib/libpthread.so.0
No symbol table info available.
#2 0x411e1ba9 in __pthread_unlock () from /lib/libpthread.so.0
No symbol table info available.
#3 0x411de3ee in pthread_handle_create () from /lib/libpthread.so.0
No symbol table info available.
#4 0x411ddc18 in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.
#5 0x411ddd57 in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.
#6 0x413e464a in clone () from /lib/libc.so.6
No symbol table info available.
Thread 1 (Thread 16384 (LWP 2115)):
#0 0x413ddde1 in select () from /lib/libc.so.6
No symbol table info available.
#1 0x410f5504 in ?? () from /usr/lib/libqt-mt.so.3
No symbol table info available.
84 pair(const _T1& __a, const _T2& __b) : first(__a), second(__b) {}
(gdb)
Nothing significant in /var/log/{kern.log,debug,daemon.log}
launchpad:~/tree/mythtv$ ls -l /dev/dvb/adapter0/
total 0
crw-rw---- 1 root mythtv 250, 4 Jan 1 1970 demux0
crw-rw---- 1 root mythtv 250, 5 Jan 1 1970 dvr0
crw-rw---- 1 root mythtv 250, 7 Jan 1 1970 net0
/dev/dvb/adapter0/frontend0 doesn't seem to exist anymore, don't ask
me what happened to it...
This is using devfs.
--
Brian May <bam at snoopy.apana.org.au>
More information about the mythtv-dev
mailing list