public inbox for gdb-testers@sourceware.org
help / color / mirror / Atom feed
* Test results for commit b052c4fbf5e64a2e96452642adf433f60b185245 on branch master
@ 2015-02-11  0:57 sergiodj
  2015-02-11  0:58 ` Failures on Fedora-ppc64le-native-extended-gdbserver-m64, " sergiodj
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: sergiodj @ 2015-02-11  0:57 UTC (permalink / raw)
  To: gdb-testers

*** TEST RESULTS FOR COMMIT b052c4fbf5e64a2e96452642adf433f60b185245 ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: b052c4fbf5e64a2e96452642adf433f60b185245

displaced_step_fixup may access memory from the wrong inferior/thread
displaced_step_fixup takes an thread to work with, as argument.  OTOH,
gdbarch_displaced_step_fixup fixes up the current thread.  The former
calls the latter without making sure the current thread is the one
that was passed in.  If it is not, then gdbarch_displaced_step_fixup
may e.g., try reading from a running thread, which doesn't work on
some targets, or worse, read memory from the wrong inferior and
succeed.

This is mostly a latent problem currently, as non-stop switches the
current thread to the event thread early in fetch_inferior_event.

Tested on x86_64 Fedora 20.

gdb/
2015-02-10  Pedro Alves  <palves@redhat.com>

	* infrun.c (displaced_step_fixup): Switch to the event thread
	before calling gdbarch_displaced_step_fixup.


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

end of thread, other threads:[~2015-02-11 20:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-11  0:57 Test results for commit b052c4fbf5e64a2e96452642adf433f60b185245 on branch master sergiodj
2015-02-11  0:58 ` Failures on Fedora-ppc64le-native-extended-gdbserver-m64, " sergiodj
2015-02-11  1:00 ` Failures on Fedora-ppc64le-cc-with-index, " sergiodj
2015-02-11  1:02 ` Failures on Fedora-ppc64le-native-gdbserver-m64, " sergiodj
2015-02-11  1:07 ` Failures on Fedora-ppc64le-m64, " sergiodj
2015-02-11  6:18 ` Failures on Fedora-x86_64-m32, " sergiodj
2015-02-11  6:24 ` Failures on Fedora-ppc64be-cc-with-index, " sergiodj
2015-02-11  6:28 ` Failures on Fedora-x86_64-native-extended-gdbserver-m32, " sergiodj
2015-02-11  7:16 ` Failures on Fedora-ppc64be-native-extended-gdbserver-m64, " sergiodj
2015-02-11 18:31 ` Failures on Debian-i686-cc-with-index, " sergiodj
2015-02-11 21:05 ` Failures on Debian-x86_64-native-gdbserver-m64, " sergiodj

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).