public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/17487] New: state->dr_control_mirror == 0 failed assertion in gdbserver  on Windows XP
@ 2014-10-15 14:23 brobecker at gnat dot com
  2014-10-15 14:29 ` [Bug server/17487] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: brobecker at gnat dot com @ 2014-10-15 14:23 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 17487
           Summary: state->dr_control_mirror == 0 failed assertion in
                    gdbserver  on Windows XP
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: brobecker at gnat dot com

When using GDBserver on Windows XP, GDBserver reports and assertion
failure after hitting a hardware watchpoint. The problem was reproduced
using the sources from gdb.ada/int_deref, but should probably reproduce
with any scenario involving hardware watchpoints.

In our scenario, we break on line 5, just before the increment, insert
a watchhpoint on it, and then continue:

    (gdb) b foo.adb:5
    Breakpoint 1 at 0x4017c2: file foo.adb, line 5.
    (gdb) cont
    Continuing.

    Breakpoint 1, foo () at foo.adb:5
    5          Pck.Watch := Pck.Watch + 1;
    (gdb) watch watch
    Hardware watchpoint 2: watch
    (gdb) c
    Continuing.
    Remote communication error.  Target disconnected.: Invalid argument.

The immediate cause for the communication error is easily explained,
gdbserver crashes due to a failed assertion:

    x86_remove_aligned_watchpoint: Assertion `state->dr_control_mirror == 0'
failed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-15 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-15 14:23 [Bug server/17487] New: state->dr_control_mirror == 0 failed assertion in gdbserver on Windows XP brobecker at gnat dot com
2014-10-15 14:29 ` [Bug server/17487] " cvs-commit at gcc dot gnu.org
2014-10-15 19:00 ` cvs-commit at gcc dot gnu.org
2014-10-15 20:00 ` brobecker at gnat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).