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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Brian Kendig
日付:  
To: Adam D. Barratt
CC: Marc MERLIN, Exim-users, Philip Hazel
題目: 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