On Sun, 7 Nov 1999 [EMAIL PROTECTED] wrote:

> Hello,
> 
> i am experiencing weird problems with Folder::Maildir module and mod_perl 
> 1.21/Apache1.3.9 running on Redhat 6. Whenever i try to receive an attachment 
> larger than ~100K, apache process seg faults. I figured that problem is 
> not in Folder::Maildir since i can receive attachments of arbitrary sizes 
> by running a script from a command line or as a cgi script. I have pinpointed 
> the problem to the following line of code in Maildir.pm (line 459):
> 
> my $fh = new IO::File "$folder/tmp/$filename", O_CREAT|O_WRONLY, 0600
>       or croak "can't create $folder/tmp/$filename: $!";
> 
> 
> The apache segfaults on this line of code. I have checked everything.. variables 
> are initialized, permissions are correct, plenty of disk space.. i mean 
> the script runs fine as a cgi script..
... 
> i then retrieved the big attachment from a command line and sent myself 
> a smaller one. after running strace on http -X again i have figured out 
> that apache segfaults during the following system call:
> 
> fstat(5, {st_mode=S_ISGID|S_ISVTX|0604, st_size=0, ...}) = 0

I have a feeling that's just the last syscall before the core dump, not
what actually causes the core dump.  see the SUPPORT doc for getting a
stack trace with gdb.

Reply via email to