Recent

Author Topic: 'External SIGSEGV' in file 'include\customform.inc'  (Read 5850 times)

WickedDum

  • Full Member
  • ***
  • Posts: 211
'External SIGSEGV' in file 'include\customform.inc'
« on: July 15, 2017, 09:44:00 am »
Good evening!

I really have no idea what is causing this error:  'External SIGSEGV' in file 'include\customform.inc' at line 1935:  if Value <> FPosition then

The program compiles successfully.  Then, after about 2-3 seconds, the error message appears.  I don't even know where to start looking...   %)

Any assistance/thoughts would be appreciated.  Thanks!!
Practice Safe Computing!!

Intel i5-4460K @ 3.2GHz | Win8.1 64-bit | FPC: v3.0 | Lazarus:  v1.6.0

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: 'External SIGSEGV' in file 'include\customform.inc'
« Reply #1 on: July 15, 2017, 10:06:11 am »
... I don't even know where to start looking...   %)
You have an uninitialized variable in your code, maybe a variable of type TForm.
Difficult to know more without seeing your code.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
Re: 'External SIGSEGV' in file 'include\customform.inc'
« Reply #2 on: July 15, 2017, 10:56:03 am »
Does the same problem exist even when run from outside of IDE?
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

Thaddy

  • Hero Member
  • *****
  • Posts: 14364
  • Sensorship about opinions does not belong here.
Re: 'External SIGSEGV' in file 'include\customform.inc'
« Reply #3 on: July 15, 2017, 01:01:13 pm »
Juha is right. That's probably uninitialized. We need some example code. Will be fixed in no time.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

WickedDum

  • Full Member
  • ***
  • Posts: 211
Re: 'External SIGSEGV' in file 'include\customform.inc'
« Reply #4 on: July 15, 2017, 10:46:25 pm »
Thanks!  The code?  5 files...   :(

@Juha 
Quote
You have an uninitialized variable in your code, maybe a variable of type TForm.

Could you show me an example of an uninitialized TForm?

Thanks!!

Practice Safe Computing!!

Intel i5-4460K @ 3.2GHz | Win8.1 64-bit | FPC: v3.0 | Lazarus:  v1.6.0

Bart

  • Hero Member
  • *****
  • Posts: 5288
    • Bart en Mariska's Webstek
Re: 'External SIGSEGV' in file 'include\customform.inc'
« Reply #5 on: July 16, 2017, 12:24:20 am »
Could you show me an example of an uninitialized TForm?

Code: Pascal  [Select][+][-]
  1. procedure crash;
  2. var
  3.   F: TForm;
  4. begin
  5.   //local variables are not initialized, so they contain the random value that is on the stack.
  6.   F.Top := 1;
  7. end;
  8.  

Bart

 

TinyPortal © 2005-2018