>>> 12:59:46[root|/coreland ] $ gdb /usr/local/bin/rspamd -c rspamd-1.4.0-.core
>>> GNU gdb 6.1.1 [FreeBSD]
>>> Copyright 2004 Free Software Foundation, Inc.
>> Так, символы появились, но теперь не работает сам gdb. А что если
>> попробовать gdb из портов (там он хотя бы не 12-ти летней
>> давности) или lldb (хотя его устанавливать более трудно во фре)?А сейчас выдало вот что:
15:11:48[root|/coreland ] $ /usr/local/bin/gdb /usr/local/bin/rspamd -c rspamd-1.4.0-.core
GNU gdb (GDB) 7.11.1 [GDB v7.11.1 for FreeBSD]
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd9.3".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/rspamd...done.
[New LWP 101849]
Core was generated by `rspamd-1.4.0'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 lc_len (node=<optimized out>, pos=<error reading variable: Cannot access memory at address 0x0>, node=<optimized out>)
at /usr/ports/mail/rspamd/work/rspamd-1.4.0/contrib/lc-btrie/btrie.c:855
855 return node->lc_flags & LC_FLAGS_LEN_MASK;
(gdb) bt full
#0 lc_len (node=<optimized out>, pos=<error reading variable: Cannot access memory at address 0x0>, node=<optimized out>)
at /usr/ports/mail/rspamd/work/rspamd-1.4.0/contrib/lc-btrie/btrie.c:855
int_plen = <error reading variable int_plen (Cannot access memory at address 0x4)>
int_pfx = <error reading variable int_pfx (Cannot access memory at address 0x0)>
int_node = <optimized out>
lc_node = 0x1
end = <optimized out>
end = <optimized out>
pfx = <optimized out>
plen = <optimized out>
#1 btrie_lookup (btrie=<optimized out>, prefix=0x191c8814 "", len=32) at /usr/ports/mail/rspamd/work/rspamd-1.4.0/contrib/lc-btrie/btrie.c:1409
No locals.
Backtrace stopped: Cannot access memory at address 0x7fffffffd768
И вот это:
15:12:55[root|/coreland ] $ gdb /usr/local/bin/rspamd -c rspamd-1.4.0-.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
warning: core file may not match specified executable file.
Core was generated by `rspamd-1.4.0'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libfann.so.2...done.
Loaded symbols for /usr/local/lib/libfann.so.2
Reading symbols from /lib/libutil.so.9...done.
Loaded symbols for /lib/libutil.so.9
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libintl.so.8...done.
Loaded symbols for /usr/local/lib/libintl.so.8
Reading symbols from /usr/local/lib/libgmodule-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgmodule-2.0.so.0
Reading symbols from /usr/local/lib/libpcre.so.1...done.
Loaded symbols for /usr/local/lib/libpcre.so.1
Reading symbols from /usr/local/lib/libgmime-2.6.so.0...done.
Loaded symbols for /usr/local/lib/libgmime-2.6.so.0
Reading symbols from /usr/local/lib/libgio-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgio-2.0.so.0
Reading symbols from /usr/local/lib/libgobject-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgobject-2.0.so.0
Reading symbols from /usr/local/lib/libgthread-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgthread-2.0.so.0
Reading symbols from /usr/local/lib/libevent-2.0.so.5...done.
Loaded symbols for /usr/local/lib/libevent-2.0.so.5
Reading symbols from /usr/local/lib/libsqlite3.so.0...done.
Loaded symbols for /usr/local/lib/libsqlite3.so.0
Reading symbols from /usr/local/lib/libiconv.so.2...done.
Loaded symbols for /usr/local/lib/libiconv.so.2
Reading symbols from /usr/local/lib/libssl.so.9...done.
Loaded symbols for /usr/local/lib/libssl.so.9
Reading symbols from /usr/local/lib/libcrypto.so.9...done.
Loaded symbols for /usr/local/lib/libcrypto.so.9
Reading symbols from /usr/lib/libmagic.so.4...done.
Loaded symbols for /usr/lib/libmagic.so.4
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libluajit-5.1.so.2...done.
Loaded symbols for /usr/local/lib/libluajit-5.1.so.2
Reading symbols from /usr/local/lib/rspamd/librspamd-actrie.so...done.
Loaded symbols for /usr/local/lib/rspamd/librspamd-actrie.so
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /usr/local/lib/libicui18n.so.58...done.
Loaded symbols for /usr/local/lib/libicui18n.so.58
Reading symbols from /lib/libz.so.6...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/local/lib/libffi.so.6...done.
Loaded symbols for /usr/local/lib/libffi.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/local/lib/libicuuc.so.58...done.
Loaded symbols for /usr/local/lib/libicuuc.so.58
Reading symbols from /usr/local/lib/libicudata.so.58...
warning: Lowest section in /usr/local/lib/libicudata.so.58 is .hash at 0000000000000120
done.
Loaded symbols for /usr/local/lib/libicudata.so.58
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /usr/lib/libsupc++.so.1...done.
Loaded symbols for /usr/lib/libsupc++.so.1
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 btrie_lookup (btrie=<value optimized out>, prefix=0x191c9074 "MТв\231", len=32) at /usr/ports/mail/rspamd/work/rspamd-1.4.0/contrib/lc-btrie/btrie.c:855
855 return node->lc_flags & LC_FLAGS_LEN_MASK;
[New Thread 805807400 (LWP 100651/<unknown>)]
[New LWP 101712]
(gdb) bt full
#0 btrie_lookup (btrie=<value optimized out>, prefix=0x191c8664 "WЪ", len=32) at /usr/ports/mail/rspamd/work/rspamd-1.4.0/contrib/lc-btrie/btrie.c:855
No locals.
Cannot access memory at address 0x7fffffffd758
Current language: auto; currently minimal
(gdb)