Bug#1052529: proftpd: provide debug symbols for amd64 platform in sid
Dmitry Katsubo
dma_k at mail.ru
Wed Sep 27 15:36:19 BST 2023
On 2023-09-26 10:42, Preuße, Hilmar wrote:
> On 24.09.2023 00:38, Dmitry Katsubo wrote:
>
> Hello Dmitry,
>
>> Would be great to provide proftpd-*-dbgsym packages for amd64 platform. Current [1] platforms are:
>>
>> alpha hppa ia64 m68k ppc64 riscv64 sh4 sparc64 x32
>>
>> [1] https://packages.debian.org/search?keywords=proftpd
>>
>
> I just rebuilt the proftpd packages and the debug packages were generated. Further I see them on [2]. Maybe refer to [3] to learn how to get these symbols.
>
> Hilmar
>
> [2] https://deb.debian.org/debian-debug/pool/main/p/proftpd-dfsg/
> [3] https://wiki.debian.org/HowToGetABacktrace
Thanks, I was able to install the packages. However I am stuck with how to make advantage of that. I would expect that the symbols are resolved directly in ProFTPD log:
ProFTPD killed (signal 15)
ProFTPD 1.3.8 standalone mode SHUTDOWN
ProFTPD 1.3.8 (stable) (built Sun Jul 2 2023 10:56:40 UTC) standalone mode STARTUP
(localhost[127.0.0.1]): -----BEGIN STACK TRACE-----
(localhost[127.0.0.1]): [0] /usr/lib/proftpd/mod_tls.so(+0x19ef5) [0x7f3b60371ef5]
(localhost[127.0.0.1]): [1] /usr/lib/proftpd/mod_tls.so(+0x19ef5) [0x7f3b60371ef5]
(localhost[127.0.0.1]): [2] /usr/lib/proftpd/mod_tls.so(+0x26a7e) [0x7f3b6037ea7e]
(localhost[127.0.0.1]): [3] proftpd: (accepting connections)(modules_session_init+0x57) [0x55950185bbc7]
(localhost[127.0.0.1]): [4] proftpd: (accepting connections)(+0x204ad) [0x55950182e4ad] <-- trying to resolve this address
(localhost[127.0.0.1]): [5] proftpd: (accepting connections)(+0x20ea1) [0x55950182eea1]
(localhost[127.0.0.1]): [6] proftpd: (accepting connections)(main+0x5f8) [0x55950182cb98]
(localhost[127.0.0.1]): [7] /lib/x86_64-linux-gnu/libc.so.6(+0x271ca) [0x7f3b606461ca]
(localhost[127.0.0.1]): [8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x85) [0x7f3b60646285]
(localhost[127.0.0.1]): [9] proftpd: (accepting connections)(_start+0x21) [0x55950182d1c1]
(localhost[127.0.0.1]): -----END STACK TRACE-----
Then I tried the advise from [4]:
# addr2line -e /usr/sbin/proftpd 0x55950182e4ad
??:0
and with gdb:
# gdb /usr/sbin/proftpd
Reading symbols from /usr/sbin/proftpd...
Reading symbols from /usr/lib/debug/.build-id/f2/6641fdbd8d794169752f091b130234807cdcfb.debug...
(gdb) info symbol 0x55950182e4ad
No symbol matches 0x55950182e4ad.
Any ideas? Thanks in advance!
[4] http://www.proftpd.org/docs/howto/Compiling.html#DeveloperOptions
--
With best regards,
Dmitry
More information about the Pkg-proftpd-maintainers
mailing list