Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jun 2008 08:45:46 +0700 (OMSST)
From:      Victor Sudakov <sudakov@sibptus.tomsk.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        sav@sibptus.tomsk.ru
Subject:   bin/124970: gdb crashes after setting hardware watchpoint
Message-ID:  <200806250145.m5P1jkxO089875@admin.sibptus.tomsk.ru>
Resent-Message-ID: <200806250250.m5P2o1rX020386@freefall.freebsd.org>

index | next in thread | raw e-mail


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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806250145.m5P1jkxO089875>