Bug #66934 [Opn->Fbk]: PHP compiled with Sun Studio dies with a SIGILL

From: Date: Mon, 23 Aug 2021 15:19:34 +0000
Subject: Bug #66934 [Opn->Fbk]: PHP compiled with Sun Studio dies with a SIGILL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236023@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 Updated by: cmb@php.net 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 +Status: Feedback Type: Bug Package: *Compile Issues Operating System: Solaris 10 SPARC PHP Version: 5.5.10 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: Is this still an issue with any of the actively supported PHP versions[1]? [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2014-06-14 17:16:18] urs dot traber at gmail dot com workaround is to build against an external PCRE library from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ e.g. 8.33 is fine for Tru64 4.0F 5.1B. The included tests don't produce any alignment errors. ------------------------------------------------------------------------ [2014-06-14 16:09:25] urs dot traber at gmail dot com 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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ 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

« previous php.bugs (#236023) next »