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 gdb/20793] New: gdb causes Segmentation fault in simple program


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

            Bug ID: 20793
           Summary: gdb causes Segmentation fault in simple program
           Product: gdb
           Version: 7.12.1
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dennisschaefer at gmx dot net
  Target Milestone: ---

Created attachment 9613
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9613&action=edit
program to trigger the bug

Please see the attached c program. 

Compile it with 
gcc -o stack_overflow_example_1 stack_overflow_example_1.c

Running the program without gdb like ./stack_overflow_example_1 AAAA
works just fine. 

By execution the program with gdb instead it results in a Segmentation fault.

gdb ./stack_overflow_example_1 AAAA

GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./stack_overflow_example_1...(no debugging symbols
found)...done.
/media/dennis/Data/Bachelorarbeit/arbeit/src/AAAA: Datei oder Verzeichnis nicht
gefunden.
(gdb) run
Starting program:
/media/dennis/Data/Bachelorarbeit/arbeit/src/stack_overflow_example_1 

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7ab3047 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb)

-- 
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]