bin/124970: gdb crashes after setting hardware watchpoint

Victor Sudakov sudakov at sibptus.tomsk.ru
Wed Jun 25 02:50:03 UTC 2008


>Number:         124970
>Category:       bin
>Synopsis:       gdb crashes after setting hardware watchpoint
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 25 02:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Victor Sudakov
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
AO "Svyaztransneft", SibPTUS
>Environment:
System: FreeBSD 7.0-RELEASE i386


>Description:
  gdb dumps core after setting hardware watchpoint
>How-To-Repeat:

$ gdb ./test
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) l
1       #include <stdio.h>
2
3       int main(int argc, char **argv)
4       {
5         int x = 30;
6         int y = 10;
7
8         x = y;
9
10        return 0;
(gdb) break 6
Breakpoint 1 at 0x80484ef: file test.c, line 6.
(gdb) run
Starting program: /home/sav/test

Breakpoint 1, main (argc=1, argv=0xbfbfe6d4) at test.c:6
6         int y = 10;
(gdb) watch x
Hardware watchpoint 2: x
(gdb) c
Continuing.
Hardware watchpoint 2: x

Old value = 30
New value = 10
main (argc=1, argv=0xbfbfe6d4) at test.c:10
10        return 0;
(gdb) c
Continuing.
Segmentation fault (core dumped)
$

>Fix:

 none that I know of

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list