[mythtv] Backend segfault backtrace, ??ERY_RECORDER

MegaDeTH megadeth at geekopolis.com
Sat Jul 12 17:40:41 EDT 2003


System config.

Dual celeron 400, 512mb ram, 2 PVR250 encoders.

Crash is random, often 30 seconds into recording, appears to affect the 
2nd card more than the 1st card, cards are not the same revision, one is 
missing extra connectors on the back. I can usually get it to crash if I 
pause and skip around at random, it does seem to take longer to induce a 
crash if I run gdb, probably just luck though.

When running normal, mythbackend -v, I usually get a "unknown command: 
??ERY_RECORDER"

I use the following pvr250 settings.

/mythtv/test_ioctl -c bitrate=4500000,bitrate_peak=6000000
/mythtv/test_ioctl --set-codec-params=dnr_mode=0,dnr_temporal=0
/mythtv/test_ioctl -c bitrate_mode=1
/mythtv/test_ioctl -c audio=0x99
/mythtv/test_ioctl -v input=3,output=1

Sometimes changing the channel will induce the crash, the following was 
from just that, changed the channel and it segfaulted.

[root at mastermyth root]# gdb /usr/local/bin/mythbackend
GNU gdb Red Hat Linux (5.3post-0.20021129.18rh)
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-redhat-linux-gnu"...
(gdb) run
Starting program: /usr/local/bin/mythbackend
[New Thread 16384 (LWP 1806)]
Starting up as the master server.
Probed: /dev/video0 - Composite 0
Probed: /dev/video0 - Composite 1
Probed: /dev/video0 - Composite 2
Probed: /dev/video0 - Composite 3
Probed: /dev/video0 - Tuner 0
Probed: /dev/video0 - Composite 4
Probed: /dev/video0 - S-Video 0
Probed: /dev/video0 - S-Video 1
Probed: /dev/video0 - S-Video 2
Probed: /dev/video0 - S-Video 3
[New Thread 32769 (LWP 1820)]
[New Thread 16386 (LWP 1821)]
Probed: /dev/video1 - Composite 0
Probed: /dev/video1 - Composite 1
Probed: /dev/video1 - Composite 2
Probed: /dev/video1 - Composite 3
Probed: /dev/video1 - Tuner 0
Probed: /dev/video1 - Composite 4
Probed: /dev/video1 - S-Video 0
Probed: /dev/video1 - S-Video 1
Probed: /dev/video1 - S-Video 2
Probed: /dev/video1 - S-Video 3
[New Thread 32771 (LWP 1823)]
[New Thread 49156 (LWP 1824)]
[New Thread 65541 (LWP 1825)]
[New Thread 81926 (LWP 1826)]
[New Thread 98311 (LWP 1827)]
[New Thread 114696 (LWP 1828)]
[New Thread 131081 (LWP 1829)]
[New Thread 147466 (LWP 1830)]
2003-07-12 16:09:52 adding: xbox1.localdomain.local as a player 1
2003-07-12 16:09:53 adding: xbox1.localdomain.local as a player 0
[New Thread 163851 (LWP 1876)]
2003-07-12 16:09:53 adding: xbox1.localdomain.local as a player 0
2003-07-12 16:09:53 adding: xbox1.localdomain.local as a remote ringbuffer
[New Thread 180236 (LWP 1877)]
2003-07-12 16:09:53 Could not open audio device: /dev/dsp
open: No such device
Changing from None to WatchingLiveTV
[New Thread 196621 (LWP 1878)]
2003-07-12 16:10:12 adding: mastermyth2 as a player 1
2003-07-12 16:10:12 adding: mastermyth2 as a player 0
[New Thread 213006 (LWP 1892)]
2003-07-12 16:10:12 adding: mastermyth2 as a player 0
2003-07-12 16:10:12 adding: mastermyth2 as a remote ringbuffer
[New Thread 229391 (LWP 1893)]
2003-07-12 16:10:12 Could not open audio device: /dev/dsp
open: No such device
Changing from None to WatchingLiveTV
[New Thread 245776 (LWP 1894)]
2003-07-12 16:10:24 adding: mastermyth2 as a player 0
2003-07-12 16:10:24 adding: mastermyth2 as a remote file transfer
[New Thread 262161 (LWP 1897)]
[Thread 262161 (LWP 1897) exited]
2003-07-12 16:10:24 adding: mastermyth2 as a player 0
2003-07-12 16:10:24 adding: mastermyth2 as a remote file transfer
[New Thread 278546 (LWP 1898)]
[Thread 278546 (LWP 1898) exited]
2003-07-12 16:10:25 adding: mastermyth2 as a player 0
2003-07-12 16:10:25 adding: mastermyth2 as a remote file transfer
[New Thread 294931 (LWP 1900)]
[Thread 294931 (LWP 1900) exited]
2003-07-12 16:10:25 adding: mastermyth2 as a player 0
2003-07-12 16:10:25 adding: mastermyth2 as a remote file transfer
[New Thread 311316 (LWP 1901)]
[Thread 311316 (LWP 1901) exited]
2003-07-12 16:10:25 adding: mastermyth2 as a player 0
2003-07-12 16:10:25 adding: mastermyth2 as a remote file transfer
[New Thread 327701 (LWP 1902)]
[Thread 327701 (LWP 1902) exited]
[Thread 213006 (LWP 1892) exited]
[New Thread 344086 (LWP 1904)]
2003-07-12 16:11:52 adding: mastermyth2 as a player 0
2003-07-12 16:11:52 adding: mastermyth2 as a remote file transfer
[New Thread 360471 (LWP 1921)]
[Thread 360471 (LWP 1921) exited]
2003-07-12 16:11:52 adding: mastermyth2 as a player 0
2003-07-12 16:11:52 adding: mastermyth2 as a remote file transfer
[New Thread 376856 (LWP 1922)]
[Thread 376856 (LWP 1922) exited]
2003-07-12 16:11:52 adding: mastermyth2 as a player 0
2003-07-12 16:11:52 adding: mastermyth2 as a remote file transfer
[New Thread 393241 (LWP 1923)]
[Thread 393241 (LWP 1923) exited]
2003-07-12 16:11:55 adding: mastermyth2 as a player 0
2003-07-12 16:11:55 adding: mastermyth2 as a remote file transfer
[New Thread 409626 (LWP 1925)]
[Thread 409626 (LWP 1925) exited]
[Thread 344086 (LWP 1904) exited]
[New Thread 426011 (LWP 1926)]
2003-07-12 16:13:19 unknown command: ??ERY_RECORDER

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 245776 (LWP 1894)]
0x40b235b6 in malloc_consolidate () from /lib/libc.so.6
(gdb) thread apply all bt full
Thread 28 (Thread 426011 (LWP 1926)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 17 (Thread 245776 (LWP 1894)):
#0 0x40b235b6 in malloc_consolidate () from /lib/libc.so.6
No symbol table info available.
#1 0x40b22c27 in _int_malloc () from /lib/libc.so.6
No symbol table info available.
#2 0x40b23b33 in _int_memalign () from /lib/libc.so.6
No symbol table info available.
#3 0x40b222a4 in memalign () from /lib/libc.so.6
No symbol table info available.
#4 0x08141797 in av_malloc (size=2020) at mem.c:50
ptr = (void *) 0x51e9
#5 0x0813c20a in av_new_packet ()
No symbol table info available.
#6 0x0813795c in mpegps_read_packet ()
No symbol table info available.
#7 0x0813c872 in av_read_packet ()
No symbol table info available.
#8 0x080c8463 in MpegRecorder::ProcessData(unsigned char*, int) (
this=0x4172da40,
buffer=0xbdbc11ec "\214L}??V<na at r\022??\216a?Qq\204?\223??pf???",
len=45056) at mpegrecorder.cpp:288
curstream = (AVStream *) 0x8381300
pkt = {pts = 0, data = 0x0, size = 0, stream_index = 0, flags = 0,
duration = 1083721648, startpos = 28750,
destruct = 0x40984860 <__pthread_disable_asynccancel+16>, priv = 
0x4172da40}
#9 0x080c808b in MpegRecorder::StartRecording() (this=0x4172da40)
at mpegrecorder.cpp:140
vfmt = {type = V4L2_BUF_TYPE_VIDEO_CAPTURE, fmt = {pix = {width = 480,
height = 480, pixelformat = 0, field = V4L2_FIELD_INTERLACED,
bytesperline = 0, sizeimage = 131072, colorspace = 0, priv = 0}, win = {
w = {left = 480, top = 480, width = 0, height = 4},
field = V4L2_FIELD_ANY, chromakey = 131072, clips = 0x0, clipcount = 0,
bitmap = 0x0}, vbi = {sampling_rate = 480, offset = 480,
samples_per_line = 0, sample_format = 4, start = {0, 131072}, count = {
0, 0}, flags = 0, reserved = {0, 0}},
raw_data = 
"?\001\000\000?\001\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\000\002", 
'\0' <repeats 176 times>}}

buffer = 
"\214L}??V<na at r\022??\216a?Qq\204?\223??pf???\000\000\000\000\000\000\000\000\000\001?\000\026", 
'?' <repeats 22 times>, "\000\000\001?D\006???
\001\002?\023?\000\000\001?\a?\200?\r1\001?\230M\021\001?Q?\036`?\000\000\001\000\002\027??\200\000\000\000\000\000\001?\205O?\200\000\000\000\001\001**hP1\t??\n\233\2348\005???bFPK?????\223\205?\202A\222???\024q8\217\036c\000w???\223\026\227?I\004\216?\213\003\232&\177?\000?oNn\a\230S\232 
 >\237???\004?=??\2300j?\ba"...
ret = 45056
#10 0x080b6842 in SpawnEncode(void*) (param=0x4172da40) at tv_rec.cpp:33
nvr = (class RecorderBase *) 0x4172da40
#11 0x40986c40 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 16 (Thread 229391 (LWP 1893)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 14 (Thread 196621 (LWP 1878)):
#0 0x4098cfbb in read () from /lib/libpthread.so.0
No symbol table info available.
#1 0x08374fa8 in ?? ()
No symbol table info available.
#2 0x080b6842 in SpawnEncode(void*) (param=0x8374fa8) at tv_rec.cpp:33
nvr = (class RecorderBase *) 0x8374fa8
#3 0x40986c40 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 13 (Thread 180236 (LWP 1877)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 12 (Thread 163851 (LWP 1876)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 11 (Thread 147466 (LWP 1830)):
#0 0x40ad76a8 in sigsuspend () from /lib/libc.so.6
No symbol table info available.
#1 0x40988c28 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2 0x40984f9b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3 0x407bb762 in QWaitCondition::wait(unsigned long) ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#4 0x0807f3ba in ProcessRequestThread::run() (this=0x8374078)
at mainserver.cpp:57
No locals.
#5 0x40504c78 in QProc::~QProc() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#6 0x40986c40 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 10 (Thread 131081 (LWP 1829)):
#0 0x40ad76a8 in sigsuspend () from /lib/libc.so.6
No symbol table info available.
#1 0x40988c28 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2 0x40984f9b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3 0x407bb762 in QWaitCondition::wait(unsigned long) ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#4 0x0807f3ba in ProcessRequestThread::run() (this=0x8382108)
at mainserver.cpp:57
No locals.
#5 0x40504c78 in QProc::~QProc() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#6 0x40986c40 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 9 (Thread 114696 (LWP 1828)):
#0 0x40ad76a8 in sigsuspend () from /lib/libc.so.6
No symbol table info available.
#1 0x40988c28 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2 0x40984f9b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3 0x407bb762 in QWaitCondition::wait(unsigned long) ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#4 0x0807f3ba in ProcessRequestThread::run() (this=0x83740c8)
at mainserver.cpp:57
No locals.
#5 0x40504c78 in QProc::~QProc() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#6 0x40986c40 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 8 (Thread 98311 (LWP 1827)):
#0 0x40ad76a8 in sigsuspend () from /lib/libc.so.6
No symbol table info available.
#1 0x40988c28 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2 0x40984f9b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3 0x407bb762 in QWaitCondition::wait(unsigned long) ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#4 0x0807f3ba in ProcessRequestThread::run() (this=0x837fc80)
at mainserver.cpp:57
No locals.
#5 0x40504c78 in QProc::~QProc() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#6 0x40986c40 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 7 (Thread 81926 (LWP 1826)):
#0 0x40ad76a8 in sigsuspend () from /lib/libc.so.6
No symbol table info available.
#1 0x40988c28 in __pthread_wait_for_restart_signal ()
from /lib/libpthread.so.0
No symbol table info available.
#2 0x40984f9b in pthread_cond_wait at GLIBC_2.0 () from /lib/libpthread.so.0
No symbol table info available.
#3 0x407bb762 in QWaitCondition::wait(unsigned long) ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#4 0x0807f3ba in ProcessRequestThread::run() (this=0x837fdb8)
at mainserver.cpp:57
No locals.
#5 0x40504c78 in QProc::~QProc() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#6 0x40986c40 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 6 (Thread 65541 (LWP 1825)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 5 (Thread 49156 (LWP 1824)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 4 (Thread 32771 (LWP 1823)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 3 (Thread 16386 (LWP 1821)):
#0 0x40b5d2f6 in nanosleep () from /lib/libc.so.6
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.

Thread 2 (Thread 32769 (LWP 1820)):
#0 0x40b89487 in poll () from /lib/libc.so.6
No symbol table info available.
#1 0x40985dee in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.
#2 0x40985fe7 in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.

Thread 1 (Thread 16384 (LWP 1806)):
#0 0x40b8b151 in select () from /lib/libc.so.6
No symbol table info available.
#1 0x4096f27c in typeinfo for std::bad_alloc ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#2 0x40523cf6 in QEventLoop::enterLoop() ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#3 0x40523b98 in QEventLoop::exec() () from 
/usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#4 0x40510151 in QApplication::exec() ()
from /usr/lib/qt-3.1/lib/libqt-mt.so.3
No symbol table info available.
#5 0x0806b98f in main (argc=1, argv=0xbffffa44) at main.cpp:329
a = <incomplete type>
logfile = {static null = {
static null = <same as static member of an already seen type>,
d = 0x8356688, static shared_null = 0x8356688}, d = 0x835b9f0,
static shared_null = 0x8356688}
daemonize = false
printsched = false
printexpire = false
logfd = -1
pidfs = <incomplete type>
db = (struct QSqlDatabase *) 0x8363b48
subthread = (struct QSqlDatabase *) 0x835e6c0
expthread = (struct QSqlDatabase *) 0x83645b8
transthread = (struct QSqlDatabase *) 0x8364270
port = 6543
statusport = 6544
myip = {static null = {
static null = <same as static member of an already seen type>,
d = 0x8356688, static shared_null = 0x8356688}, d = 0x8364ae0,
static shared_null = 0x8356688}
masterip = {static null = {
static null = <same as static member of an already seen type>,
d = 0x8356688, static shared_null = 0x8356688}, d = 0x8372eb0,
static shared_null = 0x8356688}
ismaster = true
expdb = (struct QSqlDatabase *) 0x83645b8
nfsfd = 12
#6 0x40ac4917 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.
#0 0x40b235b6 in malloc_consolidate () from /lib/libc.so.6
(gdb)




More information about the mythtv-dev mailing list