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 breakpoints/23302] SIGSEGV in gdb


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

--- Comment #3 from rupeshpotharla at gmail dot com <rupeshpotharla at gmail dot com> ---
The issue is still seen even with the master branch gdb.

GNU gdb (GDB) 8.1.0.20180612-git
Copyright (C) 2018 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 1...done.
(gdb) br main
Breakpoint 1 at 0x400541: file 1.c, line 5.
(gdb) r
Starting program: /var/1
warning: linux_ptrace_test_ret_to_nx: PC 0x33 is neither near return address
0x7ffff7ff1000 nor is the return instruction 0x444c41!

Breakpoint 1, main () at 1.c:5
5          char foo[] = {"foo"};
(gdb) p strlen(foo)

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000033 in ?? ()
warning: Unable to restore previously selected frame.
Couldn't write registers: Input/output error.
(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]