Bugs: Browse | Submit New | Admin

[#16622] Calling skip() on CommandEvent causes segfault on OS X 10.5

Date:
2007-12-27 00:24
Priority:
3
Submitted By:
Alex Fenton (brokentoy)
Assigned To:
Alex Fenton (brokentoy)
Category:
Incorrect behavior
State:
Open
Summary:
Calling skip() on CommandEvent causes segfault on OS X 10.5

Detailed description
If skip is called on the handler for a CommandEvent for the "About" menu item in the minimal sample, there
is a segfault with the following backtrace:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000005
0x906fc265 in CFGetTypeID ()
(gdb) whe
whe
#0  0x906fc265 in CFGetTypeID ()
#1  0x92fc6246 in HIAboutBox ()
#2  0x92e3860e in HIStdAppHandler::HandleEvent ()
#3  0x92e358fe in TEventHandler::EventHandler ()
#4  0x92daf863 in DispatchEventToHandlers ()
#5  0x92daec9d in SendEventToEventTargetInternal ()
#6  0x92dcb08e in SendEventToEventTarget ()
#7  0x92dffc9d in SendHICommandEvent ()
#8  0x92e26377 in SendMenuCommandWithContextAndModifiers ()
#9  0x92e26334 in SendMenuItemSelectedEvent ()
#10 0x92e26242 in FinishMenuSelection ()
#11 0x92e02f32 in MenuSelectCore ()
#12 0x92e91cae in MenuSelect ()
#13 0x0151bab4 in wxMacTopLevelMouseEventHandler (handler=0xbfffe420, event=0x12736860, data=0x0) at
../src/mac/carbon/toplevel.cpp:577
#14 0x014b276c in wxMacAppEventHandler (handler=0xbfffe420, event=0x12736860, data=0x12720be0) at
../src/mac/carbon/app.cpp:665
#15 0x92daf863 in DispatchEventToHandlers ()
#16 0x92daec9d in SendEventToEventTargetInternal ()
#17 0x92dcb08e in SendEventToEventTarget ()
#18 0x92dde02b in ToolboxEventDispatcherHandler ()
#19 0x92dafc1c in DispatchEventToHandlers ()
#20 0x92daec9d in SendEventToEventTargetInternal ()
#21 0x92dcb08e in SendEventToEventTarget ()
#22 0x014b0df5 in wxApp::MacHandleOneEvent (this=0x12720be0, evr=0x12736860) at ../src/mac/carbon/app.cpp:1225
#23 0x014b0ec5 in wxApp::MacDoOneEvent (this=0x12720be0) at ../src/mac/carbon/app.cpp:1194
#24 0x014cc938 in wxEventLoop::Dispatch (this=0x12496b30) at ../src/mac/carbon/evtloop.cpp:107
#25 0x0156b72d in wxEventLoopManual::Run (this=0x12496b30) at ../src/common/evtloopcmn.cpp:115
#26 0x0154160d in wxAppBase::MainLoop (this=0x12720be0) at ../src/common/appcmn.cpp:312
#27 0x0154177b in wxAppBase::OnRun (this=0x12720be0) at ../src/common/appcmn.cpp:367
#28 0x0143afd3 in wxEntry (argc=@0x1be51f8, argv=0x12724300) at ../src/common/init.cpp:456
#29 0x0143b092 in wxEntry (argc=@0x1bc93dc, argv=0x1bc93d4) at ../src/common/init.cpp:468
#30 0x010085ee in _wrap_App_main_loop () at thread.h:594
#31 0x000ce525 in call_cfunc (func=0x1008500 <_wrap_App_main_loop(int, unsigned long*, unsigned long)>, recv=305859120,
len=<value temporarily unavailable, due to optimizations>, argc=0, argv=0xbfffe860) at vm_insnhelper.c:281
#32 0x000d18d0 in vm_call_method (th=0x2007d0, cfp=0x37ff20, num=0, blockptr=0x1, flag=97, id=12240, mn=0x1234adfc,
recv=305859120, klass=305859280) at vm_insnhelper.c:371
#33 0x000d5764 in vm_eval (th=0x2007d0, initial=0) at insns.def:1050
#34 0x000d9adc in vm_eval_body (th=0x2007d0) at vm.c:1148
#35 0x000d9da9 in rb_iseq_eval (iseqval=1609560) at vm.c:1357
#36 0x0001ec64 in ruby_exec_node (n=0x1892b4, file=0x242101 "samples/minimal/minimal.rb") at eval.c:229
#37 0x000237ca in ruby_run_node (n=0x1892b4) at eval.c:259
#38 0x0000239f in main (argc=3, argv=0x200690, envp=0xbffff454) at main.c:39

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-01-05 13:44
Sender: Alex Fenton

This is because it calls the standard OS event handler, which
in a properly bundled OS X displays a system About Box.

This works correctly in the wxWidgets 2.8.9 minimal sample, presumably
because it's wrapped up with an Info.plist etc.

At some point, look again with a bundled Platypus app, but marking
very low priority as it's not a general CommandEvent problem.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
resolution_idNone2009-01-05 13:44brokentoy