Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Pecan on July 10, 2007, 06:45:33 pm

Title: Crash on termination
Post by: Pecan on July 10, 2007, 06:45:33 pm
Crash in PipedProcess on termination.

I had issued wxLog::EnableLogging(true); in my plugin.
But I couldn't get it to happen a second time.

Xp SVN 4186

Code
Program received signal SIGSEGV, Segmentation fault.
0x7c901010 in ntdll!RtlEnumerateGenericTableLikeADirectory () from ntdll.dll
(gdb) bt
#0  0x7c901010 in ntdll!RtlEnumerateGenericTableLikeADirectory ()
   from ntdll.dll
#1  0x100bb7c1 in wxCriticalSection::Enter ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#2  0x100c73eb in wxEvtHandler::AddPendingEvent ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#3  0x606aeae0 in wxPostEvent (dest=0x1e1b7ec, event=@0x22faec)
    at C:/Usr/Proj/wxWidgets284/include/wx/event.h:2563
#4  0x605ae7a5 in PipedProcess::OnTerminate (this=0x4b3a968, pid=3696,
    status=0) at c:/Usr/Proj/cbBeta/trunk/src/sdk/pipedprocess.cpp:239
#5  0x100c1cba in wxExecuteWindowCbk ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#6  0x77d48709 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#7  0x002502c2 in ?? ()
#8  0x00002b10 in ?? ()
#9  0x00000000 in ?? () from
#10 0x020f0300 in ?? ()
#11 0x100c1c30 in wxExecuteThread ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#12 0x77d487eb in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
#13 0x100c1c30 in wxExecuteThread ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#14 0x77d4b368 in USER32!DefWindowProcW () from C:\WINDOWS\system32\user32.dll
---Type <return> to continue, or q <return> to quit---
#15 0x00000000 in ?? () from
#16 0x100c1c30 in wxExecuteThread ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#17 0x77d4b3b4 in USER32!DefWindowProcW () from C:\WINDOWS\system32\user32.dll
#18 0x010565e0 in ?? ()
#19 0x00002b10 in ?? ()
#20 0x00000000 in ?? () from
#21 0x020f0300 in ?? ()
#22 0x100c1c30 in wxExecuteThread ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#23 0x7c90eae3 in ntdll!LdrDestroyOutOfProcessImage () from ntdll.dll
#24 0x0022fc94 in ?? ()
#25 0x00000018 in ?? ()
#26 0x010565e0 in ?? ()
#27 0x00002b10 in ?? ()
#28 0x00000000 in ?? () from
#29 0x020f0300 in ?? ()
#30 0x100c1c30 in wxExecuteThread ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#31 0x100a542f in wxDDECleanUp ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
#32 0x10064813 in wxModule::DoCleanUpModules ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
---Type <return> to continue, or q <return> to quit---q
Quit (expect signal SIGINT when the program is resumed)
(gdb) bt all
No symbol "all" in current context.
(gdb) help bt
Print backtrace of all stack frames, or innermost COUNT frames.
With a negative argument, print outermost -COUNT frames.
Use of the 'full' qualifier also prints the values of the local variables.

(gdb) bt full
#0  0x7c901010 in ntdll!RtlEnumerateGenericTableLikeADirectory ()
   from ntdll.dll
No symbol table info available.
#1  0x100bb7c1 in wxCriticalSection::Enter ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
No symbol table info available.
#2  0x100c73eb in wxEvtHandler::AddPendingEvent ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
No symbol table info available.
#3  0x606aeae0 in wxPostEvent (dest=0x1e1b7ec, event=@0x22faec)
    at C:/Usr/Proj/wxWidgets284/include/wx/event.h:2563
No locals.
#4  0x605ae7a5 in PipedProcess::OnTerminate (this=0x4b3a968, pid=3696,
    status=0) at c:/Usr/Proj/cbBeta/trunk/src/sdk/pipedprocess.cpp:239
        event = {<> = {<No data fields>}, <BlockAllocated<CodeBlocksEvent,75u, f
alse>> = {static allocator = {
      allocBlocks = {<_Vector_base<BlockAllocator<CodeBlocksEvent, 75u,  false>:
:LinkedBlock<CodeBlocksEvent>*,std::allocator<BlockAllocator<CodeBlocksEvent, 75
u,  false>::LinkedBlock<CodeBlocksEvent>*> >> = {
          _M_impl = {<allocator<BlockAllocator<CodeBlocksEvent, 75u,  false>::Li
nkedBlock<CodeBlocksEvent>*>> = {<new_allocator<BlockAllocator<CodeBlocksEvent,
75u,  false>::LinkedBlock<CodeBlocksEvent>*>> = {<No data fields>}, <No data fie
lds>}, _M_start = 0x0, _M_finish = 0x0,
---Type <return> to continue, or q <return> to quit---
            _M_end_of_storage = 0x0}}, <No data fields>}, first = 0x0,
      ref_count = 0, max_refs = 0, total_refs = 0}}, m_pProject = 0x0,
  m_pEditor = 0x0, m_pPlugin = 0x0, m_X = 0, m_Y = 0, static ms_classInfo = {
    m_className = 0x6079b024, m_objectSize = 76,
    m_objectConstructor = 0x6062208a <CodeBlocksEvent::wxCreateObject()>,
    m_baseInfo1 = 0x106b4998, m_baseInfo2 = 0x0, static sm_first = 0x407b334,
    m_next = 0x607b8d70, static sm_classTable = 0x3e3cd0}}
#5  0x100c1cba in wxExecuteWindowCbk ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
No symbol table info available.
#6  0x77d48709 in USER32!GetDC () from C:\WINDOWS\system32\user32.dll
No symbol table info available.
#7  0x002502c2 in ?? ()
No symbol table info available.
#8  0x00002b10 in ?? ()
No symbol table info available.
#9  0x00000000 in ?? () from
No symbol table info available.
#10 0x020f0300 in ?? ()
No symbol table info available.
#11 0x100c1c30 in wxExecuteThread ()
   from c:\Usr\Proj\cbBeta\trunk\src\devel\wxmsw28u_gcc_custom.dll
No symbol table info available.
---Type <return> to continue, or q <return> to quit---