[mythtv] MythTV .18 segfaults

XeNoS the.xenos at gmail.com
Mon Apr 18 04:05:59 UTC 2005


Hello,

Problem: mythbackend segfaults
Steps to reproduce: run mythbackend

Here is my gdb output:

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 "i686-pc-linux-gnu"...Using host
libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/mythbackend
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 31897)]
Qt: gdb: -nograb added to command-line options.
        Use the -dograb option to enforce grabbing.
2005-04-16 17:28:13.661 New DB connection, total: 1
Starting up as the master server.
2005-04-16 17:28:14.932 New DB connection, total: 2
2005-04-16 17:28:14.935 mythbackend: MythBackend started as master server
2005-04-16 17:28:15.281 New DB connection, total: 3
[New Thread 32769 (LWP 1660)]
[New Thread 16386 (LWP 1661)]
2005-04-16 17:28:15.857 New DB scheduler connection
[New Thread 32771 (LWP 1678)]
[New Thread 49156 (LWP 1679)]
[New Thread 65541 (LWP 1680)]
[New Thread 81926 (LWP 1740)]
2005-04-16 17:28:15.976 mythbackend version: 0.18.20050409-1 www.mythtv.org
2005-04-16 17:28:15.976 Enabled verbose msgs : important general
2005-04-16 17:28:16.117 New DB connection, total: 4
2005-04-16 17:28:16.122 New DB connection, total: 5

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 32771 (LWP 1678)]
0xb5aafe9c in _db_return_ () from /usr/lib/libmysqlclient.so.12
(gdb) thread apply all bt full

Thread 7 (Thread 81926 (LWP 1740)):
#0  0xb66d508b in read () from /lib/libpthread.so.0
No symbol table info available.
#1  0xb5abb288 in ?? () from /usr/lib/libmysqlclient.so.12
No symbol table info available.

Thread 6 (Thread 65541 (LWP 1680)):
#0  0xb6550b46 in nanosleep () from /lib/libc.so.6
No symbol table info available.

Thread 5 (Thread 49156 (LWP 1679)):
#0  0xb6550b46 in nanosleep () from /lib/libc.so.6
No symbol table info available.

Thread 4 (Thread 32771 (LWP 1678)):
#0  0xb5aafe9c in _db_return_ () from /usr/lib/libmysqlclient.so.12
No symbol table info available.
#1  0xb5a95bdf in mysql_read_query_result () from /usr/lib/libmysqlclient.so.12
No symbol table info available.
#2  0xb5a95f38 in mysql_real_query () from /usr/lib/libmysqlclient.so.12
No symbol table info available.
#3  0xb5b03ac5 in QMYSQLResult::reset(QString const&) ()
  from /usr/qt/3/plugins/sqldrivers/libqsqlmysql.so
No symbol table info available.
#4  0xb6d0dd8d in QSqlQuery::exec(QString const&) () from
/usr/qt/3/lib/libqt-mt.so.3
No symbol table info available.
#5  0xb7520cbc in MythContext::GetSetting(QString const&, QString
const&) (this=0x80df5e8,
   key=@0xb50cfbb4, defaultval=@0xb50cfbc4) at mythcontext.cpp:1520
       querystr = {static null = {static null = <same as static
member of an already seen type>,
---Type <return> to continue, or q <return> to quit---
   d = 0x80cb168, static shared_null = 0x80cb168}, d = 0x80f4188,
static shared_null = 0x80cb168}
       found = false
       value = {static null = {static null = <same as static member
of an already seen type>,
   d = 0x80cb168, static shared_null = 0x80cb168}, d = 0x80cb168,
static shared_null = 0x80cb168}
       query = {<> = {<No data fields>}, m_db = 0x80efeb8,
m_isConnected = true,
 m_returnConnection = true}
#6  0xb751a603 in MythContext::GetFilePrefix() (this=0x80df5e8) at
mythcontext.cpp:845
No locals.
#7  0x0809acb2 in Scheduler::RunScheduler() (this=0x80f75d0) at
scheduler.cpp:848
       prerollseconds = 0
       secsleft = -1257439572
       nexttv = (EncoderLink *) 0x0
       nextRecording = (ProgramInfo *) 0x0
       nextrectime = {d = {jd = 0}, t = {ds = 0}}
       curtime = {d = {jd = 0}, t = {ds = 0}}
       lastupdate = {d = {jd = 2453476}, t = {ds = 62895974}}
       recordfileprefix = {static null = {
   static null = <same as static member of an already seen type>, d =
0x80cb168,
   static shared_null = 0x80cb168}, d = 0x0, static shared_null = 0x80cb168}
       startIter = {<_List_iterator_base> = {_M_node = 0x0}, <No data fields>}
       blockShutdown = false
       idleSince = {d = {jd = 0}, t = {ds = 0}}
       idleTimeoutSecs = 0
       idleWaitForRecordingTime = 0
       firstRun = false
       fillstart = {tv_sec = 0, tv_usec = 0}
       fillend = {tv_sec = 0, tv_usec = 0}
       matchTime = 0
       placeTime = 0
#8  0x0809e203 in Scheduler::SchedulerThread(void*) (param=0x80f75d0)
at scheduler.cpp:1293
---Type <return> to continue, or q <return> to quit---
       sched = (Scheduler *) 0x80f75d0
#9  0xb66cf14f in pthread_start_thread () from /lib/libpthread.so.0
No symbol table info available.
#10 0xb66cf2f4 in pthread_start_thread_event () from /lib/libpthread.so.0
No symbol table info available.
#11 0xb657ecda in clone () from /lib/libc.so.6
No symbol table info available.

Thread 3 (Thread 16386 (LWP 1661)):
#0  0xb6550b46 in nanosleep () from /lib/libc.so.6
No symbol table info available.

Thread 2 (Thread 32769 (LWP 1660)):
#0  0xb6576458 in poll () from /lib/libc.so.6
No symbol table info available.
#1  0xb66cec6e in __pthread_manager () from /lib/libpthread.so.0
No symbol table info available.
#2  0xb66cef69 in __pthread_manager_event () from /lib/libpthread.so.0
No symbol table info available.
#3  0xb657ecda in clone () from /lib/libc.so.6
No symbol table info available.

Thread 1 (Thread 16384 (LWP 31897)):
#0  0xb66d508b in read () from /lib/libpthread.so.0
No symbol table info available.
#1  0xb5abb288 in ?? () from /usr/lib/libmysqlclient.so.12
No symbol table info available.
#0  0xb5aafe9c in _db_return_ () from /usr/lib/libmysqlclient.so.12

My system is the following:

#mysql -V
mysql  Ver 12.22 Distrib 4.0.22, for pc-linux-gnu (i686)

# mythbackend --version
0.18.20050409-1

# gcc --version
gcc (GCC) 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1,
ssp-3.3.5.20050130-1, pie-8.7.7.1)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Qt 3.3.4

I don't know what else I can give you to help, I hope someone can this
has been driving me insaine. I have tried everything and anything that
I can think of to get this working.

-- 
XeNoS


More information about the mythtv-dev mailing list