Problem with msgsnd

2000-10-25 Thread Marc Schneider
msgsnd seems to be corrupting memory around the msgbuf pointer. for example I have the following code: pMsgBuf = malloc(iPacketLen + 4 + 8); bzero(pMsgBuf, iPacketLen + 4 + 8); pMsgBuf += 4; /* Build a guard band */ printf("PMQ:pMsgBuf: %p\n",pMsgBuf); printf("PMQ:-4: %p\n", *(pMsgBuf-4)); rc

Re: Problem with msgsnd

2000-10-26 Thread Marc Schneider
[EMAIL PROTECTED] wrote: Marc Schneider wrote: msgsnd seems to be corrupting memory around the msgbuf pointer. for example I have the following code: pMsgBuf = malloc(iPacketLen + 4 + 8); bzero(pMsgBuf, iPacketLen + 4 + 8); pMsgBuf += 4; /* Build a guard band */ printf

Problem with msgsnd

2000-10-25 Thread Marc Schneider
msgsnd seems to be corrupting memory around the msgbuf pointer. for example I have the following code: pMsgBuf = malloc(iPacketLen + 4 + 8); bzero(pMsgBuf, iPacketLen + 4 + 8); pMsgBuf += 4; /* Build a guard band */ printf("PMQ:pMsgBuf: %p\n",pMsgBuf); printf("PMQ:-4: %p\n", *(pMsgBuf-4)); rc

Re: Problem with msgsnd

2000-10-26 Thread Marc Schneider
[EMAIL PROTECTED] wrote: > > Marc Schneider wrote: > > > > msgsnd seems to be corrupting memory around the msgbuf pointer. > > > > for example I have the following code: > > > > pMsgBuf = malloc(iPacketLen + 4 + 8); > > bzero(pMsgBuf, iPacketLen +