Author Topic: crash of C::B @rev 9601  (Read 5843 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
crash of C::B @rev 9601
« on: January 24, 2014, 09:18:27 am »
I open C::B, and open a new cpp file, and hit some Enter key, then C::B crash.
Below is the backtrace.

Code
Selecting target: 
Code-completion
Adding source dir: F:\cb_sf_git\trunk\src\
Adding source dir: F:\cb_sf_git\trunk\src\
Adding file: .\codeblocks.exe
Changing directory to: F:/cb_sf_git/trunk/src/devel
Set variable: PATH=.;F:\cb_sf_git\trunk\src\base\tinyxml;E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll;F:\cb_sf_git\trunk\src\devel;D:\mingw-builds\473\mingw32\bin;D:\mingw-builds\473\mingw32;E:\code\msys\PortableGit-1.8.5.2-preview20131230\cmd;E:\code\common_bin;D:\opencv246build\build-gcc482-release\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;D:\Program Files\TortoiseSVN\bin;D:\DrmemoryR1652\bin;E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll

[debug]Command-line: E:\code\gdb\mybuild\bin\gdb.exe -nx -fullname  -quiet  -args ./codeblocks.exe
[debug]Working dir : F:\cb_sf_git\trunk\src\devel

Starting debugger: E:\code\gdb\mybuild\bin\gdb.exe -nx -fullname  -quiet  -args ./codeblocks.exe
done

[debug]> set prompt >>>>>>cb_gdb:
[debug]Skip initializing the scripting!

Setting breakpoints

[debug]Reading symbols from ./codeblocks.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.7.50.20140124-cvs
[debug]Copyright (C) 2014 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "mingw32".
[debug]Type "show configuration" for configuration details.
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]Find the GDB manual and other documentation resources online at:
[debug]<http://www.gnu.org/software/gdb/documentation/>.
[debug]For help, type "help".
[debug]Type "apropos word" to search for commands related to "word".
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.7.50.20140124-cvs

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source E:\code\gdb\mybuild\bin\my.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory F:/cb_sf_git/trunk/src/
[debug]Source directories searched: F:/cb_sf_git/trunk/src;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> set args --debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: F:\cb_sf_git\trunk\src\devel\codeblocks.exe --debug-log --no-dde --no-check-associations --multiple-instance --no-splash-screen --verbose -p debug

Child process PID: 3144

[debug][New Thread 3144.0x8b8]
[debug][New Thread 3144.0x844]
[debug][New Thread 3144.0xb98]
[debug][New Thread 3144.0xcb0]
[debug][New Thread 3144.0xfec]
[debug][New Thread 3144.0x444]
[debug][New Thread 3144.0xcac]
[debug][New Thread 3144.0x184]
[debug][Thread 3144.0x184 exited with code 0]
[debug][New Thread 3144.0x8a0]
[debug][Thread 3144.0x8a0 exited with code 0]
[debug][New Thread 3144.0xab8]
[debug][Thread 3144.0xab8 exited with code 0]
[debug][New Thread 3144.0x930]
[debug][Thread 3144.0x930 exited with code 0]
[debug][New Thread 3144.0xea8]
[debug][Thread 3144.0xea8 exited with code 0]
[debug][New Thread 3144.0x81c]
[debug][Thread 3144.0x81c exited with code 0]
[debug][New Thread 3144.0x5a4]
[debug][Thread 3144.0x5a4 exited with code 0]
[debug][New Thread 3144.0xefc]
[debug][Thread 3144.0xefc exited with code 0]
[debug][New Thread 3144.0x528]
[debug][Thread 3144.0x528 exited with code 0]
[debug][New Thread 3144.0x7b4]
[debug][Thread 3144.0x7b4 exited with code 0]
[debug][New Thread 3144.0x1b4]
[debug][Thread 3144.0x1b4 exited with code 0]
[debug][New Thread 3144.0xce4]
[debug][Thread 3144.0xce4 exited with code 0]
[debug][New Thread 3144.0x440]
[debug][New Thread 3144.0x714]
[debug][Thread 3144.0x714 exited with code 0]
[debug][New Thread 3144.0x740]
[debug][New Thread 3144.0xe28]
[debug][New Thread 3144.0xa9c]
[debug][New Thread 3144.0x92c]
[debug][New Thread 3144.0x40c]
[debug][New Thread 3144.0xa88]
[debug][New Thread 3144.0x500]
[debug][New Thread 3144.0x8ac]
[debug][Thread 3144.0x8ac exited with code 0]
[debug][New Thread 3144.0xb70]
[debug][Thread 3144.0xb70 exited with code 0]
[debug][New Thread 3144.0xe5c]
[debug][Thread 3144.0xe5c exited with code 0]
[debug][New Thread 3144.0x7b4]
[debug][Thread 3144.0x7b4 exited with code 0]
[debug][New Thread 3144.0x1b4]
[debug][Thread 3144.0x1b4 exited with code 0]
[debug][New Thread 3144.0xdc8]
[debug][Thread 3144.0xdc8 exited with code 0]
[debug][New Thread 3144.0x49c]
[debug][Thread 3144.0x49c exited with code 0]
[debug][New Thread 3144.0x384]
[debug][Thread 3144.0x384 exited with code 0]
[debug][New Thread 3144.0xedc]
[debug][Thread 3144.0xedc exited with code 0]
[debug][New Thread 3144.0xe9c]
[debug][Thread 3144.0xe9c exited with code 0]
[debug][New Thread 3144.0x924]
[debug][Thread 3144.0x924 exited with code 0]
[debug][New Thread 3144.0x3b4]
[debug][Thread 3144.0x3b4 exited with code 0]
[debug][New Thread 3144.0x940]
[debug][Thread 3144.0x940 exited with code 0]
[debug][New Thread 3144.0x670]
[debug][Thread 3144.0x670 exited with code 0]
[debug][New Thread 3144.0x214]
[debug][Thread 3144.0x214 exited with code 0]
[debug][New Thread 3144.0xf60]
[debug][New Thread 3144.0xb74]
[debug][Thread 3144.0xb74 exited with code 0]
[debug][New Thread 3144.0xb50]
[debug][Thread 3144.0xb50 exited with code 0]
[debug][New Thread 3144.0x674]
[debug][Thread 3144.0x500 exited with code 0]
[debug][Thread 3144.0x674 exited with code 0]
[debug]Program received signal SIGSEGV, Segmentation fault.
[debug]0x0129dd69 in DebuggerManager::PluginData::ClearConfigurations (this=0x6d748e4) at F:\cb_sf_git\trunk\src\include\debuggermanager.h:247
[debug]F:\cb_sf_git\trunk\src\include\debuggermanager.h:247:7151:beg:0x129dd69
[debug]>>>>>>cb_gdb:

Program received signal SIGSEGV, Segmentation fault.
At F:\cb_sf_git\trunk\src\include\debuggermanager.h:247

[debug]> bt 30
[debug]#0  0x0129dd69 in DebuggerManager::PluginData::ClearConfigurations (this=0x6d748e4) at F:\cb_sf_git\trunk\src\include\debuggermanager.h:247
[debug]#1  0x0129de14 in DebuggerManager::PluginData::~PluginData (this=0x6d748e4, __in_chrg=<optimized out>) at F:\cb_sf_git\trunk\src\include\debuggermanager.h:237
[debug]#2  0x01317b56 in std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData>::~pair (this=0x6d748e0, __in_chrg=<optimized out>) at d:\mingw-builds\473\mingw32\lib\gcc\i686-w64-mingw32\4.7.3\include\c++\bits\stl_pair.h:88
[debug]#3  0x012f3da5 in __gnu_cxx::new_allocator<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> >::destroy (this=0x22ec1b, __p=0x6d748e0) at d:\mingw-builds\473\mingw32\lib\gcc\i686-w64-mingw32\4.7.3\include\c++\ext\new_allocator.h:123
[debug]#4  0x0132f536 in std::_Rb_tree<cbDebuggerPlugin*, std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData>, std::_Select1st<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> >, std::less<cbDebuggerPlugin*>, std::allocator<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> > >::_M_destroy_node (this=0x22ece4, __p=0x6d748d0) at d:\mingw-builds\473\mingw32\lib\gcc\i686-w64-mingw32\4.7.3\include\c++\bits\stl_tree.h:394
[debug]#5  0x0132fe50 in std::_Rb_tree<cbDebuggerPlugin*, std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData>, std::_Select1st<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> >, std::less<cbDebuggerPlugin*>, std::allocator<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> > >::_M_erase (this=0x22ece4, __x=0x6d748d0) at d:\mingw-builds\473\mingw32\lib\gcc\i686-w64-mingw32\4.7.3\include\c++\bits\stl_tree.h:1084
[debug]#6  0x0132ffb9 in std::_Rb_tree<cbDebuggerPlugin*, std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData>, std::_Select1st<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> >, std::less<cbDebuggerPlugin*>, std::allocator<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> > >::~_Rb_tree (this=0x22ece4, __in_chrg=<optimized out>) at d:\mingw-builds\473\mingw32\lib\gcc\i686-w64-mingw32\4.7.3\include\c++\bits\stl_tree.h:646
[debug]#7  0x01312c03 in std::map<cbDebuggerPlugin*, DebuggerManager::PluginData, std::less<cbDebuggerPlugin*>, std::allocator<std::pair<cbDebuggerPlugin* const, DebuggerManager::PluginData> > >::~map (this=0x22ece4, __in_chrg=<optimized out>) at d:\mingw-builds\473\mingw32\lib\gcc\i686-w64-mingw32\4.7.3\include\c++\bits\stl_map.h:90
[debug]#8  0x010982c0 in cbEditor::OnEditorModified (this=0x8e568a8, event=...) at F:\cb_sf_git\trunk\src\sdk\cbeditor.cpp:3278
[debug]#9  0x627015f1 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const () from E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#10 0x6276a07e in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#11 0x6276a457 in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () from E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#12 0x6276a514 in wxEvtHandler::ProcessEvent(wxEvent&) () from E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#13 0x6283f502 in wxWindowBase::TryParent(wxEvent&) () from E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#14 0x01177061 in wxScintilla::NotifyParent (this=0x8e2d6a8, _scn=0x22ef2c) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\wxscintilla.cpp:5629
[debug]#15 0x01179a5d in ScintillaWX::NotifyParent (this=0x8e7d1a8, scn=...) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\ScintillaWX.cpp:536
[debug]#16 0x012115dd in Editor::NotifyModified (this=0x8e7d1a8, mh=...) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Editor.cxx:4843
[debug]#17 0x0123122c in Document::NotifyModified (this=0x8e2b2a8, mh=...) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Document.cxx:1974
[debug]#18 0x0122cd44 in Document::InsertString (this=0x8e2b2a8, position=63, s=0x13cfc74 <_ZL13UTF8NELLength+576> "\r\n", insertLength=2) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Document.cxx:974
[debug]#19 0x0122d962 in Document::InsertCString (this=0x8e2b2a8, position=63, s=0x13cfc74 <_ZL13UTF8NELLength+576> "\r\n") at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Document.cxx:1171
[debug]#20 0x0121298a in Editor::NewLine (this=0x8e7d1a8) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Editor.cxx:5157
[debug]#21 0x01215432 in Editor::KeyCommand (this=0x8e7d1a8, iMessage=2329) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Editor.cxx:5580
[debug]#22 0x01226890 in ScintillaBase::KeyCommand (this=0x8e7d1a8, iMessage=2329) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\ScintillaBase.cxx:190
[debug]#23 0x01222b16 in Editor::WndProc (this=0x8e7d1a8, iMessage=2329, wParam=0, lParam=0) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Editor.cxx:9087
[debug]#24 0x012298f7 in ScintillaBase::WndProc (this=0x8e7d1a8, iMessage=2329, wParam=0, lParam=0) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\ScintillaBase.cxx:1028
[debug]#25 0x0117add6 in ScintillaWX::WndProc (this=0x8e7d1a8, iMessage=2329, wParam=0, lParam=0) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\ScintillaWX.cpp:898
[debug]#26 0x0121699c in Editor::KeyDownWithModifiers (this=0x8e7d1a8, key=13, modifiers=0, consumed=0x8e2d818) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Editor.cxx:5787
[debug]#27 0x01216a32 in Editor::KeyDown (this=0x8e7d1a8, key=13, shift=false, ctrl=false, alt=false, consumed=0x8e2d818) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\scintilla\src\Editor.cxx:5796
[debug]#28 0x0117bcb1 in ScintillaWX::DoKeyDown (this=0x8e7d1a8, evt=..., consumed=0x8e2d818) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\ScintillaWX.cpp:1237
[debug]#29 0x011764ca in wxScintilla::OnKeyDown (this=0x8e2d6a8, evt=...) at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\wxscintilla.cpp:5371
[debug](More stack frames follow...)
[debug]>>>>>>cb_gdb:


I'm not sure it is related to the change in rev 9599.  :)

« Last Edit: January 24, 2014, 09:41:26 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: crash of C::B @rev 9601
« Reply #1 on: January 24, 2014, 10:00:32 am »
Yes, this is the guilty revision. This is the result of not testing a change, because you're sure it won't break anything.  ::)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: crash of C::B @rev 9601
« Reply #2 on: January 25, 2014, 11:16:02 am »
Should be fixed in trunk...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Lives here!
  • ****
  • Posts: 797
Re: crash of C::B @rev 9601
« Reply #3 on: January 25, 2014, 11:32:27 am »
May be but svn 9604 does not compile for me, something wrong in cbeditor (even on a full rebuild) :
Quote
||=== Générer : tinyXML dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : AutoRevision dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : ConsoleRunner dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : Squirrel dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : Squirrel std lib dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : SqPlus dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : scintilla dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : wxpropgrid dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
||=== Générer : sdk dans Code::Blocks wx2.8.x (compilateur : GNU GCC Compiler) ===|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\cbeditor.cpp||In member function 'virtual void cbEditor::RefreshBreakpointMarkers()':|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\cbeditor.cpp|2299|error: 'debugger' was not declared in this scope|
C:\Users\Gerard_2\Documents\CodeBlocks_SVN\CodeBlocks_src\src\sdk\cbeditor.cpp|2298|warning: unused variable 'e' [-Wunused-variable]|
||=== Génération de terminé : 1 erreur(s), 1 avertissement(s) (0 minute(s), 5 seconde(s)) ===|

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: crash of C::B @rev 9601
« Reply #4 on: January 25, 2014, 11:56:27 am »
Fixed again, hopefully without causing any more issues :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline gd_on

  • Lives here!
  • ****
  • Posts: 797
Re: crash of C::B @rev 9601
« Reply #5 on: January 25, 2014, 12:40:38 pm »
looks OK now.
Thanks

gd_on
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).