This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20788] New: SIGILL is received running a program with a static inline variable on an armv5


https://sourceware.org/bugzilla/show_bug.cgi?id=20788

            Bug ID: 20788
           Summary: SIGILL is received running a program with a static
                    inline variable on an armv5
           Product: gdb
           Version: 7.7
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
          Assignee: unassigned at sourceware dot org
          Reporter: lorrai.m at gmail dot com
  Target Milestone: ---

Created attachment 9610
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9610&action=edit
c++ code that cannot be properly debugged

Hi

I am receving SIGILL opening a debug session, right after the run command:

Program received signal SIGILL, Illegal instruction.
_dl_debug_initialize (ldbase=3070030068, ns=195904) at dl-debug.c:47
47      dl-debug.c: No such file or directory.

I am attaching a very simple code that shows up the problem.
The program is compiled with g++ -std=c++0x -g main.cpp 
Removing -std=c++0x does not change anything.

The program runs fine without gdb, it simply cannot be debugged.
Without the "static" keyword (row 14), gdb runs fine. Also making the method
not inline, no SIGILL pops up.

System info:

cat /proc/cpuinfo 
processor       : 0
model name      : ARM926EJ-S rev 5 (v5l)
Features        : swp half fastmult edsp java 
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5

Hardware        : Freescale MXS (Device Tree)
Revision        : 0000
Serial          : 0000000000000000

uname -a
Linux ts7680 3.14.28-gaf825ee #5 Mon Mar 21 10:44:09 PDT 2016 armv5tejl
GNU/Linux

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]