Recent

Author Topic: Lazarus, Ubuntu 10.04 and External SIGSEGV  (Read 4690 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2195
    • Lazarus and Free Pascal italian community
Lazarus, Ubuntu 10.04 and External SIGSEGV
« on: May 21, 2010, 09:02:15 am »
Ide information
version #: 0.9.28.2-8ubuntu1
Data: 2010-05-12
Version FPC: 2.4.0
Revision SVN: Unknown
x86_64-linux-gtk 2 (beta)

Question: since I upgraded from Ubuntu 9.10 to 10.04 Lazarus gives me a lot of mistakes External SIGSEGV. Does anyone know why? In case when a call form mode and then close after a while, the program crashes and shows the assembly line:

00000000004D9A92 488b07            mov     (%rdi),%rax

If I skip the execution of the modal window that does not happen.
The appeal form the so

          myForm := TForm2.Create(nil);
          try
             myForm.ShowModal;
          finally
                 myForm.Free;
          end;

Debugging I also said:

Note: DWARF debug information cannot be used with smart linking on this target, switching to static linking
La build del progetto "project1" è stata completata con successo. :)
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2195
    • Lazarus and Free Pascal italian community
Re: Lazarus, Ubuntu 10.04 and External SIGSEGV
« Reply #1 on: May 31, 2010, 12:55:44 am »
So this weekend I went a bit 'deeper issue and I discovered (by accident) that really is not that the ShowModal problems, but the use of static variables.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018