Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#139 closed defect (fixed)

Segfault when recording done if begun while watching live TV

Reported by: mythtv.org@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I am running HEAD of 7/19, but have been experiencing this for a while. If I am watching live tv when a scheduled recording begins, when the recording finishes and I am returned to live tv, mythfrontend segfaults.

Backtrace follows:

# cat gdb.out.txt
GNU gdb 6.3
Copyright 2004 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) handle SIGPIPE nostop
Signal        Stop      Print   Pass to program Description
SIGPIPE       No        Yes     Yes             Broken pipe
(gdb) run
Starting program: /usr/bin/mythfrontend
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 10459)]
2005-07-20 20:37:04.744 New DB connection, total: 1
Total desktop width=576, height=432, numscreens=1
2005-07-20 20:37:04.752 Using screen 0, 576x432 at 0,0
2005-07-20 20:37:05.133 mythfrontend version: 0.19.20050712-1 www.mythtv.org
2005-07-20 20:37:05.134 Enabled verbose msgs : important general
Total desktop width=576, height=432, numscreens=1
2005-07-20 20:37:05.459 Using screen 0, 576x432 at 0,0
2005-07-20 20:37:05.461 Switching to square mode (G.A.N.T.)
[New Thread 32769 (LWP 10463)]
[New Thread 16386 (LWP 10464)]
2005-07-20 20:37:06.644 Registering Internal as a media playback plugin.
[New Thread 32771 (LWP 10465)]
2005-07-20 20:37:16.270 Mediamonitor: Adding /dev/cdroms/cdrom0
2005-07-20 20:37:16.276 Starting media monitor.
2005-07-20 20:37:17.215 Media status changed...  New status is: MEDIASTAT_OPEN old status was MEDIASTAT_NOTMOUNTED
2005-07-20 20:37:19.845 New DB connection, total: 2
2005-07-20 20:37:20.079 Connecting to backend server: 192.168.93.106:6543 (try 1 of 5)
2005-07-20 20:37:20.107 Attempting to change from None to WatchingLiveTV
2005-07-20 20:37:20.116 Using protocol version 17
[New Thread 49156 (LWP 10466)]
[New Thread 65541 (LWP 10468)]
2005-07-20 20:37:27.010 Opening audio device 'default'.
2005-07-20 20:37:28.977 Changing from None to WatchingLiveTV
2005-07-20 20:37:28.981 Realtime priority would require SUID as root.
2005-07-20 20:37:30.337 Video timing method: SGI OpenGL
2005-07-20 20:37:30.412 WriteAudio: buffer underrun
2005-07-20 20:37:55.983 UnpauseLiveTV()
2005-07-20 20:37:57.099 taking too long to be allowed to read..
2005-07-20 20:37:57.771 Prebuffer wait timed out 10 times.
2005-07-20 20:38:20.666 prebuffering pause
2005-07-20 20:38:36.669 prebuffering pause
2005-07-20 21:00:02.481 Attempting to change from WatchingLiveTV to None
2005-07-20 21:00:03.258 WriteAudio: buffer underrun
2005-07-20 21:00:06.634 Changing from WatchingLiveTV to None
2005-07-20 21:00:06.677 Using protocol version 17
2005-07-20 21:00:06.732 Attempting to change from None to WatchingRecording
2005-07-20 21:00:06.732 Invalid file handle when opening /mnt/mythtv/1002_20050720210000_20050720213000.nuv.  4 retries remaining.
2005-07-20 21:00:07.233 Invalid file handle when opening /mnt/mythtv/1002_20050720210000_20050720213000.nuv.  3 retries remaining.
2005-07-20 21:00:07.749 Using protocol version 17
[New Thread 81926 (LWP 10474)]
[New Thread 98311 (LWP 10475)]
[New Thread 114696 (LWP 10569)]
[New Thread 131081 (LWP 10570)]
[Thread 131081 (LWP 10570) exited]
[Thread 114696 (LWP 10569) exited]
[Thread 81926 (LWP 10474) exited]
[Thread 98311 (LWP 10475) exited]
2005-07-20 21:00:09.942 Opening audio device 'default'.
2005-07-20 21:00:11.068 Changing from None to WatchingRecording
2005-07-20 21:00:11.155 New DB connection, total: 3
2005-07-20 21:00:11.913 Realtime priority would require SUID as root.
2005-07-20 21:00:12.547 Video timing method: SGI OpenGL
2005-07-20 21:00:12.593 WriteAudio: buffer underrun
2005-07-20 21:30:00.480 Attempting to change from WatchingRecording to WatchingPreRecorded
2005-07-20 21:30:00.480 Changing from WatchingRecording to WatchingPreRecorded
2005-07-20 21:30:06.825 prebuffering pause
2005-07-20 21:30:07.476 WriteAudio: buffer underrun
2005-07-20 21:30:07.867 Attempting to change from WatchingPreRecorded to None
2005-07-20 21:30:08.134 Changing from WatchingPreRecorded to None
2005-07-20 21:30:08.162 Using protocol version 17
2005-07-20 21:30:08.294 Using protocol version 17
2005-07-20 21:30:08.429 Using protocol version 17
2005-07-20 21:30:08.564 Using protocol version 17
2005-07-20 21:30:08.696 Using protocol version 17
2005-07-20 21:30:08.831 Using protocol version 17
2005-07-20 21:30:08.966 Using protocol version 17
2005-07-20 21:30:09.098 Using protocol version 17
2005-07-20 21:30:09.233 Using protocol version 17
2005-07-20 21:30:09.368 Using protocol version 17
2005-07-20 21:30:09.500 Using protocol version 17
2005-07-20 21:30:09.635 Using protocol version 17
2005-07-20 21:30:09.770 Using protocol version 17
2005-07-20 21:30:09.902 Using protocol version 17
2005-07-20 21:30:10.037 Using protocol version 17
2005-07-20 21:30:10.172 Using protocol version 17
2005-07-20 21:30:10.195 Attempting to change from None to WatchingLiveTV
2005-07-20 21:30:10.202 Using protocol version 17
[New Thread 147462 (LWP 3915)]
[New Thread 163847 (LWP 3916)]
[New Thread 180232 (LWP 3917)]
[New Thread 196617 (LWP 3918)]
[Thread 196617 (LWP 3918) exited]
[Thread 180232 (LWP 3917) exited]
[Thread 147462 (LWP 3915) exited]
[Thread 163847 (LWP 3916) exited]
2005-07-20 21:30:12.595 taking too long to be allowed to read..
2005-07-20 21:30:14.622 Opening audio device 'default'.
2005-07-20 21:30:15.660 Changing from None to WatchingLiveTV
2005-07-20 21:30:16.381 Realtime priority would require SUID as root.
2005-07-20 21:30:16.970 Video timing method: SGI OpenGL
2005-07-20 21:30:17.012 WriteAudio: buffer underrun
[New Thread 212998 (LWP 4356)]
[New Thread 229383 (LWP 4357)]
[New Thread 245768 (LWP 4358)]
[New Thread 262153 (LWP 4359)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10459)]
0xb6d5efe4 in operator== ()
   from /usr/qt/3/lib/libqt-mt.so.3
(gdb) thread apply all bt full

Thread 18 (Thread 262153 (LWP 4359)):
#0  0xb6673858 in poll () from /lib/libc.so.6
No symbol table info available.
#1  0xb6fa6aeb in _nv000030gl ()
   from /usr/lib/opengl/nvidia/lib/libGL.so.1
No symbol table info available.
#2  0xaf160c1c in ?? ()
No symbol table info available.
#3  0x00000001 in ?? ()
No symbol table info available.
#4  0x000003e8 in ?? ()
No symbol table info available.
#5  0x088436d8 in ?? ()
No symbol table info available.
#6  0x0883f340 in ?? ()
No symbol table info available.
#7  0x087ce130 in ?? ()
No symbol table info available.
#8  0xaf160cc0 in ?? ()
No symbol table info available.
#9  0xae76a004 in ?? ()
No symbol table info available.
#10 0x0883f340 in ?? ()
No symbol table info available.
#11 0x087ce130 in ?? ()
No symbol table info available.
#12 0x00000023 in ?? ()
No symbol table info available.
#13 0x00000003 in ?? ()
No symbol table info available.
#14 0xb6174890 in _nv000852gl ()
   from /usr/lib/opengl/nvidia/lib/libGLcore.so.1
No symbol table info available.
#15 0xc1d00064 in ?? ()
No symbol table info available.
#16 0xbeef0003 in ?? ()
No symbol table info available.
#17 0x082e1d58 in ?? ()
No symbol table info available.
#18 0x000003e8 in ?? ()
No symbol table info available.
#19 0xaf160cc0 in ?? ()
No symbol table info available.
#20 0x00000002 in ?? ()
No symbol table info available.
#21 0xb613e5d9 in _nv000802gl ()
   from /usr/lib/opengl/nvidia/lib/libGLcore.so.1
No symbol table info available.
#22 0xaf160cc0 in ?? ()
No symbol table info available.
#23 0x087ce130 in ?? ()
No symbol table info available.
#24 0x00000000 in ?? ()
No symbol table info available.
#25 0xb6f9f0fa in glXWaitVideoSyncSGI ()
   from /usr/lib/opengl/nvidia/lib/libGL.so.1
No symbol table info available.
#26 0x00000000 in ?? ()
No symbol table info available.
#27 0xaf160cec in ?? ()
No symbol table info available.
#28 0xb7ce6e89 in OpenGLVideoSync::WaitForFrame (
    this=0x412b, sync_delay=0) at vsync.cpp:617
        n = 0
        msg1 = {static null = {
    static null = <same as static member of an already seen type>, d = 0x8165458, static shared_null = 0x8165458},
  d = 0x2, static shared_null = 0x8165458}
        msg2 = {static null = {
    static null = <same as static member of an already seen type>, d = 0x8165458, static shared_null = 0x8165458},
  d = 0x0, static shared_null = 0x8165458}
        frameNum = 0
        err = 0
#0  0xb6d5efe4 in operator== ()
   from /usr/qt/3/lib/libqt-mt.so.3
(gdb) quit
The program is running.  Exit anyway? (y or n) 

Change History (2)

comment:1 Changed 14 years ago by Isaac Richards

Resolution: fixed
Status: newclosed

(In [6890]) Fix segfault introduced in r6583, reported properly by Niels den Otter.

Also possibly fixes #139 and #129, but the people reporting those tickets haven't bothered to get useful backtraces yet, so I'm not 100% sure.

comment:2 Changed 14 years ago by mythtv.org@…

I know my backtrace doesn't look like Niels', but I did follow the directions on the site. Any idea what's wrong with it for future reference?

Note: See TracTickets for help on using tickets.