Bug 243722 - Applications using qt-mysql crash if database is removed before QApplication is destroyed
Summary: Applications using qt-mysql crash if database is removed before QApplication ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: qt
Version: 7
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 258301
TreeView+ depends on / blocked
 
Reported: 2007-06-11 15:03 UTC by Jarod Wilson
Modified: 2007-11-30 22:12 UTC (History)
1 user (show)

Fixed In Version: f7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-06-14 11:54:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
qt3 mysql unload crash fix (1.12 KB, patch)
2007-06-11 15:07 UTC, Jarod Wilson
no flags Details | Diff

Description Jarod Wilson 2007-06-11 15:03:46 UTC
Description of problem:
An application doing

    QSqlDatabase::removeDatabase(db);

before the QApplication instance is destroyed may result in the program crashing.

Upstream bug:
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=154194

No patch available there, but SUSE's qt carries a patch for the problem, which
is available in their srpm, buildsystem, or from a list post here:

http://www.gossamer-threads.com/lists/engine?do=post_attachment;postatt_id=10590;list=mythtv

Version-Release number of selected component (if applicable):
qt-3.3.8-4.fc7

Comment 1 Jarod Wilson 2007-06-11 15:07:14 UTC
Created attachment 156722 [details]
qt3 mysql unload crash fix

Comment 2 Rex Dieter 2007-06-11 15:12:00 UTC
Thanks Jarod, have you confirmed the patch works as advertised?

Comment 3 Jarod Wilson 2007-06-11 15:20:53 UTC
Personally, no, not just yet, but it was brought to my attention by some of the
mythtv developers whom I completely trust, and has already been added on top of
qt 3.3.8 in a few other distros with the desired result of eliminating the
crash. Some further details:

http://svn.mythtv.org/trac/ticket/3595
http://www.gossamer-threads.com/lists/mythtv/dev/257269


Comment 4 Than Ngo 2007-06-14 11:54:19 UTC
i have backported the fix for #bz243722, it will be included in 
qt-3_3_8-5_fc7_1. I will push new qt in f7 update soon. Thanks for your 
report.

Comment 5 Gregorio Gervasio 2007-08-25 14:22:45 UTC
I believe that this bug has not been fixed in f7 yet (qt3)?  It looks like only
the fc6 fixes were released two months ago.

Comment 6 Than Ngo 2007-08-28 17:32:35 UTC
it's built long ago but i forgot to push it out :(
i'm now building it with the security fix and will push it out when the build 
is done. Thanks for remind.



Note You need to log in before you can comment on or make changes to this bug.