Bug #73880 [Opn->Nab]: bus error while generating phar.phar

From: Date: Wed, 03 Feb 2021 15:48:15 +0000
Subject: Bug #73880 [Opn->Nab]: bus error while generating phar.phar
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231920@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73880&edit=1

 ID:                 73880
 Updated by:         cmb@php.net
 Reported by:        joern dot clausen at uni-bielefeld dot de
 Summary:            bus error while generating phar.phar
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Solaris 11.2/sparc
 PHP Version:        7.1.0
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

As of PHP 7.3.0, PCRE2 is required.  I'm not sure whether similar
issues exist there regarding Solaris, but this would obviously be
an upstream issue.


Previous Comments:
------------------------------------------------------------------------
[2018-01-29 10:39:11] ivan dot prikhodko at pixelpark dot com

My current workaround consists of:
 $ cd ext/pcre
 $ wget https://netix.dl.sourceforge.net/project/pcre/pcre/8.40/pcre-8.40.tar.gz
 edit upgrade-pcre.php replacing 'tar' command with 'gtar'
 running $ php upgrade-pcre.php

Afterwards building with gmake finishes successfully 

I would also suggest reviewing Makefile after running ./configure script
Since Solaris supports 32/64 bit simultaneously, sometimes you see Paths to 32-bit shared libraries
while compiling 64 bit php

Here is my patch Script for compiling on T5 Server (sparcv9):

perl -pi.back -e 's/-[LR](
){0,1}\/opt\/csw\/lib\/gcc\/sparc-sun-solaris2.10\/4.9.2/-avoid-version -module/g;' Makefile
perl -pi.back -e 's/\/opt\/csw\/lib$/\/opt\/csw\/lib\/64/g;' Makefile
perl -pi.back -e 's/usr\/ucblib/usr\/ucblib\/sparcv9/g;' Makefile

------------------------------------------------------------------------
[2017-05-02 03:48:11] coypu at sdf dot org

I have been told elsewhere by someone who knows SLJIT:
"It crashes while emitting, not when running jit code. My bet is that pcre emits a jump to a
dead label"

------------------------------------------------------------------------
[2017-01-06 17:12:19] cmb@php.net

> Without PCRE-JIT, the package builds successfully.

So this is apparently a PCRE-JIT based issue.

> pkgsrc currently provides PCRE 8.39 and PCRE2 10.22, in case
> those are more recent versions than the bundled one.

PHP 7 ships PCRE 8.38, because there have been issues with
8.39[1]. PCRE2 is not yet supported.

[1] <https://github.com/php/php-src/commit/5f9df47e>

------------------------------------------------------------------------
[2017-01-06 16:11:37] joern dot clausen at uni-bielefeld dot de

Without PCRE-JIT, the package builds successfully. I use the PCRE that comes bundled with PHP 7.1.0.

pkgsrc currently provides PCRE 8.39 and PCRE2 10.22, in case those are more recent versions than the
bundled one.

------------------------------------------------------------------------
[2017-01-06 15:34:50] cmb@php.net

Please try again after doing

  ./config.nice --without-pcre-jit

Also, which PCRE version do you use?

------------------------------------------------------------------------


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=73880


--
Edit this bug report at https://bugs.php.net/bug.php?id=73880&edit=1


Thread (8 messages)

« previous php.bugs (#231920) next »