[Bug gdb/25215] New: systemtab probes appear to break armhf gdb with arm64 kernel

michael.hudson at canonical dot com sourceware-bugzilla@sourceware.org
Fri Nov 22 01:50:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=25215

            Bug ID: 25215
           Summary: systemtab probes appear to break armhf gdb with arm64
                    kernel
           Product: gdb
           Version: 8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: michael.hudson at canonical dot com
  Target Milestone: ---

This is in an Ubuntu 19.04 armhf container running on an Ubuntu 19.04 arm64
host (it seems to happen in other host/user version combinations too but I
haven't been exhaustive):

ubuntu@juju-b11c42-ubuntu-17:~$ lxc exec disco -- bash
groot@disco:~# gdb /bin/true
GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git
Copyright (C) 2019 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 "arm-linux-gnueabihf".
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 /bin/true...
(No debugging symbols found in /bin/true)
(gdb) r
Starting program: /usr/bin/true 

Program received signal SIGSEGV, Segmentation fault.
0xf7fc8ee0 in ?? () from /lib/ld-linux-armhf.so.3

Stripping out the .note.stapsdt notes makes things behave:

root@disco:~# cp /lib/ld-linux-armhf.so.3  .
root@disco:~# objcopy -R .note.stapsdt ld-linux-armhf.so.3
ld-linux-armhf.so.3-nostap
root@disco:~# gdb --args ./ld-linux-armhf.so.3-nostap /bin/true
GNU gdb (Ubuntu 8.2.91.20190405-0ubuntu3) 8.2.91.20190405-git
Copyright (C) 2019 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 "arm-linux-gnueabihf".
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 ./ld-linux-armhf.so.3-nostap...
(No debugging symbols found in ./ld-linux-armhf.so.3-nostap)
(gdb) r
Starting program: /root/ld-linux-armhf.so.3-nostap /bin/true
[Inferior 1 (process 1408) exited normally]
(gdb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list