Firefox/Projects/Startup Time Improvements/joelr notes: Difference between revisions

Line 14: Line 14:


My DTrace scripts live [http://github.com/wagerlabs/firefox-startup/tree/master here].
My DTrace scripts live [http://github.com/wagerlabs/firefox-startup/tree/master here].
Have you seen this kind of error before?
<pre>
dtrace: error on enabled probe ID 27 (ID 22130: pid34547:libSystem.B.dylib:dlopen:entry): invalid address (0x2ac204) in action #1 at DIF offset 28
dtrace: error on enabled probe ID 2 (ID 22782: pid34547:dyld:dlopen:entry): invalid address (0x2ac204) in action #1 at DIF offset 28
</pre>
More likely than not, you are using copyinstr on memory that hasn't been paged in yet. Try saving the pointer on entry and doing the copying on return or later.
109

edits