Re: FreeBSD/Alpha Alignment Issues

From: Date: Mon, 28 Oct 2002 17:22:44 +0000
Subject: Re: FreeBSD/Alpha Alignment Issues
References: 1  Groups: php.qa 
Request: Send a blank email to php-qa+get-6437@lists.php.net to get a copy of this message
Hi Matt, At 16:33 28-10-2002, Matt White wrote:
When I run "make test", I have a bunch of errors like this: pid 15878 (php): unaligned access: va=0x120227204 pc=0x12017fcd4 ra=0x12017fcc8 op=stq pid 15878 (php): unaligned access: va=0x120227124 pc=0x12017fcd4 ra=0x12017fcc8 op=stq
[...]
===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- mb_strtoupper() / mb_strtolower() [ext/mbstring/tests/casefold.phpt] HTML input/output [ext/mbstring/tests/htmlent.phpt] mb_split() [ext/mbstring/tests/mb_split.phpt] serializing references test case using globals [ext/session/tests/019.phpt] Test array_merge and array_walk [ext/standard/tests/array/001.phpt] Test arsort, asort, krsort, ksort, rsort, and sort [ext/standard/tests/array/002.phpt] Test usort, uksort and uasort [ext/standard/tests/array/003.phpt] var_dump float test [ext/standard/tests/general_functions/008.phpt] Simple math tests [ext/standard/tests/math/abs.phpt] overflow check for _php_math_basetozval [ext/standard/tests/math/hexdec.phpt] Various pow() tests [ext/standard/tests/math/pow.phpt] Simple math tests [ext/standard/tests/math/round.phpt] crc32() function [ext/standard/tests/strings/crc32.phpt] ===================================================================== I'd say there are some 64-bit issues in the current test version.
I'd say you're right :) Could you compile with: CFLAGS='-O -pipe' \ ./configure \
        --enable-debug \
... If there are any segfaults, on those testcases, please run gdb as: gdb sapi/cli/php gdb> set args -f foo/bar/failedtest.php gdb> run It would help a great deal, if you're able to get some backtrace info.
Also: gcc reports that "-O2" produces buggy code on this platform. In order to build at all, I have to change "-O2" to "-O" in the Makefile after running configure. (This is no big deal, but it would be nice if the configure process did this for me.)
With the above CFLAGS setting, it's respected. If you set this in your environment via .profile or whichever is applicable for your shell (which is not a bad idea on this platform), it will always override the default of -O2. Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacua

« previous php.qa (#6437) next »