Jean-Louis Liagre
2008-Oct-27 01:34 UTC
[dtrace-discuss] copyout causing "invalid address" error.
A script I''m trying to write is failing with this message: dtrace: error on enabled probe ID 2 (ID 78888: syscall::bind:return): invalid address (0x80b4458) in action #2 at DIF offset 52 My understanding is that kind of invalid address message are caused by memory not yet faulted in but how to avoid this situation ? ----------------------------------------------------------- #!/usr/sbin/dtrace -Cs #include <sys/socket.h> #pragma D option destructive #pragma D option quiet syscall::bind:entry / execname == "sshd" / { self->sock=arg1; } syscall::bind:return / self->sock / { this->sa = (struct sockaddr_in *)copyin(self->sock, sizeof (struct sockaddr_in)); /* ... */ copyout(this->sa, self->sock, sizeof (struct sockaddr_in)); self->sock=0; } -- This message posted from opensolaris.org
Jean-Louis Liagre
2008-Nov-09 11:10 UTC
[dtrace-discuss] copyout causing "invalid address" error.
Sorry to bump my own posting. Can anyone help me avoiding that error ? -- This message posted from opensolaris.org
Akhilesh Mritunjai
2008-Nov-09 21:22 UTC
[dtrace-discuss] copyout causing "invalid address" error.
Just a guess... Aren''t you dtracing 32 bit binary on 64 bit system ? If so run dtrace accordingly. -- This message posted from opensolaris.org