Recent

Author Topic: What is 'External: SIGSEV'  (Read 7939 times)

stab

  • Full Member
  • ***
  • Posts: 237
What is 'External: SIGSEV'
« on: May 14, 2010, 07:05:38 pm »
Newbie with Lazarus but long time Delphi user.

Made a very simple app, one button and onclick-event with code:
procedure TForm1.Button1Click(Sender: TObject);
var
  i : integer;
begin
  i := 0;

  i := i + 1;
end;

Would like to use breakpoints to pinpoint behavior and opened
Environment--> Options--> Debugger and marked GNU debugger(gdb).

Added a breakpoint at 'i := 0';

The app stopped immediately with:
Project project1.exe raised exception class 'External: SIGSEV'

How should one do to be able to use breakpoints?

Regards
stab :o

Imants

  • Full Member
  • ***
  • Posts: 198
Re: What is 'External: SIGSEV'
« Reply #1 on: May 15, 2010, 01:00:38 pm »
I Delphi this code would be eliminated by optimizer and you couldn't use brake points there either.
But which Lazarus do you use because I use Lazarus from trunk and I have no problems with breakpoints(works same as in Delphi and no need for extra configuration).

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4660
  • I like bugs.
Re: What is 'External: SIGSEV'
« Reply #2 on: May 15, 2010, 02:15:47 pm »
Looks like gdb somehow gives the SIGSEV. Can you run gdb from command line? Can you debug a program with it from command line?

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2671
Re: What is 'External: SIGSEV'
« Reply #3 on: May 16, 2010, 07:42:58 pm »
what os, what lazarus version ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

stab

  • Full Member
  • ***
  • Posts: 237
Re: What is 'External: SIGSEV'
« Reply #4 on: May 18, 2010, 07:44:04 pm »
Os: Windows XP svp 3

Lazarus: 0.9.28.2 beta

stab

  • Full Member
  • ***
  • Posts: 237
Re: What is 'External: SIGSEV'
« Reply #5 on: May 18, 2010, 07:47:56 pm »
and FPC version: 2.2.4

 

TinyPortal © 2005-2018