[ wxwindows-Bugs-1729377 ] signal handling and console sample crash

SourceForge.net noreply at sourceforge.net
Fri Jun 1 02:38:55 PDT 2007


Bugs item #1729377, was opened at 2007-06-01 11:38
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729377&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unix specific
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lukasz Michalski (lmichalski)
Assigned to: Nobody/Anonymous (nobody)
Summary: signal handling and console sample crash

Initial Comment:
Console sample crashesh on wxTimer test:

Program terminated with signal 11, Segmentation fault.
#0  0xb7ec0c96 in _wxHashTableBase2::GetFirstNode (buckets=3084666888, table=0x4) at /home/users/zork/wxmerge/wxWidgets-2.8.0/include/wx/hashmap.h:76
76                  if( table[i] )
(gdb) bt
#0  0xb7ec0c96 in _wxHashTableBase2::GetFirstNode (buckets=3084666888, table=0x4) at /home/users/zork/wxmerge/wxWidgets-2.8.0/include/wx/hashmap.h:76
#1  0xb7dd636d in wxAppConsoleUnix::SignalHandlerHash_wxImplementation_HashTable::begin (this=0x8053310)
    at /home/users/zork/wxmerge/wxWidgets-2.8.0/include/wx/unix/app.h:53
#2  0xb7dd5f0f in wxAppConsoleUnix::CheckSignal (this=0x8053240) at /home/users/zork/wxmerge/wxWidgets-2.8.0/src/unix/appunix.cpp:47
#3  0xb7dda1ea in wxConsoleEventLoop::OnNextIteration (this=0xbfd44740) at /home/users/zork/wxmerge/wxWidgets-2.8.0/src/unix/evtloopunix.cpp:194
#4  0xb7d42578 in wxEventLoopManual::Run (this=0xbfd44740) at /home/users/zork/wxmerge/wxWidgets-2.8.0/src/common/evtloopcmn.cpp:78
#5  0x0804a7c1 in TestTimer () at /home/users/zork/wxmerge/wxWidgets-2.8.0/samples/console/console.cpp:2983
#6  0x0804a95b in main (argc=2, argv=0xbfd44844) at /home/users/zork/wxmerge/wxWidgets-2.8.0/samples/console/console.cpp:4493

That is because wxTheApp->CheckSignal is called on wxDummyConsoleApp, which does not derive from wxAppConsoleUnix but directly from wxAppConsole.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1729377&group_id=9863




More information about the wx-dev mailing list