[Lazarus] about raised exception class 'External: SIGSEGV'

Martin Frb lazarus at mfriebe.de
Mon Apr 14 16:39:16 CEST 2014

On 14/04/2014 11:49, FreeMan wrote:
> Hello,
> I get this errors some time, I can not handle this error so I don't 
> know why raised.
> Project myproject raised exception class 'External: SIGSEGV'. -> Ok 
> and continue to run application
> Project myproject raised exception class 'RunError(216)'. -> Ok and 
> continue to run application

run errors are translated here: 

As already explained you are accessing memory that is not part of your app.

If you run in the debugger, then when the debugger reports the error 
choose "break", and open the stack window., and search the top line that 
is in your app.
Sometimes the debugger does not get the stack, you can try to run again. 
The debugger may report an error again, and there is a chance the stack 
is available then.
If not, then it will be hard to find. (You need to step, until you find 
the line, then stop, start over step again, step into the line , start 
over ....)

If you find the line, inspect all variables.

You should compile with options such as
- Range check and similar   -Criot
- uninitialzied vars   -gt  (also try -gtt and -gttt  / but only one at 
a time)
- heaptrc   -gh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140414/8aae76f2/attachment-0003.html>

More information about the Lazarus mailing list