My program suddenly started to throw SIGSEGV when i close my program. I tried to debug it, i had put a breakpoint at the beginning of the main form's Close action and then with F7, i stepped forward. I reached the "end." at the end of the program and then i got the segfault. If i don't debug, just quit, the debugger will stands in RaiseGDBException at line 902 of LCLProc.
How can i track where the segfault happens and how can i track from where my program jumped into RaiseGDBException?
And during stepping and then removing the breakpoints and continuing it throwed a SIGFPE. Maybe it's not my program at all, but it's one of the external shared objects, the program uses?
I tried to do strace externally:[FORMS.PP] ExceptionOccurred
Sender=EAccessViolation
Exception=Access violation
Stack trace:
$000000000049973D
$0000000000430640
$0000000000560D84 line 1576 of include/canvas.inc
$0000000000556DC8 line 83 of include/bitmapcanvas.inc
$0000000000430640
$00000000005558E8 line 57 of include/custombitmap.inc
$0000000000430640
$000000000069F3FD line 32 of include/customimage.inc
$000000000049C21D
$0000000000639269 line 4857 of include/control.inc
$0000000000627B98 line 6579 of include/wincontrol.inc
$000000000063B97F line 54 of include/customcontrol.inc
$000000000044881F line 338 of include/scrollingwincontrol.inc
$00000000004499A1 line 208 of include/customform.inc
$0000000000430640
$0000000000445AF6 line 1850 of forms.pp
TApplication.HandleException Access violation
Stack trace:
$000000000049973D
$0000000000430640
$0000000000560D84 line 1576 of include/canvas.inc
$0000000000556DC8 line 83 of include/bitmapcanvas.inc
$0000000000430640
$00000000005558E8 line 57 of include/custombitmap.inc
$0000000000430640
$000000000069F3FD line 32 of include/customimage.inc
$000000000049C21D
$0000000000639269 line 4857 of include/control.inc
$0000000000627B98 line 6579 of include/wincontrol.inc
$000000000063B97F line 54 of include/customcontrol.inc
$000000000044881F line 338 of include/scrollingwincontrol.inc
$00000000004499A1 line 208 of include/customform.inc
$0000000000430640
$0000000000445AF6 line 1850 of forms.pp
Exception at 000000000049973D: EAccessViolation:
Access violation.
And i tried an older binary of my program which did not do this segfault thing, but now that does it too, so if the error is in my code, then it was there that time.
It only does this, since my last apt-get update && apt-get upgrade. (Debian 8, AMD64) That's why i ask, if it can be some of the external libs and if yes, how can i tell.