[Qt-interest] strange EXC_BAD_ACCESS crash only on Mac

Oliver Demetz forenbeitraege at oliverdemetz.de
Fri Oct 16 10:45:17 CEST 2009


Hi,
I have developed a meanwhile quite stable app on Windows.
There it runs fine and I don't know of any crash.
Now I ported to Mac, getting the following program crash:

gdb output:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000104
0x00a05cf6 in QApplication::restoreOverrideCursor ()
(gdb) backtrace
#0  0x00a05cf6 in QApplication::restoreOverrideCursor ()
#1  0x00a1868e in QWidgetPrivate::qt_widget_event ()
#2  0x970fd13d in DispatchEventToHandlers ()
#3  0x970fc57b in SendEventToEventTargetInternal ()
#4  0x970fc3e0 in SendEventToEventTargetWithOptions ()
#5  0x9711fded in HIView::SendDraw ()
#6  0x9711f8c6 in HIView::RecursiveDrawComposited ()
#7  0x9711fa2f in HIView::RecursiveDrawComposited ()
#8  0x9711fa2f in HIView::RecursiveDrawComposited ()
#9  0x9711eccc in HIView::DrawComposited ()
#10 0x9711e9df in HIView::Draw ()
#11 0x9711e92f in HIView::Render ()
#12 0x97126d67 in FlushWindowObject ()
#13 0x97129fac in _FlushWindow ()
#14 0x971814c7 in PostActivateEvent ()
#15 0x97180f17 in HiliteAndActivateWindow ()
#16 0x973bee11 in AdjustToNewWindowActivation ()
#17 0x97182120 in PotentiallyAdjustToNewWindowActivation ()
#18 0x9718206a in BringToFrontAndActivateWindow ()
#19 0x97181f27 in WindowData::SelectWindow ()
#20 0x00a16af3 in QWidget::activateWindow ()
#21 0x00a0a11a in QApplicationPrivate::globalEventProcessor ()
#22 0x970fd13d in DispatchEventToHandlers ()
#23 0x970fc57b in SendEventToEventTargetInternal ()
#24 0x970fc3e0 in SendEventToEventTargetWithOptions ()
#25 0x9712ad54 in ToolboxEventDispatcherHandler ()
#26 0x970fd4f6 in DispatchEventToHandlers ()
#27 0x970fc57b in SendEventToEventTargetInternal ()
#28 0x97118ecc in SendEventToEventTarget ()
#29 0x00a1df94 in non-virtual thunk to QDesktopWidget::~QDesktopWidget() ()
#30 0x00544391 in QEventLoop::processEvents ()
#31 0x0054455d in QEventLoop::exec ()
#32 0x005482ce in QCoreApplication::exec ()
#33 0x00071da1 in main (argc=2, argv=0xbffff8b0) at main.cpp:118

The error occurs after I close a window, but I don't know whether this 
is relevant since there is no destructor or such involved in the 
backtrace, and please keep in mind that the same code runs fine on windows.
Ah, and these is also no difference between the debug and release build.

Thanks in advance,
best regards,
Olli



More information about the Qt-interest-old mailing list