Recent

Author Topic: Application crash instantly after start  (Read 376 times)

PetrHlozek

  • New Member
  • *
  • Posts: 12
Application crash instantly after start
« on: May 01, 2025, 05:11:23 pm »
Hi,

I just compiled my application with Lazarus from main branch. The build went fine but unfortunately the app crashes instantly.

The output is:

Code: Pascal  [Select][+][-]
  1. WARNING: /Users/petr/Projects/cqrlog/src/cqrlog is loading libcrypto in an unsafe way
  2. [1]    76405 abort      src/cqrlog

I tried to use gdb and it also crashed :).

Code: Pascal  [Select][+][-]
  1. gdb src/cqrlog                                                                      
  2. GNU gdb (GDB) 16.3
  3. Copyright (C) 2024 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7. Type "show copying" and "show warranty" for details.
  8. This GDB was configured as "--host=aarch64-apple-darwin24.4.0 --target=x86_64-apple-darwin20".
  9. Type "show configuration" for configuration details.
  10. For bug reporting instructions, please see:
  11. <https://www.gnu.org/software/gdb/bugs/>.
  12. Find the GDB manual and other documentation resources online at:
  13.     <http://www.gnu.org/software/gdb/documentation/>.
  14.  
  15. For help, type "help".
  16. Type "apropos word" to search for commands related to "word"...
  17. Reading symbols from src/cqrlog...
  18.  
  19.  
  20. Fatal signal: Abort trap: 6
  21. ----- Backtrace -----
  22. ---------------------
  23. A fatal error internal to GDB has been detected, further
  24. debugging is not possible.  GDB will now terminate.
  25.  
  26. This is a bug, please report it.  For instructions, see:
  27. <https://www.gnu.org/software/gdb/bugs/>.
  28.  
  29. [1]    76408 segmentation fault  gdb src/cqrlog
  30.  

When I put Writeln('test'); into cqrlog.lpr just after begin, it crashes before it can writes anything to the console.

Do you know why is this happening? The app runs fine under Linux.
Thanks for your help.

Petr

zeljko

  • Hero Member
  • *****
  • Posts: 1769
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Application crash instantly after start
« Reply #1 on: May 02, 2025, 07:00:22 pm »
Try with lldb

 

TinyPortal © 2005-2018