[Lazarus] Segmentation fault when stopping daemon in Debian 6 (Lazarus 0.9.30, FPC 2.4.2).
Joshua Lim
joshua__lim at hotmail.com
Fri Jun 3 08:16:08 CEST 2011
Hi, this happens when i created the daemon using the "New Project
wizard" which adds LazDaemonApp instead of LazDaemon and interfaces (for
earlier versions).
joshua at debian:~/Desktop/Data/testapps/basicdaemon$ ./project1 -r
Segmentation fault
joshua at debian:~/Desktop/Data/testapps/basicdaemon$ gdb ./project1
I've tried issuing kill pid and Ctrl C, both will result in Segmentation
fault. Heap trace don't work so i can't debug my application.
I've uploaded the project file with all settings to -
http://www.2shared.com/file/DQKFuP0u/basicdaemon.html
Appreciate any ideas. Thanks. :)
Here's the trace from GDB.
joshua at debian:~/Desktop/Data/testapps/basicdaemon$ gdb ./project1
.............
Reading symbols from
/home/joshua/Desktop/Data/testapps/basicdaemon/project1...done.
(gdb) run -r
Starting program: /home/joshua/Desktop/Data/testapps/basicdaemon/project1 -r
^C
Program received signal SIGINT, Interrupt.
0xb7fe2424 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fe2424 in __kernel_vsyscall ()
#1 0x08048732 in SYSTEM_FPSYSCALL$LONGINT$LONGINT$LONGINT$$LONGINT ()
#2 0x0809f481 in BASEUNIX_FPSIGSUSPEND$SIGSET_T$$LONGINT ()
#3 0x0809f56a in BASEUNIX_SIGPAUSE$LONGINT$$LONGINT ()
#4 0x00000000 in ?? ()
(gdb)
More information about the Lazarus
mailing list