Run debug version on wandboard arch
#1
Hi there,

I need to run a debug version of Kodi from a gdb on my wandboard which runs Arch ARM. I therefore downloaded the PKGBUILD, removed the lines

Code:
--enable-optimizations \
--disable-debug \

from the configure options and compiled on my wandboard (no cross-compilation). It worked out fine and I am able to start kodi.bin. However, when I try to run it from the gdb, with

Code:
$ gdb kodi.bin
(gdb) run

I get the following error:

Code:
Program received signal SIGILL, Illegal instruction.
0x76fdfb24 in _dl_debug_initialize () from /lib/ld-linux-armhf.so.3

Continuing after the signal doesn't work:

Code:
Program terminated with signal SIGILL, Illegal instruction.
The program no longer exists.

I have already tried starting Kodi first and then attach the gdb, but sooner or later I run into the same signal.

Does anybody know what to do? Thanks! Blush
Reply
#2
try to get a backtrace from that.
Reply
#3
Here is the backtrace:

Code:
(gdb) bt
#0  0x76fdfb24 in _dl_debug_initialize () from /lib/ld-linux-armhf.so.3
#1  0x76fd21e8 in dl_main () from /lib/ld-linux-armhf.so.3
#2  0x76fe60ac in _dl_sysdep_start () from /lib/ld-linux-armhf.so.3
#3  0x76fd3e38 in _dl_start_final () from /lib/ld-linux-armhf.so.3
#4  0x76fd40e8 in _dl_start () from /lib/ld-linux-armhf.so.3
#5  0x76fcfc10 in _start () from /lib/ld-linux-armhf.so.3
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
Reply
#4
hard to tell from that, but it could be a bug in ld-linux.
Reply
#5
This issue is related: https://github.com/raspberrypi/linux/issues/766
Reply

Logout Mark Read Team Forum Stats Members Help
Run debug version on wandboard arch0