gdb gets SIGSEGV before calling main()
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)
{
return 0;
}
jas@rpi3:~$ g++ foo.cpp
jas@rpi3:~$ gdb a.out
GNU gdb (Ubuntu 7.11.1-
Copyright (C) 2016 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 "arm-linux-
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 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-
(gdb)
I can't image how this can be. It seems to happen on all images.
no longer affects: | ubuntu-mate |
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