Author Topic: C::B generated .exe-Files crashes  (Read 8143 times)

Offline Treito

  • Single posting newcomer
  • *
  • Posts: 5
C::B generated .exe-Files crashes
« on: March 28, 2013, 01:34:58 pm »
Hello,

I am new to Codeblocks. I wanted to try wxSmith and followed the tutorial. There are no errors compiling the .exe, but when I try to start it, I get the error message from windows "plain.exe is not working anymore".
What is wrong?

OS is Windows 8 64-Bit

Error message is "Process was ended with status -1073741819. (0 Minuten, 1 Sekunden)" (Translated)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B generated .exe-Files crashes
« Reply #1 on: March 28, 2013, 02:00:55 pm »
What is wrong?
You've not used the debugger to try to see what is really wrong...

Does it work correctly with a simple console project?
(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 Treito

  • Single posting newcomer
  • *
  • Posts: 5
Re: C::B generated .exe-Files crashes
« Reply #2 on: March 28, 2013, 02:07:40 pm »
Thanks for the reply.

A simple console application seems to work, but even with the debugger I could not start the project:

Code
Debugger Nameund Version: GNU gdb (GDB) 7.5
Child process PID: 12112
Program received signal SIGSEGV, Segmentation fault.

Edit:
Code
Erstellen um zu gewährleisten das die Dateien auf auktuellen Stand sind
Ziel wählen:
Debug
Adding source dir: E:\Eigene Dateien\Eigene Dokumente\Programmierung\Tutorial\Plain\
Adding source dir: E:\Eigene Dateien\Eigene Dokumente\Programmierung\Tutorial\Plain\
Adding file: E:\Eigene Dateien\Eigene Dokumente\Programmierung\Tutorial\Plain\bin\Debug\Plain.exe
Changing directory to: E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/.
Set variable: PATH=.;D:\SourceCode\Libraries\wxWidgets2.8\lib\gcc_dll;d:\Programme\CodeBlocks\MinGW\bin;d:\Programme\CodeBlocks\MinGW;D:\MinGW64\bin;D:\MinGW64\bin\bin;D:\MinGW64;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES;C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\DATA;C:\Programme\MATROX~1\System64;C:\Programme\MATROX~1\System32;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Common Files\Acronis\SnapAPI;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\MKVtoolnix;D:\SocketeQ\windowsandroid_root\system\bin;D:\SocketeQ\windowsandroid_root\system\lib

[debug]Command-line: D:\Programme\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname  -quiet  -args E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/bin/Debug/Plain.exe
[debug]Working dir : E:\EIGENE~1\EIGENE~2\PROGRA~1\Tutorial\Plain

Starte Debugger: D:\Programme\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname  -quiet  -args E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/bin/Debug/Plain.exe
erledigt

[debug]> set prompt >>>>>>cb_gdb:

Neuen Typ registriert: wxString
Neuen Typ registriert: STL String
Neuen Typ registriert: STL Vector
Setze Haltpunkt

[debug]Reading symbols from E:\EIGENE~1\EIGENE~2\PROGRA~1\Tutorial\Plain\bin\Debug\Plain.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 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 "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger Nameund Version: GNU gdb (GDB) 7.5

[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 att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source D:\Programme\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain/
[debug]Source directories searched: E:/EIGENE~1/EIGENE~2/PROGRA~1/Tutorial/Plain;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: E:\EIGENE~1\EIGENE~2\PROGRA~1\Tutorial\Plain\bin\Debug\Plain.exe

Child process PID: 8696

[debug][New Thread 8696.0x2c6c]
[debug]Program received signal SIGSEGV, Segmentation fault.
[debug]0x00000002 in ?? ()
[debug]>>>>>>cb_gdb:

Program received signal SIGSEGV, Segmentation fault.
In ?? () ()

[debug]> bt 30
[debug]#0  0x00000002 in ?? ()
[debug]#1  0x00000000 in ?? ()
[debug]>>>>>>cb_gdb:
« Last Edit: March 28, 2013, 02:20:12 pm by Treito »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B generated .exe-Files crashes
« Reply #3 on: March 28, 2013, 03:21:03 pm »
... but even with the debugger I could not start the project:
The debugger won't make your project magically work, but it could help you to find the problem.
Do you have symbols in the executable?

Read this for some info about the setup needed in order to debug something: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
(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 Treito

  • Single posting newcomer
  • *
  • Posts: 5
Re: C::B generated .exe-Files crashes
« Reply #4 on: March 28, 2013, 03:27:53 pm »
I meant the project crashes immediatly.

From the call stack:
Code
#0 00000002	?? () (??:??)
#1 ?? ?? () (??:??)

Offline Treito

  • Single posting newcomer
  • *
  • Posts: 5
Re: C::B generated .exe-Files crashes
« Reply #5 on: March 28, 2013, 04:31:09 pm »
I even cannot set a breakpoint at the beginning of the project!

Offline Treito

  • Single posting newcomer
  • *
  • Posts: 5
Re: C::B generated .exe-Files crashes
« Reply #6 on: March 28, 2013, 08:42:33 pm »
After reinstalling and reconfiguring wxWidgets I get now the error-code:

Code
#0 ??	0x61d276c6 in wxObject::wxObject (this=0x403686 <operator new(unsigned int)+182>) (../../include/wx/object.h:412)
#1 ?? 0x6194ae40 in wxEvtHandler::wxEvtHandler (this=0x403686 <operator new(unsigned int)+182>) (../../src/common/event.cpp:1031)
#2 ?? 0x618c126b in wxAppConsole::wxAppConsole (this=0x403686 <operator new(unsigned int)+182>) (../../src/common/appbase.cpp:122)
#3 ?? 0x619f3b95 in wxAppBase::wxAppBase (this=0x403686 <operator new(unsigned int)+182>) (../../src/common/appcmn.cpp:84)
#4 ?? 0x61961c61 in wxApp::wxApp (this=0x403686 <operator new(unsigned int)+182>) (../../src/msw/app.cpp:510)
#5 0040D4C9 TestPlainApp::TestPlainApp(this=0x4774b8) (E:/Programmierung/Tutorial/TestPlain/TestPlainApp.h:15)
#6 004013A4 wxCreateApp() (E:\Programmierung\Tutorial\TestPlain\TestPlainApp.cpp:18)
#7 618F4255 wxEntryStart(argc=@0x28fd90: 1, argv=0x477248) (../../src/common/init.cpp:273)
#8 618F464A wxInitialize(argc=1, argv=0x477248) (../../src/common/init.cpp:479)
#9 61CDFB98 wxInitializer::wxInitializer(this=0x28fdcf, argc=1, argv=0x477248) (../../include/wx/init.h:81)
#10 618F4508 wxEntryReal(argc=@0x28fe1c: 1, argv=0x477248) (../../src/common/init.cpp:417)
#11 61950E9C wxEntry(argc=@0x28fe1c: 1, argv=0x477248) (../../src/msw/main.cpp:231)
#12 61951021 wxEntry(hInstance=0x400000, nCmdShow=10) (../../src/msw/main.cpp:386)
#13 0040141A WinMain@16(hInstance=0x400000, hPrevInstance=0x0, lpCmdLine=0x7343a5 "", nCmdShow=10) (E:\Programmierung\Tutorial\TestPlain\TestPlainApp.cpp:18)
#14 0040E75B main () (??:??)