compiler/linker options for best results with XPCOM_MEM_REFCNT_LOG?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

compiler/linker options for best results with XPCOM_MEM_REFCNT_LOG?

dave.puchyr
Hi,

I'm trying to debug a ref counting problem but am finding that the
combination of XPCOM_MEM_REFCNT_LOG, find-leakers.pl, and make-tree.pl
aren't giving me good info because the methods in my extension are
being listed as "UNKNOWN".  Are there compiler/linker settings I can
use to have the ref counting tools give me useful info?  I use vanilla
firefox-1.5 code and

GNU ld version 2.15.94.0.2.2 20041220
gcc version 4.0.2 20051125 (Red Hat 4.0.2-8).

A sample of a log file from one of my runs is below.  Some function
names are shown, but others are not.  (gdb does show function/method
names for the same executable.)  Any suggestions?

Dave

nsQueryInterface::operator()(nsID const&, void**) const+0x00000032
[./libxpcom_core.so +0x00027BFA]
...
UNKNOWN
[/home/dave/bld/gcc-402/debug/myextension/firefox-1.5/dynamic/dist/bin/components/libgklayout.so
+0x001077E3]
PL_HandleEvent+0x00000055 [./libxpcom_core.so +0x0009F31A]
PL_ProcessPendingEvents+0x000000D3 [./libxpcom_core.so +0x0009F1A6]
UNKNOWN [./libxpcom_core.so +0x000A22A9]
UNKNOWN
[/home/dave/bld/gcc-402/debug/myextension/firefox-1.5/dynamic/dist/bin/components/libwidget_gtk2.so
+0x00019984]
UNKNOWN [/usr/lib/libglib-2.0.so.0 +0x000494FC]
g_main_context_dispatch+0x000001DC [/usr/lib/libglib-2.0.so.0
+0x000234CE]
UNKNOWN [/usr/lib/libglib-2.0.so.0 +0x000264D6]
g_main_loop_run+0x000001A1 [/usr/lib/libglib-2.0.so.0 +0x000267C3]
gtk_main+0x000000B4 [/usr/lib/libgtk-x11-2.0.so.0 +0x00109A46]

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: compiler/linker options for best results with XPCOM_MEM_REFCNT_LOG?

Boris Zbarsky
[hidden email] wrote:
> I'm trying to debug a ref counting problem but am finding that the
> combination of XPCOM_MEM_REFCNT_LOG, find-leakers.pl, and make-tree.pl
> aren't giving me good info because the methods in my extension are
> being listed as "UNKNOWN".

You want to pipe your output through fix-linux-stack.pl.  That should probably
be documented.  Which document were you using to learn to use the leak debugging
stuff?  I'll add the info there.

-Boris
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: compiler/linker options for best results with XPCOM_MEM_REFCNT_LOG?

dave.puchyr
Thanks for the quick response!

I read http://www.mozilla.org/performance/refcnt-balancer.html re the
leak debugging.

Dave

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: compiler/linker options for best results with XPCOM_MEM_REFCNT_LOG?

dave.puchyr
In reply to this post by Boris Zbarsky
I can't find fix-linux-stack.pl in the source tree or with
http://lxr.mozilla.org/seamonkey/.  Where do I get it?

Dave

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|

Re: compiler/linker options for best results with XPCOM_MEM_REFCNT_LOG?

dave.puchyr
Ah ha, found it: http://lxr.mozilla.org/mozilla/source/tools/rb/.

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds