I tried to debug a program with gdb in Raspbian, but all I get is:
Program received signal SIGILL, Illegal instruction. 0xb6fe8acc in ?? () from /lib/ld-linux-armhf.so.3
It doesn't help to set the
SIGILL handle to
handle SIGILL nostop):
Program received signal SIGILL, Illegal instruction. Program terminated with signal SIGILL, Illegal instruction. The program no longer exists.
All backtrace I get is:
#0 0xb6fe8acc in ?? () from /lib/ld-linux-armhf.so.3 #1 0x00000000 in ?? ()
If I start the program outside of gdb, I get a normal C++ exception (that I would like to debug).
All software were updated to latest version from the raspbian repositories. Further I tried the raspberry pi foundation kernel "3.18.9+" and also the raspbain kernel "3.18.0-trunk-rpi" (I need some custom kernel modules). I can debug the same program on my main machine without any problems.
Update: Debugging works as expected with kernel "3.12-1-rpi".
What is causing this error?