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
_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to