From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 84306 invoked by alias); 19 Nov 2015 18:22:42 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 84279 invoked by uid 89); 19 Nov 2015 18:22:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 19 Nov 2015 18:22:41 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id E6.DB.32596.451BD465; Thu, 19 Nov 2015 12:24:05 +0100 (CET) Received: from [142.133.110.95] (147.117.188.8) by smtp-am.internal.ericsson.com (147.117.188.77) with Microsoft SMTP Server id 14.3.248.2; Thu, 19 Nov 2015 13:22:38 -0500 To: From: Antoine Tremblay Subject: Random SIGILL / SIGSEGV on ARMv7 while debugging ? Message-ID: <564E136E.9090603@ericsson.com> Date: Thu, 19 Nov 2015 18:22:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00030.txt.bz2 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