Debug fails with cygwin in Eclipce, but program runs successfully [message #1538116] |
Wed, 31 December 2014 06:14 |
amit chaudhary Messages: 6 Registered: October 2014 |
Junior Member |
|
|
Hello,
I am running Posix C++ code in Windows in Eclipse Luna. I am able to run the program successfully, but I get SIGSEGV error when I try to debug the same.
Upon pressing Debug, I get the following message:
[New Thread 1132.0x1298]
[New Thread 1132.0x172c]
Temporary breakpoint 1, main (argc=1, argv=0x22aaf0) at ../src/Main.cpp:96
96 unsigned int port = 7496;
Program received signal SIGSEGV, Segmentation fault.
Then when I click on step, I get the following message and program terminates
Single stepping until exit from function cygstdc++-6!_ZNKSs7compareEPKc,
which has no line number information.
1 [main] hello 1132 cygwin_exception::open_stackdumpfile: Dumping stack trace to hello.exe.stackdump
[Inferior 1 (process 1132) exited with code 0105400]
Additonal Information
A simple hello world program successfully debug. There after I commented out major piece of my program and it also successfully debugs. But when I add the following piece of code, the program fails to debug.
for (int i=0;i<1000;i++) {
//Commented out additional code
}
Please help me in fixing this.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03892 seconds