This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/14546] DWARF unwinder can corrupt probe memory
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Wed, 05 Sep 2012 18:27:22 +0000
- Subject: [Bug runtime/14546] DWARF unwinder can corrupt probe memory
- Auto-submitted: auto-generated
- References: <bug-14546-6586@http.sourceware.org/bugzilla/>
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.