[mythtv-commits] Ticket #8986: mythfilldatabase hangs on MacOS in QFSFileEnginePrivate::nativeRead
MythTV
mythtv at cvs.mythtv.org
Wed Sep 22 03:31:44 UTC 2010
#8986: mythfilldatabase hangs on MacOS in QFSFileEnginePrivate::nativeRead
-------------------------------------------------------+--------------------
Reporter: Andy Stevenson <lists@…> | Owner: stuartm
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythfilldatabase | Version: 0.23-fixes
Severity: medium | Keywords:
Ticket locked: 0 |
-------------------------------------------------------+--------------------
I have a patch that fixes (works around) the hang in mythfilldatabase on
MacOS.
According to some old posts, this bug appeared in 0.22 and is still
present in 0.23. It worked fine in 0.21.
Reference post with stack trace:
http://www.gossamer-threads.com/lists/mythtv/users/411232
I have been running for several days with my patch, and it's working well.
I am using 0.23-fixes.
The bug is that QFSFileEnginePrivate::nativeRead does not correctly exit
from its read loop when the end-of-stream is reached. Instead, it gets
stuck in a loop with errno==EINTR.
GDB backtrace:
- 0 0x9029d153 in fgetc ()
- 1 0x8ea6acee in QFSFileEnginePrivate::nativeRead ()
- 2 0x8ea2e1e0 in QFile::readData ()
- 3 0x8ea34440 in QIODevice::read ()
- 4 0x8cfb397e in copy ()
Though the actual bug is likely down inside Qt, isolating that with a
proper test case and producing a safe/correct fix is too high a barrier,
so I hope this workaround will suffice for now.
./mythbackend.intel --version
Please attach all output as a file in bug reports.
MythTV Version : 25586
MythTV Branch : branches/release-0-23-fixes
Network Protocol : 23056
Library API : 0.23.1.201000710-1
QT Version : 4.6.0
Options compiled in:
debug darwin_da using_corevideo using_backend using_darwin
using_disable_mmx_for_debugging using_firewire using_frontend
using_hdhomerun using_iptv using_lirc using_mheg using_opengl_video
using_qtwebkit using_appleremote using_bindings_perl using_bindings_python
using_darwin_da using_opengl using_ffmpeg_threads using_live using_mheg
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8986>
MythTV <http://www.mythtv.org/>
MythTV Media Center
More information about the mythtv-commits
mailing list