View: 5546|Reply: 1

SIGILL on using GDB, in ld-linux-armhf.so.3

[Copy link]

3

threads

10

posts

39

credits

Novice

Rank: 1

credits
39
Published in 2017-3-23 11:47:27 | Show all floors |Read mode
getting error when debugging.
This is a major as most linux c debuggers include vccode and eclypse use gdbserver/gdb as a backend
Program received signal SIGSEGV, Segmentation fault.
0xb6fd9822 in ?? () from /lib/ld-linux-armhf.so.3
(gdb)


the issue was reported for raspberrypi
https://github.com/raspberrypi/linux/issues/766

Not sure how to post issues to this source base.

3

threads

10

posts

39

credits

Novice

Rank: 1

credits
39
 Author| Published in 2017-3-23 11:53:09 | Show all floors
steps to reproduce
install the orange pi armbian onto an sd card
ssh to Orange PI  as root
create a file like this
  1. #include <stdio.h>
  2. int main(void)
  3. {
  4.         printf("hi\n");
  5. }
Copy code

install and dev and build

  1. #sudo apt-get install g++, gdb
  2. #g++ hello.c -o hello -g
Copy code


run the debugger

  1. #gdb ./hello
Copy code

Program received signal SIGSEGV, Segmentation fault.
0xb6fd9822 in ?? () from /lib/ld-linux-armhf.so.3
(gdb)
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list