Ah, interesting. I'm using the v0.11.14-pre. The dtrace with your selection 
gave me the following output:

 
 

> dtrace: pid 8657 has exited
>
>
>>
>>               libsystem_kernel.dylib`__getpid
>
>               node`node::SetupProcessObject(node::Environment*, int, char 
>> const* const*, int, char const* const*)+0x4e0
>
>               0x101103d60
>
>                 1
>
>
But at the start it reports some errors:

> dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x697a696d6974704f) in action #2

dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x70656577533a3876) in action #2

dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x70656577533a3876) in action #2

dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x70656577533a3876) in action #2

dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x70656577533a3876) in action #2

dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x69666f72503a3876) in action #2

dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x742f73726573552f) in action #2

dtrace: error on enabled probe ID 1 (ID 106821: 
> pid8793:libsystem_kernel.dylib:__getpid:entry): invalid address 
> (0x5472656c706d6153) in action #2

 
I both tried with and without the --prof option with the same result of 
only 1 probe.

Does that bring you somehow closer? 

 

On Sunday, May 18, 2014 8:54:20 PM UTC+2, Ben Noordhuis wrote:
>
> On Fri, May 16, 2014 at 5:18 PM, Thomas Fankhauser 
> <[email protected]<javascript:>> 
> wrote: 
> > What does the _getpid mean? Is there a way to avoid the calls to pid? 
>
> Funny, one of my co-workers reported the same issue with node.js v0.11 
> last week but I wasn't able to reproduce it. 
>
> Can you try capturing stack traces with `sudo dtrace -n 
> 'pid$target:libsystem_kernel.dylib:__getpid:entry { @[ustack()] = 
> count() }' -c 'path/to/node script.js'`?  That will dump getpid() 
> callers, sorted by call count.  Note that the two underscores in 
> __getpid probe are intentional. 
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to