[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-qa
Subject:    Re: [PHP-QA] FreeBSD/Alpha Alignment Issues
From:       Matt White <mwhite () bunnynet ! org>
Date:       2002-10-28 18:25:27
[Download RAW message or body]

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> run

I 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




-- 
PHP Quality Assurance Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic