From: Antoine Tremblay <antoine.tremblay@ericsson.com>
To: <gdb@sourceware.org>
Subject: Random SIGILL / SIGSEGV on ARMv7 while debugging ?
Date: Thu, 19 Nov 2015 18:22:00 -0000 [thread overview]
Message-ID: <564E136E.9090603@ericsson.com> (raw)
Hi,
I've been running the testsuite on a Odroid XU4 and I get random
SIGILL / SIGSEGV signals while running the testsuite.
It happens around 30% of the time on the same command.
I can get the following log for example :
(gdb) spawn ../gdbserver/gdbserver --once :2346
/home/hexa/src/binutils-gdb/build-arm/gdb/testsuite/gdb.trace/change-loc
Process
/home/hexa/src/binutils-gdb/build-arm/gdb/testsuite/gdb.trace/change-loc
created; pid = 1326
Listening on port 2346
target remote localhost:2346
Remote debugging using localhost:2346
Reading /lib/ld-linux-armhf.so.3 from remote target...
warning: File transfers from remote targets can be slow. Use "set
sysroot" to access files locally instead.
Reading /lib/ld-linux-armhf.so.3 from remote target...
Reading symbols from target:/lib/ld-linux-armhf.so.3...Reading
/lib/ld-2.21.so from remote target...
Reading /lib/.debug/ld-2.21.so from remote target...
(no debugging symbols found)...done.
0xb6fd7a40 in ?? () from target:/lib/ld-linux-armhf.so.3
(gdb) continue
Continuing.
Reading
/home/hexa/src/binutils-gdb/build-arm/gdb/testsuite/gdb.trace/change-loc-1.sl
from remote target...
Reading /lib/arm-linux-gnueabihf/libdl.so.2 from remote target...
Reading /lib/arm-linux-gnueabihf/libm.so.6 from remote target...
Reading /lib/arm-linux-gnueabihf/libc.so.6 from remote target...
Reading /lib/arm-linux-gnueabihf/libdl-2.21.so from remote target...
Reading /lib/arm-linux-gnueabihf/.debug/libdl-2.21.so from remote target...
Reading /lib/arm-linux-gnueabihf/libm-2.21.so from remote target...
Reading /lib/arm-linux-gnueabihf/.debug/libm-2.21.so from remote target...
Reading /lib/arm-linux-gnueabihf/libc-2.21.so from remote target...
Reading /lib/arm-linux-gnueabihf/.debug/libc-2.21.so from remote target...
Program received signal SIGILL, Illegal instruction.
0xb6fd99e2 in ?? () from target:/lib/ld-linux-armhf.so.3
(gdb) FAIL: gdb.trace/change-loc.exp: Can't run to main to check for
trace support
I'm able to reproduce this also with GDB itself using a small program
like so :
int
func1 (int b)
{
return b + 2;
}
int
main ()
{
int c = 1;
while (c)
c = func1 (2);
return c;
}
and running gdb with that script :
set pagination off
start
while 1
step
end
I've tested this on kernel 3.10 and 4.2, same results, 4.2 seems a bit
worse...
I've also tested on a Raspberry Pi2 with kernel 3.18.0 and I can't
reproduce it.
Has anybody else seen this ?
Regards.
Antoine Tremblay
next reply other threads:[~2015-11-19 18:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-19 18:22 Antoine Tremblay [this message]
2015-11-20 9:11 ` Yao Qi
2015-11-20 12:55 ` Antoine Tremblay
2015-11-20 14:16 ` Antoine Tremblay
2016-05-11 12:21 ` Antoine Tremblay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=564E136E.9090603@ericsson.com \
--to=antoine.tremblay@ericsson.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox