bionic: postfix-dbgsym package lacks DWARF information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
postfix (Debian) |
Fix Released
|
Unknown
|
|||
postfix (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bionic |
Won't Fix
|
Low
|
Michał Małoszewski | ||
Focal |
Invalid
|
Low
|
Unassigned |
Bug Description
I was looking to debug postfix on Bionic today due to a FIPS OpenSSL issue, but failed. ~sergiodj on #ubuntu-devel came to the realization that the debug symbols shipped in postfix-dbgsym (and likely the other postfix-*-dbgsym packages) lacked DWARF information.
This means gdb & friends won't load debug symbols when debugging postfix.
When following http://
GNU gdb (Ubuntu 8.1.1-0ubuntu1) 8.1.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/
(no debugging symbols found)...done.
Attaching to program: /usr/lib/
Reading symbols from /usr/lib/
(no debugging symbols found)...done.
Reading symbols from /usr/lib/
(no debugging symbols found)...done.
Reading symbols from /usr/lib/
(no debugging symbols found)...done.
Reading symbols from /usr/lib/
(no debugging symbols found)...done.
Reading symbols from /usr/lib/
(no debugging symbols found)...done.
... snip ...
Breakpoint 1, rand_drbg_restart (drbg=0x5603ede
478 {
(gdb) backtrace
#0 rand_drbg_restart (drbg=0x5603ede
#1 0x00007f5662cbff55 in drbg_add (buf=0x7f5664352cb0 <randseed>, num=24, randomness=
#2 0x00007f566414ab77 in tls_server_start () from /usr/lib/
#3 0x00005603ecb66eed in smtpd_start_tls ()
#4 0x00005603ecb676b8 in starttls_cmd ()
#6 0x0000558df1c52a32 in smtpd_service ()
#7 0x00007fd3ae0c47aa in single_
#8 0x00007fd3ad832d28 in event_loop () from /usr/lib/
#9 0x00007fd3ae0c56a8 in single_server_main () from /usr/lib/
#10 0x0000558df1c4bb50 in main ()
Notice the warnings from gdb and missing mapping information on the Postfix functions. This remains even though OpenSSL debug information is present and loads properly.
Packages:
[root@ubuntu-
ii postfix 3.3.0-1ubuntu0.3 amd64 High-performance mail transport agent
ii postfix-cdb 3.3.0-1ubuntu0.3 amd64 CDB map support for Postfix
ii postfix-cdb-dbgsym 3.3.0-1ubuntu0.3 amd64 debug symbols for postfix-cdb
ii postfix-dbgsym 3.3.0-1ubuntu0.3 amd64 debug symbols for postfix
ii postfix-ldap 3.3.0-1ubuntu0.3 amd64 LDAP map support for Postfix
ii postfix-ldap-dbgsym 3.3.0-1ubuntu0.3 amd64 debug symbols for postfix-ldap
ii postfix-lmdb 3.3.0-1ubuntu0.3 amd64 LMDB map support for Postfix
ii postfix-lmdb-dbgsym 3.3.0-1ubuntu0.3 amd64 debug symbols for postfix-lmdb
ii postfix-mysql 3.3.0-1ubuntu0.3 amd64 MySQL map support for Postfix
ii postfix-
ii postfix-pcre 3.3.0-1ubuntu0.3 amd64 PCRE map support for Postfix
ii postfix-pcre-dbgsym 3.3.0-1ubuntu0.3 amd64 debug symbols for postfix-pcre
ii postfix-pgsql 3.3.0-1ubuntu0.3 amd64 PostgreSQL map support for Postfix
ii postfix-
ii postfix-sqlite 3.3.0-1ubuntu0.3 amd64 SQLite map support for Postfix
ii postfix-
This is confirmed by eu-readelf -w on one of the debug files:
$ eu-readelf -w /usr/lib/
Thus this is a bug in postfix packaging.
I have not tested this on later versions of the postfix from later Ubuntu releases.
Related branches
- Robie Basak: Disapprove
- Athos Ribeiro (community): Needs Information
- Canonical Server Core Reviewers: Pending requested
- Canonical Server Reporter: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 29 lines (+8/-1)2 files modifieddebian/changelog (+6/-0)
debian/rules (+2/-1)
Changed in postfix (Debian): | |
status: | Unknown → Fix Released |
tags: | added: bitesize |
Changed in postfix (Ubuntu Bionic): | |
assignee: | nobody → Michał Małoszewski (michal-maloszewski99) |
Heh, this ended up in my triage today :-).
Anyway, I'm confirming that the bug happens on Focal, but unfortunately this will be a low priority one for us. I'm also confirming that Impish doesn't suffer from this problem; the debuginfo files from postfix-dbgsym there do have the correct DWARF info.
Thanks!