[dtrace-discuss] Running DTrace Javascript provider on nevada
John Rice
John.Rice at Sun.COM
Tue Jan 9 07:51:05 PST 2007
Ok - Brendan well a few of us debugged this a bit more using pstack,
truss, dtruss and dbx. Firefox 2.0 appears to be hanging in js_GC, down
in the bowels after a call to JS_CompileScriptForPrincipals( ) for the
following script,
"file:///usr/lib/firefox/components/nsUrlClassifierLib.js".
I've attached the various debug traces for you and the script to have a
butchers at.
Any help much appreciated.
JR
John Rice wrote:
> Brendan - no joy :(
>
> Did exactly as you suggested below on nevada b53 using version 0.10 of
> helper monkey and still getting a hang:
>
> $ uname -a
> SunOS jmrlaptop 5.11 snv_53 i86pc i386 i86pc
>
> Without setting up the exports:
> $ /usr/lib/firefox/firefox-bin -UILocale C -contentLocale c -->
> Firefox 2.0 launches fine
>
> Setting up exports:
> $ cd~/helper-monkey-0.10/lib
> $ export LD_PRELOAD=/usr/lib/firefox/libmozz.so:./libmozjs.so
> $ export LD_LIBRARY_PATH=/usr/lib/mps:/usr/lib/firefox $ export
> MOZ_PLUGIN_PATH=/usr/lib/firefox/plugins
> $ /usr/lib/firefox/firefox-bin -UILocale C -contentLocale c -->
> Firefox 2.0 hangs
>
> Any ideas?
>
> JR
>
>
> Brendan Gregg - Sun Microsystems wrote:
>> G'Day John,
>>
>> On Mon, Jan 08, 2007 at 05:02:21PM +0000, John Rice wrote:
>>
>>> Brendan - I'd like to try these out:
>>>
>>> http://blogs.sun.com/brendan/entry/dtrace_meets_javascript
>>> http://blogs.sun.com/brendan/resource/helper-monkey-0.10.tar.gz
>>>
>>> I'm running nevada b53 at the minute with Firefox 2.0 installed by
>>> default. So I grabbed an old tarball of Firefox 1.5.0.4, unpacked it
>>> and was able to bring up firefox-bin 1.5.0.4.
>>> http://releases.mozilla.org/pub/mozilla.org/firefox/releases/1.5.0.4/contrib/solaris_tar_ball/firefox-1.5.0.4.en-US.solaris2.10-i386.tar.bz2
>>>
>>>
>>> I then setup the LD_PRELOAD and LD_LIBRARY_PATH to point to this
>>> unpacked tarball dir and fired up firefox-bin. I could then run
>>> dtrace -l javascript*:::* and list out the probes, but firefox
>>> failed to display.
>>>
>>
>> Hmm, I tried the same and also had firefox-bin hang on startup -- and
>> yet
>> running the system shipped build of firefox 1.5.0.4 worked fine. I
>> thought it may have been a path issue, but I haven't yet found the fix.
>>
>> However, if you are on b53 then you may have firefox 2.0, which I just
>> ran with that version of HelperMonkey. So far it seems to be working
>> fine.
>> I used the following while in the directory with libmozjs.so:
>>
>> $ export LD_PRELOAD=/usr/lib/firefox/libmozz.so:./libmozjs.so
>> $ export LD_LIBRARY_PATH=/usr/lib/mps:/usr/lib/firefox $
>> export MOZ_PLUGIN_PATH=/usr/lib/firefox/plugins
>> $ /usr/lib/firefox/firefox-bin -UILocale C -contentLocale c
>>
>> Hopefully that will be happier.
>>
>> I suspect firefox 1.5.0.4 was hanging while trying to do the auto
>> update,
>> so another workaround may be to skip that (somehow)...
>>
>> cheers,
>>
>> Brendan
>>
>>
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
-------------- next part --------------
Javascript Dtrace probes testing on nevada b53 with Firefox 2.0
Jan 9th 2007
--------------
Setup:
http://blogs.sun.com/brendan/resource/helper-monkey-0.10.tar.gz
$ cd ~/Documents/dtest/helper-monkey-0.10/lib
$ export LD_PRELOAD=/usr/lib/firefox/libmozz.so:\
/export/home/jr140578/Documents/dtest/helper-monkey-0.10/lib/libmozjs.so
$ export LD_LIBRARY_PATH=/usr/lib/mps:/usr/lib/firefox
$ export MOZ_PLUGIN_PATH=/usr/lib/firefox/plugins
Running:
$ /usr/lib/firefox/firefox-bin -UILocale C -contentLocale c
===============================
Firefox essentially hung at this point but can list javascript dtrace probes:
# dtrace -ln javascript*:::*
ID PROVIDER MODULE FUNCTION NAME
53946 javascript2097 libmozjs.so jsdtrace_execute_done execute-done
53947 javascript2097 libmozjs.so js_Execute execute-done
53948 javascript2097 libmozjs.so jsdtrace_execute_start execute-start
53949 javascript2097 libmozjs.so js_Execute execute-start
53950 javascript2097 libmozjs.so jsdtrace_function_entry function-entry
53951 javascript2097 libmozjs.so js_Interpret function-entry
53952 javascript2097 libmozjs.so jsdtrace_function_return function-return
53953 javascript2097 libmozjs.so js_Interpret function-return
53954 javascript2097 libmozjs.so jsdtrace_object_create object-create
53955 javascript2097 libmozjs.so js_NewObject object-create
53956 javascript2097 libmozjs.so jsdtrace_object_create_done object-create-done
53957 javascript2097 libmozjs.so js_NewObject object-create-done
53958 javascript2097 libmozjs.so jsdtrace_object_create_start object-create-start
53959 javascript2097 libmozjs.so js_NewObject object-create-start
53960 javascript2097 libmozjs.so jsdtrace_object_finalize object-finalize
53961 javascript2097 libmozjs.so js_FinalizeObject object-finalize
# pstack 1780 | c++filt
1780: /usr/lib/firefox/firefox-bin -safe-mode -UILocale C -contentLocale
----------------- lwp# 1 / thread# 1 --------------------
c005209c js_GC (81264f0, 5) + 8e4
c00509ad js_NewGCThing (81264f0, 1, 8) + 151
c009af70 js_NewString (81264f0, 82d0568, c, 0) + 44
c009b477 js_NewStringCopyN (81264f0, 844c718, c, 0) + 5b
c0031106 js_AtomizeString (81264f0, 8045e28, 80) + d6
c0031302 js_AtomizeChars (81264f0, 844c718, c, 0) + 46
c0091120 js_GetToken (81264f0, 844c418) + 20e4
c007fe74 Variables (81264f0, 844c418, 80464ec) + 264
c007e4f5 Statement (81264f0, 844c418, 80464ec) + 32d
c007dc44 Statements (81264f0, 844c418, 80464ec) + 94
c007d0eb FunctionBody (81264f0, 844c418, 8414600, 80464ec) + cb
c007d937 FunctionDef (81264f0, 844c418, 8046d9c, 1) + 60f
c007dbaa FunctionExpr (81264f0, 844c418, 8046d9c) + 16
c00834ad PrimaryExpr (81264f0, 844c418, 8046d9c) + 901
c0081463 MemberExpr (81264f0, 844c418, 8046d9c, 1) + 53
c0081250 UnaryExpr (81264f0, 844c418, 8046d9c) + 1bc
c0080dec MulExpr (81264f0, 844c418, 8046d9c) + 2c
c0080d18 AddExpr (81264f0, 844c418, 8046d9c) + 2c
c0080c80 ShiftExpr (81264f0, 844c418, 8046d9c) + 2c
c0080b6c RelExpr (81264f0, 844c418, 8046d9c) + 3c
c0080ac4 EqExpr (81264f0, 844c418, 8046d9c) + 2c
c0080a37 BitAndExpr (81264f0, 844c418, 8046d9c) + 2f
c00809a7 BitXorExpr (81264f0, 844c418, 8046d9c) + 2f
c0080917 BitOrExpr (81264f0, 844c418, 8046d9c) + 2f
c008089f AndExpr (81264f0, 844c418, 8046d9c) + 2f
c0080827 OrExpr (81264f0, 844c418, 8046d9c) + 2f
c0080710 CondExpr (81264f0, 844c418, 8046d9c) + 2c
c008059f AssignExpr (81264f0, 844c418, 8046d9c) + 37
c0083278 PrimaryExpr (81264f0, 844c418, 8046d9c) + 6cc
c0081463 MemberExpr (81264f0, 844c418, 8046d9c, 1) + 53
c0081250 UnaryExpr (81264f0, 844c418, 8046d9c) + 1bc
c0080dec MulExpr (81264f0, 844c418, 8046d9c) + 2c
c0080d18 AddExpr (81264f0, 844c418, 8046d9c) + 2c
c0080c80 ShiftExpr (81264f0, 844c418, 8046d9c) + 2c
c0080b6c RelExpr (81264f0, 844c418, 8046d9c) + 3c
c0080ac4 EqExpr (81264f0, 844c418, 8046d9c) + 2c
c0080a37 BitAndExpr (81264f0, 844c418, 8046d9c) + 2f
c00809a7 BitXorExpr (81264f0, 844c418, 8046d9c) + 2f
c0080917 BitOrExpr (81264f0, 844c418, 8046d9c) + 2f
c008089f AndExpr (81264f0, 844c418, 8046d9c) + 2f
c0080827 OrExpr (81264f0, 844c418, 8046d9c) + 2f
c0080710 CondExpr (81264f0, 844c418, 8046d9c) + 2c
c008059f AssignExpr (81264f0, 844c418, 8046d9c) + 37
c0080681 AssignExpr (81264f0, 844c418, 8046d9c) + 119
c00804bf Expr (81264f0, 844c418, 8046d9c) + 2f
c007f413 Statement (81264f0, 844c418, 8046d9c) + 124b
c007dc44 Statements (81264f0, 844c418, 8046d9c) + 94
c007cc71 js_CompileTokenStream (81264f0, 8265488, 844c418, 8046d9c) + 131
c002a4c1 CompileTokenStream (81264f0, 8265488, 844c418, 8126538, 0) + 95
c002a6c7 JS_CompileUCScriptForPrincipals (81264f0, 8265488, 812c2ec, 84606c8, 2113f, 8046fd0) + 47
c002a62b JS_CompileScriptForPrincipals (81264f0, 8265488, 812c2ec, c883c000, 2113f, 8046fd0) + 4b
c8be2d4c unsigned mozJSComponentLoader::GlobalForLocation(const char*,nsIFile*,JSObject**) (80d2b18, 845ec58, 845cbe0, 8047178) + 1794
c8be054d nsIModule*mozJSComponentLoader::ModuleForLocation(const char*,nsIFile*,unsigned*) (80d2b18, 845ec58, 845cbe0, 8047380) + 405
c8bdf7b0 unsigned mozJSComponentLoader::AttemptRegistration(nsIFile*,int) (80d2b18, 845cbe0, 0) + 148
c8bdf4d4 unsigned mozJSComponentLoader::AutoRegisterComponent(int,nsIFile*,int*) (80d2b18, 0, 845cbe0, 804747c) + 114
c8bdf092 unsigned mozJSComponentLoader::AutoRegisterComponents(int,nsIFile*) (80d2b18, 0, 80cac38) + 10e
ce0b02c1 unsigned nsComponentManagerImpl::AutoRegisterNonNativeComponents(nsIFile*) (80ca018, 80cac38) + d9
ce0b004c unsigned nsComponentManagerImpl::AutoRegisterImpl(int,nsIFile*,int) (80ca018, 0, 0, 1) + 370
ce0b09a0 unsigned nsComponentManagerImpl::AutoRegister(nsIFile*) (80ca018, 0) + 68
ce05f7c9 NS_InitXPCOM3_P (80478ec, 80a9540, 80476c4, 8087458, 1) + 45d
0805ab3a unsigned ScopedXPCOMStartup::Initialize() (80478ec) + 3e
080606ee XRE_main (5, 80479b0, 8087408) + 159a
0805a521 main (5, 80479b0, 80479c8) + 25
0805a46e _start (5, 8047aa8, 8047ad0, 8047ada, 8047adc, 0) + 7a
----------------- lwp# 2 / thread# 2 --------------------
ce588855 pollsys (c8a89c70, 1, 0, 0)
ce53f722 poll (c8a89c70, 1, ffffffff) + 52
ce4669f5 _pr_poll_with_poll (81465a8, 1, ffffffff, c8a89ef4, c9ab185e, 81465a8) + 395
ce466bc0 PR_Poll (81465a8, 1, ffffffff) + 14
c9ab185e int nsSocketTransportService::Poll(unsigned*) (81460c0, c8a89f74) + 11e
c9ab23fc unsigned nsSocketTransportService::Run() (81460c0) + 68c
ce0bab14 void nsThread::Main(void*) (813e588) + 74
ce4683b4 _pt_root (8146858) + d0
ce587564 _thr_setup (ce422400) + 52
ce5877c0 _lwp_start (ce422400, 0, 0, 0, 0, 0)
----------------- lwp# 3 / thread# 3 --------------------
ce587819 lwp_park (0, c897ee58, 0)
ce581a32 cond_wait_queue (80c5c44, 80c8df0, c897ee58, 0) + 3e
ce581dc7 cond_wait_common (80c5c44, 80c8df0, c897ee58) + 1e1
ce581fec _cond_timedwait (80c5c44, 80c8df0, c897eed8) + 4a
ce58207b cond_timedwait (80c5c44, 80c8df0, c897eed8) + 27
ce5820b8 pthread_cond_timedwait (80c5c44, 80c8df0, c897eed8) + 21
ce461b0d PR_WaitCondVar (80c5c40, 7a11e) + 1f9
ce0bdd8b unsigned TimerThread::Run() (80c8ac8) + eb
ce0bab14 void nsThread::Main(void*) (815d600) + 74
ce4683b4 _pt_root (8167658) + d0
ce587564 _thr_setup (c8860000) + 52
ce5877c0 _lwp_start (c8860000, 0, 0, 0, 0, 0)
#
======================================================
# truss -p 1780
/2: Received signal #20, SIGWINCH, in pollsys() [default]
/3: lwp_park(0xC897EE58, 0) Err#62 ETIME
/1: Received signal #11, SIGSEGV [caught]
/1: siginfo: SIGSEGV SEGV_MAPERR addr=0x83EC8B59
/1: lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
/1: unlink("/export/home/jr140578/.mozilla/firefox/djmpbyit.default/lock") = 0
/1: sigaction(SIGSEGV, 0x08045950, 0x00000000) = 0
/1: lwp_sigmask(SIG_SETMASK, 0xFFBFFAFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
/1: lwp_kill(1, SIGSEGV) = 0
/1: Received signal #11, SIGSEGV [default]
/1: siginfo: SIGSEGV pid=1780 uid=0 code=-1
#
*** NOTE *** CORE only generated after executing above Truss call on hung process
======================================================
# /usr/lib/firefox/firefox-bin -safe-mode -UILocale C -contentLocale
Segmentation Fault (core dumped)
# dbx /usr/lib/firefox/firefox-bin core
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.5' in your .dbxrc
Reading firefox-bin
core file header read successfully
Reading ld.so.1
Reading libmozz.so
Reading libmozjs.so
Reading libCrun.so.1
Reading libCstd.so.1
Reading libc.so.1
Reading libplds4.so
Reading libplc4.so
Reading libnspr4.so
Reading libpthread.so.1
Reading libdl.so.1
Reading librt.so.1
Reading libsocket.so.1
Reading libm.so.2
Reading libdtrace.so.1
Reading libthread.so.1
Reading libnsl.so.1
Reading libgen.so.1
Reading libproc.so.1
Reading librtld_db.so.1
Reading libctf.so.1
Reading libelf.so.1
Reading libxpcom_core.so
Reading libdemangle.so.1
Reading libmozjs.so
Reading libgtk-x11-2.0.so.0.1000.6
Reading libgdk-x11-2.0.so.0.1000.6
Reading libglib-2.0.so.0.1200.4
Reading libgobject-2.0.so.0.1200.4
Reading libmlib.so.2
Reading libmlib_sse2.so.2
Reading libcairo.so.2.9.2
Reading libX11.so.4
Reading libmp.so.2
Reading libmd.so.1
Reading libscf.so.1
Reading libuutil.so.1
Reading libgdk_pixbuf-2.0.so.0.1000.6
Reading libgmodule-2.0.so.0.1200.4
Reading libatk-1.0.so.0.1213.0
Reading libpango-1.0.so.0.1400.7
Reading libpangocairo-1.0.so.0.1400.7
Reading libXrandr.so.2
Reading libXrender.so.1
Reading libXi.so.5
Reading libXext.so.0
Reading libfontconfig.so.1
Reading libfreetype.so.6
Reading libpng12.so.0.1.2.8
Reading libz.so.1
Reading libXau.so.6
Reading libpangoft2-1.0.so.0.1400.7
Reading libexpat.so.0.5.0
Reading UTF-8%8859-1.so
Reading 646%UTF-16LE.so
Reading UTF-16LE%646.so
Reading libaccessibility.so
Reading libgkgfx.so
Reading libappcomps.so
Reading libauth.so
Reading libautoconfig.so
Reading libbrowsercomps.so
Reading libbrowserdirprovider.so
Reading libcaps.so
Reading libchrome.so
Reading libgfxps.so
Reading libgfxpsshar.so
Reading libcommandlines.so
Reading libcomposer.so
Reading libcookie.so
Reading libdocshell.so
Reading libeditor.so
Reading libembedcomponents.so
Reading libfileview.so
Reading libgfx_gtk.so
Reading libgklayout.so
Reading libgkplugin.so
Reading libhtmlpars.so
Reading libi18n.so
Reading libimgicon.so
Reading libimglib2.so
Reading libjar50.so
Reading libjsd.so
Reading libmork.so
Reading libmozfind.so
Reading libmozgnome.so
Reading libmyspell.so
Reading libnecko.so
Reading libnecko2.so
Reading libnkgnomevfs.so
Reading libgnomevfs-2.so.0.1600.2
Reading libxml2.so.2
Reading libresolv.so.2
Reading libnsappshell.so
Reading liboji.so
Reading libpermissions.so
Reading libpipboot.so
Reading libpipnss.so
Reading libssl3.so
Reading libnss3.so
Reading libsoftokn3.so
Reading libbsm.so.1
Reading libsecdb.so.1
Reading libpippki.so
Reading libpref.so
Reading librdf.so
Reading libremoteservice.so
Reading libsearchservice.so
Reading libspellchecker.so
Reading libstoragecomps.so
Reading libsystem-pref.so
Reading libtoolkitcomps.so
Reading libtransformiix.so
Reading libtxmgr.so
Reading libuconv.so
Reading libucvmath.so
Reading libuniversalchardet.so
Reading libwebbrwsr.so
Reading libwebsrvcs.so
Reading libwidget_gtk2.so
Reading libxmlextras.so
Reading libxpcom_compat_c.so
Reading libxpcom_compat.so
Reading libxpconnect.so
Reading libxpinstall.so
t at null (l at 1) terminated by signal SEGV (Segmentation Fault)
0xce588dc5: __lwp_kill+0x0015: jae __lwp_kill+0x23 [ 0xce588dd3, .+0xe ]
(dbx) where
=>[1] __lwp_kill(0x1, 0xb), at 0xce588dc5
[2] _thr_kill(0x1, 0xb), at 0xce58597e
[3] raise(0xb), at 0xce542072
[4] nsProfileLock::FatalSignalHandler(0xb, 0x0, 0x8045a64), at 0x806bc86
[5] __sighndlr(0xb, 0x0, 0x8045a64, 0x806bba0), at 0xce5878bf
---- called from signal handler with signal 11 (SIGSEGV) ------
[6] js_GC(0x81264f0, 0x5), at 0xc005209c
[7] js_NewGCThing(0x81264f0, 0x1, 0x8), at 0xc00509ad
[8] js_NewString(0x81264f0, 0x82d0568, 0xc, 0x0), at 0xc009af70
[9] js_NewStringCopyN(0x81264f0, 0x844c718, 0xc, 0x0), at 0xc009b477
[10] js_AtomizeString(0x81264f0, 0x8045e28, 0x80), at 0xc0031106
[11] js_AtomizeChars(0x81264f0, 0x844c718, 0xc, 0x0), at 0xc0031302
[12] js_GetToken(0x81264f0, 0x844c418), at 0xc0091120
[13] Variables(0x81264f0, 0x844c418, 0x80464ec), at 0xc007fe74
[14] Statement(0x81264f0, 0x844c418, 0x80464ec), at 0xc007e4f5
[15] Statements(0x81264f0, 0x844c418, 0x80464ec), at 0xc007dc44
[16] FunctionBody(0x81264f0, 0x844c418, 0x8414600, 0x80464ec), at 0xc007d0eb
[17] FunctionDef(0x81264f0, 0x844c418, 0x8046d9c, 0x1), at 0xc007d937
[18] FunctionExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc007dbaa
[19] PrimaryExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc00834ad
[20] MemberExpr(0x81264f0, 0x844c418, 0x8046d9c, 0x1), at 0xc0081463
[21] UnaryExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0081250
[22] MulExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080dec
[23] AddExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080d18
[24] ShiftExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080c80
[25] RelExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080b6c
[26] EqExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080ac4
[27] BitAndExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080a37
[28] BitXorExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc00809a7
[29] BitOrExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080917
[30] AndExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc008089f
[31] OrExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080827
[32] CondExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080710
[33] AssignExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc008059f
[34] PrimaryExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0083278
[35] MemberExpr(0x81264f0, 0x844c418, 0x8046d9c, 0x1), at 0xc0081463
[36] UnaryExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0081250
[37] MulExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080dec
[38] AddExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080d18
[39] ShiftExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080c80
[40] RelExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080b6c
[41] EqExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080ac4
[42] BitAndExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080a37
[43] BitXorExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc00809a7
[44] BitOrExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080917
[45] AndExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc008089f
[46] OrExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080827
[47] CondExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080710
[48] AssignExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc008059f
[49] AssignExpr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc0080681
[50] Expr(0x81264f0, 0x844c418, 0x8046d9c), at 0xc00804bf
[51] Statement(0x81264f0, 0x844c418, 0x8046d9c), at 0xc007f413
[52] Statements(0x81264f0, 0x844c418, 0x8046d9c), at 0xc007dc44
[53] js_CompileTokenStream(0x81264f0, 0x8265488, 0x844c418, 0x8046d9c), at 0xc007cc71
[54] CompileTokenStream(0x81264f0, 0x8265488, 0x844c418, 0x8126538, 0x0), at 0xc002a4c1
[55] JS_CompileUCScriptForPrincipals(0x81264f0, 0x8265488, 0x812c2ec, 0x84606c8, 0x2113f, 0x8046fd0, 0x0), at 0xc002a6c7
[56] JS_CompileScriptForPrincipals(0x81264f0, 0x8265488, 0x812c2ec, 0xc883c000, 0x2113f, 0x8046fd0, 0x0), at 0xc002a62b
[57] mozJSComponentLoader::GlobalForLocation(0x80d2b18, 0x845ec58, 0x845cbe0, 0x8047178), at 0xc8be2d4c
[58] mozJSComponentLoader::ModuleForLocation(0x80d2b18, 0x845ec58, 0x845cbe0, 0x8047380), at 0xc8be054d
[59] mozJSComponentLoader::AttemptRegistration(0x80d2b18, 0x845cbe0, 0x0), at 0xc8bdf7b0
[60] mozJSComponentLoader::AutoRegisterComponent(0x80d2b18, 0x0, 0x845cbe0, 0x804747c), at 0xc8bdf4d4
[61] mozJSComponentLoader::AutoRegisterComponents(0x80d2b18, 0x0, 0x80cac38), at 0xc8bdf092
[62] nsComponentManagerImpl::AutoRegisterNonNativeComponents(0x80ca018, 0x80cac38), at 0xce0b02c1
[63] nsComponentManagerImpl::AutoRegisterImpl(0x80ca018, 0x0, 0x0, 0x1), at 0xce0b004c
[64] nsComponentManagerImpl::AutoRegister(0x80ca018, 0x0), at 0xce0b09a0
[65] NS_InitXPCOM3_P(0x80478ec, 0x80a9540, 0x80476c4, 0x8087458, 0x1), at 0xce05f7c9
[66] ScopedXPCOMStartup::Initialize(0x80478ec), at 0x805ab3a
[67] XRE_main(0x5, 0x80479b0, 0x8087408), at 0x80606ee
[68] main(0x5, 0x80479b0, 0x80479c8), at 0x805a521
(dbx) print (char *) 0x844c718
dbx: warning: unknown language, 'c' assumed
(char *) 0x844c718 = 0x844c718 "a"
(dbx) print (char *) 0x8046fd0
(char *) 0x8046fd0 = 0x8046fd0 "file:///usr/lib/firefox/components/nsUrlClassifierLib.js"
(dbx)
NOTE: JS_CompileScriptForPrincipals( File name of javascript to compile -> arg6 )
===============================================
DTRUSS
========
Opens nsUrlClassifierLib.js and hangs at or after brk call
# ~/DTraceToolkit-0.96/dtruss /usr/lib/firefox/firefox-bin -safe-mode -UILocale C -contentLocale
stat64("/usr/lib/firefox/components/nsSetDefaultBrowser.js\0", 0x8047080, 0x61D9) = 0 0
xstat(0x2, 0x83AA948, 0x83D2868) = 0 0
stat64("/usr/lib/firefox/components/nsSidebar.js\0", 0x8047070, 0x61DD) = 0 0
lwp_park(0x1, 0x3, 0x80C5C44) = 0 0
lwp_park(0x0, 0xC8978E58, 0x0) = 0 0
lwp_park(0x0, 0xC8978E58, 0x0) = 0 0
lwp_park(0x0, 0xC8978E58, 0x0) = 0 0
brk(0x8456660) = 0 0
brk(0x8458660) = 0 0
brk(0x8458660) = 0 0
brk(0x845A660) = 0 0
brk(0x845A660) = 0 0
brk(0x845C660) = 0 0
brk(0x845C660) = 0 0
brk(0x845E660) = 0 0
brk(0x845E660) = 0 0
brk(0x8460660) = 0 0
brk(0x8460660) = 0 0
brk(0x8462660) = 0 0
munmap(0xC8846000, 0x17F36) = 0 0
close(0xB) = 0 0
stat64("/usr/lib/firefox/components/nsUpdateService.js\0", 0x8047080, 0x6227) = 0 0
xstat(0x2, 0x838C9F0, 0x845CA58) = 0 0
stat64("/usr/lib/firefox/components/nsUrlClassifierLib.js\0", 0x8047070, 0x622B) = 0 0
lwp_park(0x1, 0x3, 0x80C5C44) = 0 0
lwp_park(0x0, 0xC8978E58, 0x0) = 0 0
yield(0x3F, 0x0, 0x622F) = 0 0
xstat(0x2, 0x8147E70, 0x8147D10) = -1 Err#2
lxstat(0x2, 0x8147E70, 0x8147D10) = -1 Err#2
open64("/usr/lib/firefox/components/nsUrlClassifierLib.js\0", 0x0, 0x0) = 11 0
fstat64(0xB, 0x8046CB0, 0x6239) = 0 0
fxstat(0x2, 0xB, 0x8046DD8) = 0 0
mmap(0x0, 0x2113F, 0x1) = -930889728 0
brk(0x8462660) = 0 0
brk(0x84A4660) = 0 0
-------------- next part --------------
The original attachment - nsUrlClassifierLib.js - has been removed from this
message, as it is a type of file which has recently been used
to carry viruses and other malicious software.
The following extensions are no longer supported as valid
email attachments and will be removed since they are primarily
used to carry viruses and other malicious software:
asp bas bat chm cmd com exe hlp hta inf isp js jse lnk msi mst
pcd pif reg scr url vbe vbs ws wsh sun.com.zip
More information about the dtrace-discuss
mailing list