[mythtv-commits] Ticket #9353: Changing Channels Sometimes Causes a Crash

MythTV noreply at mythtv.org
Mon Dec 13 17:25:11 UTC 2010


#9353: Changing Channels Sometimes Causes a Crash
--------------------------------+-------------------------
 Reporter:  imntreal@…          |          Owner:
     Type:  Bug Report          |         Status:  new
 Priority:  minor               |      Milestone:  unknown
Component:  MythTV - General    |        Version:  0.24
 Severity:  medium              |     Resolution:
 Keywords:                      |  Ticket locked:  0
--------------------------------+-------------------------
Description changed by kenni:

Old description:

> Almost every other time I change channels in live TV, I get a segfault.
> I'm running Fedora 14 x85_64, and a HD-PVR to record.  Here's a
> backtrace:
>
> [root at myth1 ~]# gdb mythbackend
> GNU gdb (GDB) Fedora (7.2-26.fc14)
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "x86_64-redhat-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/bin/mythbackend...Reading symbols from
> /usr/lib/debug/usr/bin/mythbackend.debug...done.
> done.
> (gdb) run
> Starting program: /usr/bin/mythbackend
> warning: "/usr/lib/debug/usr/lib64/libcrystalhd.so.3.6.debug": separate
> debug info file has no debug info
> [Thread debugging using libthread_db enabled]
> warning: "/usr/lib/debug/usr/lib64/libQtWebKit.so.4.7.1.debug": separate
> debug info file has no debug info
> 2010-12-10 17:05:59.242 mythbackend version: exported [0.24-2.fc14
> (r27317)] www.mythtv.org
> 2010-12-10 17:05:59.242 Using runtime prefix = /usr
> 2010-12-10 17:05:59.242 Using configuration directory = /root/.mythtv
> 2010-12-10 17:05:59.242 Unable to read configuration file mysql.txt
> 2010-12-10 17:05:59.242 Empty LocalHostName.
> 2010-12-10 17:05:59.242 Using localhost value of myth1.vtscrew.com
> [New Thread 0x7ffff1489700 (LWP 17015)]
> [Thread 0x7ffff1489700 (LWP 17015) exited]
> 2010-12-10 17:05:59.352 New DB connection, total: 1
> 2010-12-10 17:05:59.356 Connected to database 'mythconverg' at host:
> localhost
> 2010-12-10 17:05:59.369 Closing DB connection named 'DBManager0'
> 2010-12-10 17:05:59.370 Connected to database 'mythconverg' at host:
> localhost
> 2010-12-10 17:05:59.372 Current locale EN_US
> 2010-12-10 17:05:59.372 Reading locale defaults from
> /usr/share/mythtv//locales/en_us.xml
> 2010-12-10 17:05:59.380 Current MythTV Schema Version (DBSchemaVer): 1264
> 2010-12-10 17:05:59.383 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
> [New Thread 0x7ffff1489700 (LWP 17018)]
> 2010-12-10 17:05:59.387 MediaServer:: Loopback address specified -
> 127.0.0.1. Disabling UPnP
> 2010-12-10 17:05:59.388 MythBackend: Starting up as the master server.
> 2010-12-10 17:05:59.390 New DB connection, total: 2
> 2010-12-10 17:05:59.398 Connected to database 'mythconverg' at host:
> localhost
> 2010-12-10 17:05:59.401 New DB connection, total: 3
> 2010-12-10 17:05:59.404 Connected to database 'mythconverg' at host:
> localhost
> Detaching after fork from child process 17021.
> [New Thread 0x7ffff0a7b700 (LWP 17022)]
> defined(@array) is deprecated at /usr/local/bin/d10control.pl line 486.
>         (Maybe you should just omit the defined()?)
> [New Thread 0x7fffebfff700 (LWP 17023)]
> 2010-12-10 17:05:59.672 New DB scheduler connection
> 2010-12-10 17:05:59.672 Connected to database 'mythconverg' at host:
> localhost
> [New Thread 0x7fffeb7fe700 (LWP 17025)]
> [New Thread 0x7fffeaffd700 (LWP 17026)]
> [New Thread 0x7fffea7fc700 (LWP 17027)]
> [New Thread 0x7fffe9ffb700 (LWP 17028)]
> 2010-12-10 17:05:59.684 Main::Registering HttpStatus Extension
> 2010-12-10 17:05:59.684 Enabled verbose msgs:  important general
> [New Thread 0x7fffe97fa700 (LWP 17029)]
> [New Thread 0x7fffe8ff9700 (LWP 17030)]
> [New Thread 0x7fffcffff700 (LWP 17031)]
> [New Thread 0x7fffcf7fe700 (LWP 17032)]
> [New Thread 0x7fffceffd700 (LWP 17033)]
> [New Thread 0x7fffce7fc700 (LWP 17034)]
> 2010-12-10 17:05:59.710 AutoExpire: CalcParams(): Max required Free
> Space: 1.0 GB w/freq: 15 min
> 2010-12-10 17:06:02.687 Reschedule requested for id -1.
> 2010-12-10 17:06:02.852 Scheduled 94 items in 0.2 = 0.01 match + 0.16
> place
> 2010-12-10 17:06:02.854 Seem to be woken up by USER
> 2010-12-10 17:06:19.710 Expiring 0 MB for 1246 at 2010-12-10T16:02:48 =>
> "Street Patrol"
> 2010-12-10 17:06:19.713 Expiring 0 MB for 1246 at 2010-12-10T16:02:49 =>
> "Street Patrol"
> 2010-12-10 17:06:19.713 Expiring 0 MB for 1246 at 2010-12-10T16:02:57 =>
> "Street Patrol"
> 2010-12-10 17:06:19.713 Expiring 0 MB for 1246 at 2010-12-10T16:03:13 =>
> "Street Patrol"
> 2010-12-10 17:06:19.713 Expiring 3 MB for 1246 at 2010-12-10T16:03:16 =>
> "Street Patrol"
> 2010-12-10 17:06:19.713 Expiring 0 MB for 1247 at 2010-12-10T16:03:33 =>
> "The Office":"Koi Pond"
> 2010-12-10 17:06:19.713 Expiring 0 MB for 1247 at 2010-12-10T16:03:35 =>
> "The Office":"Koi Pond"
> 2010-12-10 17:06:19.713 Expiring 0 MB for 1246 at 2010-12-10T16:59:29 =>
> "Street Patrol"
> 2010-12-10 17:06:19.713 Expiring 0 MB for 1246 at 2010-12-10T16:59:30 =>
> "Street Patrol"
> [New Thread 0x7fffcdffb700 (LWP 17035)]
> [New Thread 0x7fffcd7fa700 (LWP 17036)]
> [New Thread 0x7fffccff9700 (LWP 17037)]
> [New Thread 0x7fffc7fff700 (LWP 17038)]
> [New Thread 0x7fffc77fe700 (LWP 17039)]
> [New Thread 0x7fffc6ffd700 (LWP 17040)]
> [New Thread 0x7fffc67fc700 (LWP 17041)]
> [New Thread 0x7fffc5ffb700 (LWP 17042)]
> [New Thread 0x7fffc57fa700 (LWP 17043)]
> [New Thread 0x7fffc4ff9700 (LWP 17044)]
> [Thread 0x7fffcd7fa700 (LWP 17036) exited]
> [New Thread 0x7fffcd7fa700 (LWP 17129)]
> 2010-12-10 17:06:33.639 MainServer::ANN Monitor
> 2010-12-10 17:06:33.639 adding: myth1.vtscrew.com as a client (events: 0)
> 2010-12-10 17:06:33.641 MainServer::ANN Monitor
> 2010-12-10 17:06:33.641 adding: myth1.vtscrew.com as a client (events: 1)
> [Thread 0x7fffccff9700 (LWP 17037) exited]
> 2010-12-10 17:06:40.128 MainServer::ANN Playback
> 2010-12-10 17:06:40.128 adding: myth1.vtscrew.com as a client (events: 0)
> 2010-12-10 17:06:40.140 TVRec(3): Changing from None to WatchingLiveTV
> 2010-12-10 17:06:40.142 TVRec(3): HW Tuner: 3->3
> 2010-12-10 17:06:40.155 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> 2010-12-10 17:06:40.156 LoadFromScheduler(): Error, called from backend.
> [New Thread 0x7fffccff9700 (LWP 17134)]
> [New Thread 0x7fffc47f8700 (LWP 17135)]
> [New Thread 0x7fffc3ff7700 (LWP 17136)]
> [New Thread 0x7fffc37f6700 (LWP 17137)]
> Detaching after fork from child process 17138.
> defined(@array) is deprecated at /usr/local/bin/d10control.pl line 486.
>         (Maybe you should just omit the defined()?)
> [Thread 0x7fffc3ff7700 (LWP 17136) exited]
> [Thread 0x7fffc4ff9700 (LWP 17044) exited]
> [Thread 0x7fffc37f6700 (LWP 17137) exited]
> 2010-12-10 17:06:43.444 Finished recording Street Patrol: channel 1246
> 2010-12-10 17:06:43.446 New DB connection, total: 4
> 2010-12-10 17:06:43.447 Connected to database 'mythconverg' at host:
> localhost
> 2010-12-10 17:06:43.465 LoadFromScheduler(): Error, called from backend.
> 2010-12-10 17:06:43.475 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> [New Thread 0x7fffc37f6700 (LWP 17144)]
> [New Thread 0x7fffc4ff9700 (LWP 17145)]
> 2010-12-10 17:06:43.500 Finished recording Street Patrol: channel 1246
> [Thread 0x7fffc47f8700 (LWP 17135) exited]
> [Thread 0x7fffccff9700 (LWP 17134) exited]
> [New Thread 0x7fffccff9700 (LWP 17146)]
> [New Thread 0x7fffc47f8700 (LWP 17147)]
> 2010-12-10 17:06:45.332 RecBase(3:/dev/video0):
> GetKeyframePositions(1,9223372036854775807,#0) out of 1
> 2010-12-10 17:06:45.547 RecBase(3:/dev/video0):
> GetKeyframePositions(1,9223372036854775807,#0) out of 1
> [Thread 0x7fffc57fa700 (LWP 17043) exited]
> [Thread 0x7fffc5ffb700 (LWP 17042) exited]
> 2010-12-10 17:06:57.571 TVRec(3): HW Tuner: 3->3
> 2010-12-10 17:06:58.041 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> 2010-12-10 17:06:58.041 LoadFromScheduler(): Error, called from backend.
> [New Thread 0x7fffc5ffb700 (LWP 17160)]
> [New Thread 0x7fffc57fa700 (LWP 17161)]
> 2010-12-10 17:06:58.127 Finished recording Street Patrol: channel 1246
> [New Thread 0x7fffc3ff7700 (LWP 17162)]
> Detaching after fork from child process 17163.
> [Thread 0x7fffc4ff9700 (LWP 17145) exited]
> [Thread 0x7fffc37f6700 (LWP 17144) exited]
> [New Thread 0x7fffc37f6700 (LWP 17165)]
> [New Thread 0x7fffc4ff9700 (LWP 17166)]
> Detaching after fork from child process 17167.
> defined(@array) is deprecated at /usr/local/bin/d10control.pl line 486.
>         (Maybe you should just omit the defined()?)
> [Thread 0x7fffc37f6700 (LWP 17165) exited]
> 2010-12-10 17:06:58.804 MainServer::ANN Monitor
> 2010-12-10 17:06:58.804 adding: myth1.vtscrew.com as a client (events: 0)
> 2010-12-10 17:06:58.804 MainServer::ANN Monitor
> 2010-12-10 17:06:58.804 adding: myth1.vtscrew.com as a client (events: 1)
> [Thread 0x7fffc67fc700 (LWP 17041) exited]
> 2010-12-10 17:06:59.493 Finished recording Everybody Loves Raymond
> "Meeting the Parents": channel 1247
> 2010-12-10 17:06:59.499 LoadFromScheduler(): Error, called from backend.
> [Thread 0x7fffc4ff9700 (LWP 17166) exited]
> 2010-12-10 17:06:59.502 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> [New Thread 0x7fffc4ff9700 (LWP 17173)]
> [New Thread 0x7fffc67fc700 (LWP 17174)]
> 2010-12-10 17:06:59.536 Finished recording Everybody Loves Raymond
> "Meeting the Parents": channel 1247
> [Thread 0x7fffc57fa700 (LWP 17161) exited]
> [Thread 0x7fffc5ffb700 (LWP 17160) exited]
> [Thread 0x7fffc3ff7700 (LWP 17162) exited]
> 2010-12-10 17:07:01.974 TVRec(3): Changing from WatchingLiveTV to None
> 2010-12-10 17:07:03.930 DevRdB(/dev/video0) Error: Poll giving up
> [Thread 0x7fffc47f8700 (LWP 17147) exited]
> 2010-12-10 17:07:03.936 MPEGRec(/dev/video0) Error: Device error detected
> 2010-12-10 17:07:03.936 DevRdB(/dev/video0): Stop(): Not running.
> [New Thread 0x7fffc3ff7700 (LWP 17179)]
> 2010-12-10 17:07:04.345 DevRdB(
> [Thread 0x7fffc3ff7700 (LWP 17179) exited]
> [Thread 0x7fffc6ffd700 (LWP 17040) exited]
> 2010-12-10 17:07:06.882 Finished recording Everybody Loves Raymond
> "Meeting the Parents": channel 1247
> [Thread 0x7fffccff9700 (LWP 17146) exited]
> [Thread 0x7fffc67fc700 (LWP 17174) exited]
> [Thread 0x7fffc4ff9700 (LWP 17173) exited]
> 2010-12-10 17:07:06.920 MainServer::ANN Playback
> 2010-12-10 17:07:06.920 adding: myth1.vtscrew.com as a client (events: 0)
> 2010-12-10 17:07:06.927 TVRec(3): Changing from None to WatchingLiveTV
> 2010-12-10 17:07:06.934 TVRec(3): HW Tuner: 3->3
> 2010-12-10 17:07:06.956 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> 2010-12-10 17:07:06.957 LoadFromScheduler(): Error, called from backend.
> [New Thread 0x7fffc4ff9700 (LWP 17180)]
> [New Thread 0x7fffc67fc700 (LWP 17181)]
> [New Thread 0x7fffccff9700 (LWP 17182)]
> [New Thread 0x7fffc6ffd700 (LWP 17183)]
> Detaching after fork from child process 17184.
> 2010-12-10 17:07:07.027 TVRec(3): Changing from WatchingLiveTV to None
> 2010-12-10 17:07:07.077 Finished recording Street Patrol: channel 1246
> [Thread 0x7fffc6ffd700 (LWP 17183) exited]
> [Thread 0x7fffc67fc700 (LWP 17181) exited]
> [Thread 0x7fffc4ff9700 (LWP 17180) exited]
> defined(@array) is deprecated at /usr/local/bin/d10control.pl line 486.
>         (Maybe you should just omit the defined()?)
> 2010-12-10 17:07:07.224 Channel(/dev/video0) Error:
> InitPictureAttribute(brightness): failed to query controls.
>                         eno: Bad file descriptor (9)
> [Thread 0x7fffccff9700 (LWP 17182) exited]
> [Thread 0x7fffc77fe700 (LWP 17039) exited]
> 2010-12-10 17:07:18.054 MainServer::ANN Playback
> 2010-12-10 17:07:18.054 adding: myth1.vtscrew.com as a client (events: 0)
> 2010-12-10 17:07:18.059 TVRec(3): Changing from None to WatchingLiveTV
> 2010-12-10 17:07:18.062 TVRec(3): HW Tuner: 3->3
> 2010-12-10 17:07:18.075 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> 2010-12-10 17:07:18.076 LoadFromScheduler(): Error, called from backend.
> [New Thread 0x7fffc77fe700 (LWP 17188)]
> [New Thread 0x7fffccff9700 (LWP 17189)]
> [New Thread 0x7fffc4ff9700 (LWP 17190)]
> [New Thread 0x7fffc67fc700 (LWP 17191)]
> Detaching after fork from child process 17192.
> defined(@array) is deprecated at /usr/local/bin/d10control.pl line 486.
>         (Maybe you should just omit the defined()?)
> [Thread 0x7fffc4ff9700 (LWP 17190) exited]
> [Thread 0x7fffc7fff700 (LWP 17038) exited]
> 2010-12-10 17:07:21.250 Finished recording Street Patrol: channel 1246
> [Thread 0x7fffc67fc700 (LWP 17191) exited]
> 2010-12-10 17:07:21.274 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> 2010-12-10 17:07:21.275 LoadFromScheduler(): Error, called from backend.
> [New Thread 0x7fffc67fc700 (LWP 17197)]
> [New Thread 0x7fffc7fff700 (LWP 17198)]
> 2010-12-10 17:07:21.293 Finished recording Street Patrol: channel 1246
> [Thread 0x7fffccff9700 (LWP 17189) exited]
> [Thread 0x7fffc77fe700 (LWP 17188) exited]
> [New Thread 0x7fffc77fe700 (LWP 17199)]
> 2010-12-10 17:07:21.820 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> [New Thread 0x7fffccff9700 (LWP 17200)]
> 2010-12-10 17:07:22.923 RecBase(3:/dev/video0):
> GetKeyframePositions(1,9223372036854775807,#0) out of 1
> 2010-12-10 17:07:23.216 RecBase(3:/dev/video0):
> GetKeyframePositions(1,9223372036854775807,#0) out of 1
> 2010-12-10 17:07:32.447 TVRec(3): HW Tuner: 3->3
> 2010-12-10 17:07:32.924 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> 2010-12-10 17:07:32.925 LoadFromScheduler(): Error, called from backend.
> [New Thread 0x7fffc4ff9700 (LWP 17209)]
> [New Thread 0x7fffc6ffd700 (LWP 17210)]
> 2010-12-10 17:07:32.967 Finished recording Street Patrol: channel 1246
> [New Thread 0x7fffc5ffb700 (LWP 17211)]
> Detaching after fork from child process 17212.
> [Thread 0x7fffc7fff700 (LWP 17198) exited]
> [Thread 0x7fffc67fc700 (LWP 17197) exited]
> [New Thread 0x7fffc67fc700 (LWP 17214)]
> [New Thread 0x7fffc7fff700 (LWP 17215)]
> Detaching after fork from child process 17217.
> defined(@array) is deprecated at /usr/local/bin/d10control.pl line 486.
>         (Maybe you should just omit the defined()?)
> [Thread 0x7fffc67fc700 (LWP 17214) exited]
> 2010-12-10 17:07:33.495 MainServer::ANN Monitor
> 2010-12-10 17:07:33.495 adding: myth1.vtscrew.com as a client (events: 0)
> 2010-12-10 17:07:33.496 MainServer::ANN Monitor
> 2010-12-10 17:07:33.496 adding: myth1.vtscrew.com as a client (events: 1)
> [Thread 0x7fffc7fff700 (LWP 17215) exited]
> 2010-12-10 17:07:34.262 Finished recording Fox 5 News at 5:00: channel
> 1005
> 2010-12-10 17:07:34.266 LoadFromScheduler(): Error, called from backend.
> 2010-12-10 17:07:34.268 AutoExpire: CalcParams(): Max required Free
> Space: 3.0 GB w/freq: 15 min
> [New Thread 0x7fffc7fff700 (LWP 17223)]
> [New Thread 0x7fffc67fc700 (LWP 17224)]
> 2010-12-10 17:07:34.297 Finished recording Fox 5 News at 5:00: channel
> 1005
> [Thread 0x7fffc6ffd700 (LWP 17210) exited]
> [Thread 0x7fffc4ff9700 (LWP 17209) exited]
> [Thread 0x7fffc5ffb700 (LWP 17211) exited]
> 2010-12-10 17:07:36.901 TVRec(3): Changing from WatchingLiveTV to None
> 2010-12-10 17:07:38.636 DevRdB(/dev/video0) Error: Poll giving up
> [Thread 0x7fffccff9700 (LWP 17200) exited]
> 2010-12-10 17:07:38.640 MPEGRec(/dev/video0) Error: Device error detected
> 2010-12-10 17:07:38.640 DevRdB(/dev/video0): Stop(): Not running.
> [New Thread 0x7fffc5ffb700 (LWP 17229)]
> 2010-12-10 17:07:41.601 Finished recording Fox 5 News at 5:00: channel
> 1005
> [Thread 0x7fffc77fe700 (LWP 17199) exited]
>
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fffc5ffb700 (LWP 17229)]
> 0x000000307d06e17c in QMutex::lock (this=0x7fffec004080)
>     at thread/qmutex.cpp:151
> 151         if (d->recursive) {
> (gdb) backtrace
> #0  0x000000307d06e17c in QMutex::lock (this=0x7fffec004080)
>     at thread/qmutex.cpp:151
> #1  0x0000003552ae3b32 in QMutexLocker (this=<value optimized out>)
>     at /usr/include/QtCore/qmutex.h:102
> #2  DeviceReadBuffer::IsPauseRequested (this=<value optimized out>)
>     at DeviceReadBuffer.cpp:198
> #3  0x0000003552ae3e0d in DeviceReadBuffer::HandlePausing
> (this=0x7fffec004060)
>     at DeviceReadBuffer.cpp:311
> #4  0x0000003552ae5f02 in DeviceReadBuffer::fill_ringbuffer (this=
>     0x7fffec004060) at DeviceReadBuffer.cpp:263
> #5  0x0000003552ae6479 in DeviceReadBuffer::boot_ringbuffer (
>     arg=<value optimized out>) at DeviceReadBuffer.cpp:248
> #6  0x0000003456806d5b in start_thread () from /lib64/libpthread.so.0
> #7  0x00000034564e4aad in clone () from /lib64/libc.so.6
> (gdb) quit

New description:

 Almost every other time I change channels in live TV, I get a segfault.
 I'm running Fedora 14 x85_64, and a HD-PVR to record. [[BR]]
 Backtrace attached.

--

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9353#comment:1>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list