Bug #66934 [Com]: PHP compiled with Sun Studio dies with a SIGILL
| From: | urs dot traber at gmail dot com | Date: | Sat, 14 Jun 2014 16:09:26 +0000 |
| Subject: | Bug #66934 [Com]: PHP compiled with Sun Studio dies with a SIGILL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186192@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66934&edit=1
ID: 66934
Comment by: urs dot traber at gmail dot com
Reported by: eric dot w dot sprague dot ctr at navy dot mil
Summary: PHP compiled with Sun Studio dies with a SIGILL
Status: Open
Type: Bug
Package: *Compile Issues
Operating System: Solaris 10 SPARC
PHP Version: 5.5.10
Block user comment: N
Private report: N
New Comment:
checked with 5.5.12 on Tru64 4.0F and 5.1B:
line 3266:
if ((*set1++ & *set2++) != 0) return FALSE;
of the compare_opcodes function in pcre_compile.c also produces an "unaligned access".
Tru64 can deal with it and doesn't die though.
Previous Comments:
------------------------------------------------------------------------
[2014-05-29 19:25:54] eric dot w dot sprague dot ctr at navy dot mil
Problem can be worked around with Sun Studio by adding the -misalign CFLAG.
Looking for similar workaround for gcc.
------------------------------------------------------------------------
[2014-05-29 16:12:50] nekotenshi0 at gmail dot com
Related To: Bug #67261
------------------------------------------------------------------------
[2014-05-29 16:10:33] eric dot w dot sprague dot ctr at navy dot mil
Fault is due to PCRE bug #1427, misaligned memory access on SPARC. See: https://lists.exim.org/lurker/message/20131231.005837.c62b68a4.en.html
Working on a workaround now.
------------------------------------------------------------------------
[2014-03-19 18:16:12] eric dot w dot sprague dot ctr at navy dot mil
Typo - Problem does not occur with 5.5.8.
------------------------------------------------------------------------
[2014-03-19 16:10:24] eric dot w dot sprague dot ctr at navy dot mil
Amplifying information: PCRE 8.34 on its own compiles and 'make test' is successful.
(Using Sun Studio 12, -xO0 -xarch=generic -m32)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=66934
--
Edit this bug report at https://bugs.php.net/bug.php?id=66934&edit=1