You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Sven Geisler <sg...@aeccom.com> on 2006/06/16 18:31:01 UTC
libapreq 1.3 and Segmentation fault after upload
Hi,
I'm using perl 5.8.8, apache 1.3.34, mod_perl 1.29 and libapreq 1.3.
I'm getting sometimes Segmentation faults after an upload. I can force
the segmentation faults when I use larger file name. I use
Apache::Upload object to access the files.
I tried with gdb to backtrace the cause, but I didn't get any idea.
It looks to me that the segmentation fault occurs during the clean up of
unsed variables.
The last function on the stack was always "free" from Perl.
I also see sometimes "free(): invalid pointer 0xea84790!" in the logs.
Does anyone have an idea?
Here my compiler flags
O3 -fno-strict-aliasing -pipe -g -mcpu=pentium4 -march=pentium4
-mfpmath=sse -msse2
I using gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47) on Red Hat
Enterprise Linux WS release 3 (Taroon Update 4).
Thanks
Sven.
Re: libapreq 1.3 and Segmentation fault after upload
Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Sven Geisler wrote:
> It is possible to backport character decoding to libapreq 1.x?
I think we're mostly in bugfix/security only mode at this point;
however, feel free to submit a patch for and one of us will see about
getting committed and released once approved.
--
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@p6m7g8.com) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F 6A47 D55A 7172 A799 97F
"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."
Re: libapreq 1.3 and Segmentation fault after upload
Posted by Sven Geisler <sg...@aeccom.com>.
Hi,
I solved the issue.
I had set character set to utf8 in the HTML form with a standard upload
and I got utf8.
I used the Apache::Upload to get the details about the upload, but
forgot to use Encode::decode('utf8', $u->name()).
It is possible to backport character decoding to libapreq 1.x?
Sven.
Sven Geisler schrieb:
> Hi,
>
> I'm using perl 5.8.8, apache 1.3.34, mod_perl 1.29 and libapreq 1.3.
> I'm getting sometimes Segmentation faults after an upload. I can force
> the segmentation faults when I use larger file name. I use
> Apache::Upload object to access the files.
> I tried with gdb to backtrace the cause, but I didn't get any idea.
> It looks to me that the segmentation fault occurs during the clean up of
> unsed variables.
> The last function on the stack was always "free" from Perl.
> I also see sometimes "free(): invalid pointer 0xea84790!" in the logs.
>
>
> Does anyone have an idea?
>
>
> Here my compiler flags
> O3 -fno-strict-aliasing -pipe -g -mcpu=pentium4 -march=pentium4
> -mfpmath=sse -msse2
> I using gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47) on Red Hat
> Enterprise Linux WS release 3 (Taroon Update 4).
>