Open Bug 478688 Opened 15 years ago Updated 2 years ago

[Mac] nsStackWalk.cpp should output no function names (instead of incorrect function names)

Categories

(Core :: XPCOM, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: jruderman, Unassigned)

Details

Stacks from trace-refcnt and XPCOM_DEBUG_BREAK=stack have to be passed through fix-macosx-stack.pl to be useful to Mozilla developers, but to people who aren't Mozilla developers, they look OK.  This trips up almost everyone who tries to give us stacks (see bug 427657 and bug 459883 for examples).

Since the stack-walking code can't produce useful stacks without being really slow, I think the right fix is to make it not output any function names, and only output the library+offset information.  Or output "Use fix-macosx-stack.pl" in place of each function name ;)
Jesse, I wonder why this only happens on OS X. I've no deep background information why we fail but would be interested to know. Thankfully you already told me about the fix-macosx-stack.pl last Monday and I'm aware of. But why we only fail on OS X and not Linux/Windows? What is the other option when we will be too slow?
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.