[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: Segmentation fault in Text::ParseWords
From: "Philippe M. Chiasson" <gozer () ectoplasm ! org>
Date: 2006-02-24 18:17:02
Message-ID: 43FF4D9E.1060902 () ectoplasm ! org
[Download RAW message or body]
Peter Mogensen wrote:
> Hi,
>
> When parsing long lines to Text::ParseWords under mod_perl I get a
> segmentation fault from Apache. (but not when I do the same from the
> command line).
>
> The segmentation fault appears with a line lenght above 17460;
>
> This is the code:
> ======================================
> use Text::ParseWords;
> sub handler : method {
> my $class = shift;
> my $r = shift;
>
> my $delim = ':';
> my $keep = 1;
> my $line = 'x' x 17461;
>
> my @words = &parse_line($delim, $keep, $line);
>
> ....
> ======================================
>
>
> Can anyone reproduce?
Tried with Perl-5.8.8/httpd-2.2.0-dev-prefork/mod_perl-dev and couldn't reproduce.
> (Yes... I know I shouldn't abuse Text::ParseWords like that ;-)
>
> The segfault happens in the regexp at line 54 in Text::ParseWords
> version 3.21
Any chance you can build with debugging symbols and post a backtrace of that
segfault ?
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic