This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/21169] New: GDBServer on ARM can crash the inferior while single stepping
- From: "antoine.tremblay at ericsson dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 16 Feb 2017 00:11:18 +0000
- Subject: [Bug gdb/21169] New: GDBServer on ARM can crash the inferior while single stepping
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21169
Bug ID: 21169
Summary: GDBServer on ARM can crash the inferior while single
stepping
Product: gdb
Version: 8.0
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: antoine.tremblay at ericsson dot com
Target Milestone: ---
Single stepping on ARM with GDBServer can crash the inferior.
The inferior will cash with SIGILL or SIGSEGV.
This is due to the single stepping breakpoint insertion not being atomic in
certain situations like inserting a thumb2 breakpoint on a 2 byte aligned
address.
See this thread on the mailing list for more info:
https://sourceware.org/ml/gdb-patches/2017-01/msg00650.html
See also:
https://sourceware.org/ml/gdb-patches/2016-11/msg00230.html
This is a regression compared to previous GDB since before GDBServer did not do
the single stepping itself. GDB controlled the single-stepping and thus all
threads are stopped when modifying memory, this avoided this crash.
--
You are receiving this mail because:
You are on the CC list for the bug.