Good day!
I have apache24 process crashing several times a day. I rebuilt it with DEBUG info and also php5 (yes, it is old and software does not work on anything but php5) with debug.
# file /usr/local/sbin/httpd
/usr/local/sbin/httpd: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 13.1 (1301510), FreeBSD-style, with debug_info, not stripped
So, it's not stripped.
Bow when i try to examine core i get his:
gdb /usr/local/sbin/httpd -c 00_httpd_10_18095_81467.core
Reading symbols from /usr/local/sbin/httpd...
[New LWP 100720]
Core was generated by `/usr/local/sbin/httpd -k start'.
Program terminated with signal SIGBUS, Bus error.
Sent by kill() from pid 81467 and user 18095.
#0 0x00000008277c5081 in ?? ()
(gdb) bt full
#0 0x00000008277c5081 in ?? ()
No symbol table info available.
#1 0x00000008208c3e60 in ?? ()
No symbol table info available.
#2 0x0000000000000000 in ?? ()
No symbol table info available.
I understand that i can be inside anything but httpd. So, i need to rebuild world with debug info (i know how to do it) and i need to rebuild apache and everything it depends on with debug. I hate to track it all manually. Is there any way to force debug info for all ports?
Another thing is that if it is inside php so file then how gdb will load symbol table for it? This gets lost.
I have apache24 process crashing several times a day. I rebuilt it with DEBUG info and also php5 (yes, it is old and software does not work on anything but php5) with debug.
# file /usr/local/sbin/httpd
/usr/local/sbin/httpd: ELF 64-bit LSB executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 13.1 (1301510), FreeBSD-style, with debug_info, not stripped
So, it's not stripped.
Bow when i try to examine core i get his:
gdb /usr/local/sbin/httpd -c 00_httpd_10_18095_81467.core
Reading symbols from /usr/local/sbin/httpd...
[New LWP 100720]
Core was generated by `/usr/local/sbin/httpd -k start'.
Program terminated with signal SIGBUS, Bus error.
Sent by kill() from pid 81467 and user 18095.
#0 0x00000008277c5081 in ?? ()
(gdb) bt full
#0 0x00000008277c5081 in ?? ()
No symbol table info available.
#1 0x00000008208c3e60 in ?? ()
No symbol table info available.
#2 0x0000000000000000 in ?? ()
No symbol table info available.
I understand that i can be inside anything but httpd. So, i need to rebuild world with debug info (i know how to do it) and i need to rebuild apache and everything it depends on with debug. I hate to track it all manually. Is there any way to force debug info for all ports?
Another thing is that if it is inside php so file then how gdb will load symbol table for it? This gets lost.