gdb gets SIGSEGV before calling main()

Bug #1719110 reported by Jim Starkey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdb (Ubuntu)
New
Undecided
Unassigned

Bug Description

This about covers it:

jas@rpi3:~$ cat foo.cpp
#include <stdio.h>

int main (int argc, const char **argv)
{
        printf("hello, world\n");

        return 0;
}
jas@rpi3:~$ g++ foo.cpp
jas@rpi3:~$ gdb a.out
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
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 "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 a.out...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/jas/a.out

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

I can't image how this can be. It seems to happen on all images.

Revision history for this message
Jim Starkey (jimstarkey) wrote :

Sorry, Raspberry Pi 3:
$ uname -a
Linux rpi3 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l armv7l armv7l GNU/Linux

$ lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial

no longer affects: ubuntu-mate
Revision history for this message
Jim Starkey (jimstarkey) wrote :

apt-get upgrade reported that gdb was up to date. However, removing and re-installing gdb with apt-get got it working again.

The gdb packaging? The upgrade procedure?

I have a copy of the systems with bad gdb instances if anyone would like to take this on.

But for now, I'm out of the woods...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.