Closed Bug 806209 Opened 13 years ago Closed 13 years ago

NS_StackWalk is not threadsafe

Categories

(Core :: Gecko Profiler, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19

People

(Reporter: neil, Assigned: ehsan.akhgari)

Details

Attachments

(1 file)

The Gecko Profiler tries to use NS_StackWalk to get a backtrace on the suspended main thread. Unfortunately if the thread is suspended in fprintf then when NS_StackWalk tries to fprintf then the application deadlocks.
Yeah, we should make NS_StackWalk not printf.
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #676218 - Flags: review?(bgirard)
Thanks ehsan. Land it!
Attachment #676218 - Flags: review?(bgirard) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: