Author Topic: Wizard project with uppercase T crashes debugger  (Read 4479 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Wizard project with uppercase T crashes debugger
« on: August 02, 2008, 07:21:33 pm »
Lately, since at least svn 5170 any wxWidgets wizard project generated with a name beginning with an uppercase T will crash the debugger.

Change the name to any other beginning letter or a lower case "t" and the problem goes away.

Code
PATH=.;C:\Usr\Proj\wxWidgets287\lib\gcc_dll;C:\Usr\Proj\cbBeta\trunk\src\devel;C:\WINDOWS\system32;C:\WINDOWS;.;c:\Usr\Proj\cbBeta\trunk\src\devel\;c:\usr\bin;c:\usr\bin\subversion\;c:\Usr\mingw345\bin
Command-line: C:\Usr\mingw345\bin\gdb.exe -nx -fullname  -quiet -args ./debug/Test.exe
Working dir : C:\Usr\Proj\temp\Test\
> set prompt >>>>>>cb_gdb:
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set debugevents on
>>>>>>cb_gdb:
> set disassembly-flavor att
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> directory C:/Usr/Proj/temp/Test/
>>>>>>cb_gdb:
> run
Program received signal SIGSEGV, Segmentation fault.
0x08458b00 in ?? ()
>>>>>>cb_gdb:
> set debugevents off
>>>>>>cb_gdb:
> bt 30
#0  0x08458b00 in ?? ()
#1  0x00406417 in __main () at C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566
#2  0x00406209 in main () at C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566
>>>>>>cb_gdb:
> frame 1
#1  0x00406417 in __main () at C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566
C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566:18838:beg:0x406417
Current language:  auto; currently c++
>>>>>>cb_gdb:
> bt 30
#0  0x08458b00 in ?? ()
#1  0x00406417 in __main () at C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566
#2  0x00406209 in main () at C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566
>>>>>>cb_gdb:
> frame 1
#1  0x00406417 in __main () at C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566
C:/Usr/Proj/wxWidgets287/include/wx/intl.h:566:18838:beg:0x406417
>>>>>>cb_gdb:


CB 8.02 does not have this problem.

Also, if you use the console gdb.exe, there is no crash.

svn build  rev 5177 (2008-08-01T17:17:35.636485Z)   gcc 3.4.5 Windows/unicode
« Last Edit: August 02, 2008, 07:35:48 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Wizard project with uppercase T crashes debugger
« Reply #1 on: August 13, 2008, 06:07:32 pm »
I've gotten this problem again with the wx2.8.7 samples.

The only difference I could find between the 8.02 vs SVN gdb commands was "catch throw".

I turned off Debugger option "Catch C++ exceptions" and the problem went away.