Re: [Exim] Re: [SA-exim] local_scan is crashing (log_write c…

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Brian Kendig
Data:  
Para: Adam D. Barratt
CC: Marc MERLIN, Exim-users, Philip Hazel
Assunto: Re: [Exim] Re: [SA-exim] local_scan is crashing (log_write crash)
On May 20, 2004, at 11:54 AM, Adam D. Barratt wrote:
> My immediate suspicion would be that you're corrupting the stack, hence
> reversing the arguments working (also only using one argument, and
> using
> constants).
>
> I don't have access to an OS X box to test, but the first thing I'd
> look at
> is what sizeof(off_t) and sizeof(int) are equal to in that
> environment. I'd
> put good money on them being different.


Bingo!

#include <unistd.h>
int main() {
printf("sizeof(int) == %d\n", sizeof(int));
printf("sizeof(off_t) == %d\n", sizeof(off_t));
return 0;
}

sizeof(int) == 4
sizeof(off_t) == 8