Re: Crashing a lot when running with jprof

dolphinling <[email protected]> Wed, 27 Feb 2008 22:04:25 -0500
Newsgroups gmane.comp.mozilla.performance
Message-ID <[email protected]>
L. David Baron wrote:
> On Wednesday 2008-02-27 16:15 -0500, dolphinling wrote:
>> ...and gcc 4.1.2 on Gentoo.
> 
> i686 or x86_64?

i686

>> http://developer.mozilla.org/en/docs/Building_on_Fedora_Core_5 says to try
>> ac_add_options --enable-optimize="-O2 -fno-omit-frame-pointer"
>> I did, it didn't help.
> 
> It doesn't help if your system libraries are compiled with
> -fomit-frame-pointer, which I think is likely to be the case on
> x86_64.  (Although with gentoo maybe it's used everywhere.  Can you
> check?)

They are (not by default, but it's one of the most common settings, since it's 
mentioned in the handbook). I've run jprof successfully before though, a few 
months ago--or at least, without it crashing, though the output seemed wrong.

> 
> And the glibc backtrace() stack walking code didn't work across
> signal handlers, last I tried, so that wouldn't help here either.

This bit is over my head--is there something I can try contained in that sentence?


Mike Shaver wrote:
> What's the stack?  (For jprof to be useful you'll need debugger info,
> so you'll want to build with --enable-debugger-info-modules=yes
> anyway.)

Hmm, that's not mentioned on 
http://developer.mozilla.org/en/docs/Setting_up_jprof--it just says you'll need 
symbols. What would debugger info modules be needed for? If it's function names, 
I do get those in very short profile runs that I stop before firefox crashes.



-- 
dolphinling
<http://dolphinling.net/>