[Bug runtime/14546] DWARF unwinder can corrupt probe memory
mjw at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Sep 5 18:27:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=14546
--- Comment #4 from Mark Wielaard <mjw at redhat dot com> 2012-09-05 18:27:22 UTC ---
Testing the following:
diff --git a/runtime/unwind.c b/runtime/unwind.c
index ff36b2b..16ccef3 100644
--- a/runtime/unwind.c
+++ b/runtime/unwind.c
@@ -1272,8 +1272,8 @@ static int unwind_frame(struct unwind_context *context,
if (!processCFI(cieStart, cieEnd, 0, ptrType, user, state))
goto err;
- /* Store initial state for use with DW_CFA_restore... */
- memcpy(&state->cie_regs, ®_STATE, sizeof (REG_STATE));
+ /* Store initial state registers for use with DW_CFA_restore... */
+ memcpy(&state->cie_regs, ®_STATE.regs, sizeof (REG_STATE.regs));
/* Process Frame Description Entry (FDE) instructions. */
dbug_unwind (1, "processCFI for FDE\n");
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Systemtap
mailing list