Re: FreeBSD/Alpha Alignment Issues
| From: | Matt White | Date: | Mon, 28 Oct 2002 18:25:27 +0000 |
| Subject: | Re: FreeBSD/Alpha Alignment Issues | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-6445@lists.php.net to get a copy of this message | ||
Melvyn Sopacua wrote:
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> runI don't get I'm actually getting any segfaults. Here's a sample run with one of the tests: (gdb) set args -f ext/standard/tests/strings/crc32.phpt (gdb) run Starting program: /usr/local/src/php-4.3.0pre2/sapi/cli/php -f ext/standard/tests/strings/crc32.phpt pid 22568 (php): unaligned access: va=0x12023ebbc pc=0x120191374 ra=0x120191368 op=stq pid 22568 (php): unaligned access: va=0x12023eadc pc=0x120191374 ra=0x120191368 op=stq --TEST-- crc32() function --POST-- --GET-- --FILE-- 2356372769 1996459178 2015626392 824412087 --EXPECT-- -1938594527 1996459178 2015626392 824412087 Program exited normally. (gdb)
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.Thanks, I knew there was a way to do this, but I couldn't remember what it was! Would it help if I made a PHP-QA account on this machine for someone to get in and test with? I didn't say it was a fast Alpha, just that it was one. :) - Matt