[Bug 2035384] Re: Provide debug information for zipl and genprotimg
Frank Heimes
2035384 at bugs.launchpad.net
Fri Nov 17 17:05:31 UTC 2023
A corresponding package containing these debug symbols is available:
https://launchpad.net/ubuntu/+source/s390-tools/2.29.0-0ubuntu2/+build/26733459/+files/s390-tools-dbgsym_2.29.0-0ubuntu2_s390x.ddeb
$ readelf -n $(which genprotimg)
Displaying notes found in: .note.gnu.build-id
Owner Data size Description
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)
Build ID: 08c84b9992a613f0b679520774104856de52fdf1
Displaying notes found in: .note.ABI-tag
Owner Data size Description
GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)
OS: Linux, ABI: 3.2.0
$ readelf -n $(which zipl)
Displaying notes found in: .note.gnu.build-id
Owner Data size Description
GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring)
Build ID: 2ac0c097f3cc6881301d528e27a1c51fe895a17a
Displaying notes found in: .note.ABI-tag
Owner Data size Description
GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)
OS: Linux, ABI: 3.2.0
$
$ dpkg -c ./s390-tools-dbgsym_2.29.0-0ubuntu2_s390x.ddeb | grep c84b9992a613f0b679520774104856de52fdf1
-rw-r--r-- root/root 183912 2023-09-20 09:21 ./usr/lib/debug/.build-id/08/c84b9992a613f0b679520774104856de52fdf1.debug
$ dpkg -c ./s390-tools-dbgsym_2.29.0-0ubuntu2_s390x.ddeb | grep c0c097f3cc6881301d528e27a1c51fe895a17a
-rw-r--r-- root/root 298056 2023-09-20 09:21 ./usr/lib/debug/.build-id/2a/c0c097f3cc6881301d528e27a1c51fe895a17a.debug
$
And having the ddeb package installed makes the debug symbols usable in
gdb too:
$ gdb genprotimg
GNU gdb (Ubuntu 14.0.50.20230907-0ubuntu1) 14.0.50.20230907-git
Copyright (C) 2023 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 "s390x-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 genprotimg...
Reading symbols from /usr/lib/debug/.build-id/08/c84b9992a613f0b679520774104856de52fdf1.debug...
(gdb) exit
$ gdb zipl
GNU gdb (Ubuntu 14.0.50.20230907-0ubuntu1) 14.0.50.20230907-git
Copyright (C) 2023 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 "s390x-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 zipl...
Reading symbols from /usr/lib/debug/.build-id/2a/c0c097f3cc6881301d528e27a1c51fe895a17a.debug...
(gdb) exit
And for gentprotimg they exist for amd64 as well as for s390x.
Until a few days ago the debug info was not properly synched to DEBUGINFOD,
but this is now fixed.
$ DEBUGINFOD_URLS=https://debuginfod.ubuntu.com debuginfod-find debuginfo 08c84b9992a613f0b679520774104856de52fdf1
/home/ubuntu/.cache/debuginfod_client/08c84b9992a613f0b679520774104856de52fdf1/debuginfo
$ DEBUGINFOD_URLS=https://debuginfod.ubuntu.com debuginfod-find debuginfo 2ac0c097f3cc6881301d528e27a1c51fe895a17a
/home/ubuntu/.cache/debuginfod_client/2ac0c097f3cc6881301d528e27a1c51fe895a17a/debuginfo
$
** Description changed:
Today the s390-tools package does not provide debug information for the
zipl bootloader tool, nor for the genprotimg tool.
But debug info is desired for zipl and genprotimg.
-
- But both (zipl and genprotimg) don't have build-ids,
- since these are created as raw, hence don't have meta data (compared to the elf format).
** Changed in: s390-tools (Ubuntu)
Assignee: (unassigned) => Frank Heimes (fheimes)
** Changed in: ubuntu-z-systems
Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)
** Changed in: ubuntu-z-systems
Status: New => Fix Released
** Changed in: s390-tools (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-tools in Ubuntu.
https://bugs.launchpad.net/bugs/2035384
Title:
Provide debug information for zipl and genprotimg
Status in Ubuntu on IBM z Systems:
Fix Released
Status in s390-tools package in Ubuntu:
Fix Released
Bug description:
Today the s390-tools package does not provide debug information for
the zipl bootloader tool, nor for the genprotimg tool.
But debug info is desired for zipl and genprotimg.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2035384/+subscriptions
More information about the foundations-bugs
mailing list