This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: gdb/278: error in step mode execution of programs in gdb
- From: drow at sources dot redhat dot com
- To: abhas at deeproot dot co dot in, gdb-prs at sources dot redhat dot com, nobody at sources dot redhat dot com, sirish at deeproot dot co dot in, sirishka at yahoo dot com
- Date: 9 Jul 2002 23:56:41 -0000
- Subject: Re: gdb/278: error in step mode execution of programs in gdb
- Reply-to: drow at sources dot redhat dot com, abhas at deeproot dot co dot in, gdb-prs at sources dot redhat dot com, nobody at sources dot redhat dot com, sirish at deeproot dot co dot in, sirishka at yahoo dot com, gdb-gnats at sources dot redhat dot com
Synopsis: error in step mode execution of programs in gdb
State-Changed-From-To: open->suspended
State-Changed-By: drow
State-Changed-When: Tue Jul 9 16:56:41 2002
State-Changed-Why:
Not GDB's fault. This appears to be a Linux kernel bug.
The problem occurs because the text segment (normally
read-only) and the constant string in .rodata are mapped
to the same page. When GDB inserts a software breakpoint
the kernel maps the page as read-write, and the kernel
never returns the page to read-only status.
Please report this to the kernel developers, either
through the linux-kernel list or via Mandrake.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=278