This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/9615] gdb crashes with SIGSEGV when debugging nested inline functions.
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 20 Jan 2009 23:08:56 -0000
- Subject: [Bug gdb/9615] gdb crashes with SIGSEGV when debugging nested inline functions.
- References: <20080821201801.9615.raj.khem@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2009-01-20 23:08 -------
gdb isn't crashing, a.out is.
GDB is correctly showing you where the segmentation fault is happening. You're
writing 0 to *p, which is the address of the first byte of "hello world\n", a
read only string. The operating system is trapping on that illegal memory
access, producing the SIGSEGV.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=9615
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.