Closed Bug 1050185 Opened 10 years ago Closed 10 years ago

Make ThreadStackHelper::FillThreadContext Valgrind-friendly

Categories

(Core :: XPCOM, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: jseward, Assigned: jseward)

Details

Attachments

(1 file)

ThreadStackHelper::FillThreadContext takes a snapshot of a thread's
stack, which may later get presented to Breakpad in the same process
for unwinding, at least as part of the hang detection/reporting
machinery.  Because the stack may contain uninitialised holes, this
causes Valgrind to complain later when Breakpad processes the stack.

A simple solution is to mark the copied data as initialised.  This
has no performance or functionality effects for production builds.
Attached patch FixSplinter Review
Attachment #8469169 - Flags: review?(nchen)
Comment on attachment 8469169 [details] [diff] [review]
Fix

Review of attachment 8469169 [details] [diff] [review]:
-----------------------------------------------------------------

Thank you!
Attachment #8469169 - Flags: review?(nchen) → review+
https://hg.mozilla.org/mozilla-central/rev/5f3d60e703ba
Assignee: nobody → jseward
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Flags: qe-verify-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: