Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
4.8.0
-
None
-
Mac OS X 10.6.4, Qt Cocoa 64bits (latest master revision)
Description
When I try to close the browser demo, it crashes.
The problem seems to be in QTextCodecCleanup::~QTextCodecCleanup()
file src/corelib/codecs/qtextcodec.cpp
line 215
Full backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000112cf21a0 0x000000010510c654 in QTextCodecCleanup::~QTextCodecCleanup (this=0x105b08010) at /Users/fabien/Qt/oslo-staging-1/src/corelib/codecs/qtextcodec.cpp:215 215 delete *it; (gdb) bt #0 0x000000010510c654 in QTextCodecCleanup::~QTextCodecCleanup (this=0x105b08010) at /Users/fabien/Qt/oslo-staging-1/src/corelib/codecs/qtextcodec.cpp:215 #1 0x000000010524b3d5 in QGlobalStaticDeleter<QTextCodecCleanup>::~QGlobalStaticDeleter (this=0x1053da378) at qglobal.h:1818 #2 0x0000000105289fb1 in __tcf_1 () at /Users/fabien/Qt/oslo-staging-1/src/corelib/codecs/qtextcodec.cpp:226 #3 0x00000001056097f4 in __cxa_finalize () #4 0x000000010560970c in exit () #5 0x000000010000318f in start () Current language: auto; currently c++
Extract from the source:
QTextCodecCleanup::~QTextCodecCleanup() { if (!all) return; #ifdef Q_DEBUG_TEXTCODEC destroying_is_ok = true; #endif for (QList<QTextCodec *>::const_iterator it = all->constBegin() ; it != all->constEnd(); ++it) { delete *it; // <- crash } delete all; all = 0; localeMapper = 0; #ifdef Q_DEBUG_TEXTCODEC destroying_is_ok = false; #endif }