SIGSEGV when debugging non-LCL applications
Original Reporter info from Mantis: Vladimir
-
Reporter name: Vladimir Zhirov
Original Reporter info from Mantis: Vladimir
- Reporter name: Vladimir Zhirov
Description:
If I debug LCL application created with "File -> New -> Application", everything works as expected. However when I try to debug non-LCL application (e.g. console application, custom application or fpGUI one), the debugger works every second try and I get two error message boxes when I start debugging:
-
"Project raised exception class 'External: SIGSEGV'."
-
"Execution paused
Adress: $7C918FEA"
Procedure: ntdll!RtlpWaitForCriticalSection
File:
(Some day an assembler window might popup here :)"
Exception address and procedure stay the same for all non-LCL projects I tried to debug.
The whole process looks like this:
- Run (F9)
- Error message #1 (closed), pressing "OK"
- Error message #2 (closed), pressing "OK"
- Application console appears, the output is empty
- Application hangs
- Stop (Ctrl-F2)
- Run (F9)
- Error message #1 (closed), pressing "OK"
- Error message #2 (closed), pressing "OK"
- Application console appears
- The output appears in console, or fpGUI window appears on the screen
- Application is running, and debugger is working as expected until the application is terminated.
Then I have to start from the beginning to get the debugger working.
Some background info:
* Windows XP.
* Lazarus 0.9.25 r16153. I was able to reproduce it a month ago too, I cannot remember the revision number though.
* I have -g and -gl options enabled in "Project -> Compiler Options -> Linking". -XX, -CX and -Xs options are disabled.
* fpc 2.2.2 (shipped with Lazarus).
* gdb 6.7.50.20071127 (shipped with Lazarus).
* Path to gdb contains no spaces or non-ASCII characters.
Mantis conversion info:
- Mantis ID: 11950
- Version: 0.9.25 (SVN)
- Monitored by: » Vincent (Vincent Snijders)
- Target version: 1.0.0
- LazTarget: 1.0