Bug 243722

Summary: Applications using qt-mysql crash if database is removed before QApplication is destroyed
Product: [Fedora] Fedora Reporter: Jarod Wilson <jarod>
Component: qtAssignee: Than Ngo <than>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: low    
Version: 7CC: rdieter
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: f7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-06-14 11:54:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 258301    
Attachments:
Description Flags
qt3 mysql unload crash fix none

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.