develooper Front page | perl.perl5.porters | Postings from May 2010

Re: 5.12: inplace sort <*> segfault (gcc 4.5.0 bug?)

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 11, 2010 02:37
Subject:
Re: 5.12: inplace sort <*> segfault (gcc 4.5.0 bug?)
Message ID:
AANLkTikvn5Fs7v74Cy4gR9Emh4QZK97m2zMnp1Lh28Fa@mail.gmail.com
On 11 May 2010 01:21, Alex Hunsaker <badalex@gmail.com> wrote:
> (Find at the bottom gcc, perl -V and uname output)
>
> While trying to get mod_perl 2 up and running on 5.12, running perl
> Makefile.PL resulted in segfaults.  It boiled down to some sorts
> Apache-Test/lib/Apache/TestHarness.pm.  Commenting those out
> everything was peachy.  Find below a simple test case:
>
> $  ./perl -Ilib/ -e 'sort glob("*")'
> Segmentation fault
>
> - or -
>
>  $ ./perl -Ilib/ -e 'sort <*>'
> Segmentation fault
[...]
> Hrm Ok seems like gcc decided oright can never be NULL and so took out
> those checks.  If I do an optimize='-g' no -O2 it seems to work.  Any
> ideas?

You could disable the optimisation by sticking op_ccflags="-O0" in
hints/linux.sh. Ideally this should be made conditional on the gcc
version. If that works could you provide a patch ?

-- 
They judge that metaphysics is a branch of fantastic literature.
    -- Borges

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About