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. -- BorgesThread Previous | Thread Next