|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70307 Macports PHP5.6 crashes on exit if renamed
Submitted: 2015-08-19 18:14 UTC Modified: 2021-06-09 22:35 UTC
From: geoffdown at fastmail dot net Assigned: cmb (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.6.12 OS: OSX10.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: geoffdown at fastmail dot net
New email:
PHP Version: OS:


 [2015-08-19 18:14 UTC] geoffdown at fastmail dot net
Macports PHP 5.6.10 (cli) (the latest) crashes on exit if the executable is renamed from 'php56' to 'php'. This also happens if a hard or soft symlink with name 'php' is created. For some reason 'php5' is acceptable. The crash occurs even if no code is parsed e.g. 'php -v' prints the version but then crashes.
 Do I also have to rename other files like php-config56 and phpize56?

Test script:
php -v

Actual result:
Host Name:      Power-Mac-G4
Date/Time:      2015-08-19 18:52:16.879 +0100
OS Version:     10.4.11 (Build 8S165)
Report Version: 4

Command: php
Path:    /usr/bin/php
Parent:  tcsh [23104]

Version: ??? (???)

PID:    23108
Thread: 0

Exception:  EXC_BAD_INSTRUCTION (0x0002)
Code[0]:    0x00000002
Code[1]:    0x0200dd60

Thread 0 Crashed:
0   libcrypto.1.0.0.dylib       0x0200dd60 OPENSSL_ppc64_probe + 0
1   libcrypto.1.0.0.dylib       0x0200dfc4 OPENSSL_cpuid_setup + 196
2   libcrypto.1.0.0.dylib       0x020a9524 OPENSSL_add_all_algorithms_noconf + 20
3                  0x0178351c zm_startup_openssl + 152
4   php                         0x0020e374 zend_startup_module_ex + 320
5   php                         0x00217fcc zend_hash_apply + 104
6   php                         0x002111dc zend_startup_modules + 72
7   php                         0x001a6e24 php_module_startup + 2100
8   php                         0x002b660c php_cli_startup + 24
9   php                         0x002b80b0 main + 1260
10  php                         0x0000251c _start + 760
11  php                         0x00002220 start + 48

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x000000000200dd60 srr1: 0x000000000208f030                        vrsave: 0x0000000000000000
    cr: 0x24000222          xer: 0x0000000000000004   lr: 0x000000000200dfc4  ctr: 0x00000000900019c0
    r0: 0x0000000000000000   r1: 0x00000000bfffedb0   r2: 0x0000000000000072   r3: 0x0000000000000000
    r4: 0x0000000000000000   r5: 0x000000000200dfb8   r6: 0x0000000002167d88   r7: 0x00000000000000ff
    r8: 0x0000000002167d74   r9: 0x00000000fffff927  r10: 0x000000000000000e  r11: 0x0000000022000222
   r12: 0x00000000900019c0  r13: 0x000000000067bc40  r14: 0x0000000000000000  r15: 0x0000000000677bd4
   r16: 0x000000000067bc3c  r17: 0x0000000000677bd4  r18: 0x0000000000677bd4  r19: 0x00000000010910a0
   r20: 0x0000000000008000  r21: 0x00000000bffff064  r22: 0x0000000001801600  r23: 0x00000000002cb764
   r24: 0x0000000000676600  r25: 0x00000000bffff0f4  r26: 0x000000000020e234  r27: 0x0000000001539f40
   r28: 0x0000000000000000  r29: 0x0000000000000000  r30: 0x000000000216df08  r31: 0x000000000200df08

Binary Images Description:
    0x1000 -   0x67bfff php     /usr/bin/php
  0x759000 -   0x779fff libedit.0.dylib         /opt/local/lib/libedit.0.dylib
  0x785000 -   0x7c1fff libncurses.5.dylib      /opt/local/lib/libncurses.5.dylib
  0x7d5000 -   0x7e3fff libbz2.1.0.dylib        /opt/local/lib/libbz2.1.0.dylib
  0x7e7000 -   0x7f8fff libz.1.dylib    /opt/local/lib/libz.1.dylib
 0x1008000 -  0x1066fff libpcre.1.dylib         /opt/local/lib/libpcre.1.dylib
 0x106b000 -  0x1089fff liblzma.5.dylib         /opt/local/lib/liblzma.5.dylib
 0x10f7000 -  0x10f8fff libcom_err.1.1.dylib    /opt/local/lib/libcom_err.1.1.dylib
 0x1205000 -  0x1320fff libxml2.2.dylib         /opt/local/lib/libxml2.2.dylib
 0x134c000 -  0x1444fff libiconv.2.dylib        /opt/local/lib/libiconv.2.dylib
 0x1450000 -  0x145ffff         /opt/local/lib/php56/extensions/no-debug-non-zts-20131226/
 0x1464000 -  0x14b3fff libcurl.4.dylib         /opt/local/lib/libcurl.4.dylib
 0x14c1000 -  0x14c7fff       /opt/local/lib/php56/extensions/no-debug-non-zts-20131226/
 0x14cc000 -  0x14effff libmcrypt.4.dylib       /opt/local/lib/libmcrypt.4.dylib
 0x1705000 -  0x175bfff libssl.1.0.0.dylib      /opt/local/lib/libssl.1.0.0.dylib
 0x1774000 -  0x177afff libltdl.7.dylib         /opt/local/lib/libltdl.7.dylib
 0x177e000 -  0x1794fff      /opt/local/lib/php56/extensions/no-debug-non-zts-20131226/
 0x179f000 -  0x17cefff libgssapi_krb5.2.2.dylib        /opt/local/lib/libgssapi_krb5.2.2.dylib
 0x17db000 -  0x17eafff libk5crypto.3.1.dylib   /opt/local/lib/libk5crypto.3.1.dylib
 0x17f1000 -  0x17f7fff libkrb5support.1.1.dylib        /opt/local/lib/libkrb5support.1.1.dylib
 0x2008000 -  0x2153fff libcrypto.1.0.0.dylib   /opt/local/lib/libcrypto.1.0.0.dylib
 0x21b6000 -  0x2239fff libkrb5.3.3.dylib       /opt/local/lib/libkrb5.3.3.dylib
 0x2269000 -  0x2272fff libintl.8.dylib         /opt/local/lib/libintl.8.dylib
 0x2276000 -  0x2279fff        /opt/local/lib/php56/extensions/no-debug-non-zts-20131226/
 0x227d000 -  0x2289fff      /opt/local/lib/php56/extensions/no-debug-non-zts-20131226/
0x8fe00000 - 0x8fe52fff dyld 46.16      /usr/lib/dyld
0x90000000 - 0x901bcfff libSystem.B.dylib       /usr/lib/libSystem.B.dylib
0x90214000 - 0x90219fff libmathCommon.A.dylib   /usr/lib/system/libmathCommon.A.dylib
0x907bb000 - 0x90895fff 6.4.11 (368.35)        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x908e0000 - 0x909e2fff libicucore.A.dylib      /usr/lib/libicucore.A.dylib
0x90a3c000 - 0x90ac0fff libobjc.A.dylib         /usr/lib/libobjc.A.dylib
0x90b72000 - 0x90b84fff libauto.dylib   /usr/lib/libauto.dylib
0x91434000 - 0x9143ffff libgcc_s.1.dylib        /usr/lib/libgcc_s.1.dylib
0x95075000 - 0x95092fff libresolv.9.dylib       /usr/lib/libresolv.9.dylib


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-06-09 14:42 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-06-09 14:42 UTC]
Is this still an issue with any of the actively supported PHP

[1] <>
 [2021-06-09 22:26 UTC] geoffdown at fastmail dot net
-Status: Feedback +Status: Assigned
 [2021-06-09 22:26 UTC] geoffdown at fastmail dot net
Couldn't say - I'm still on 5.6
 [2021-06-09 22:35 UTC]
-Status: Assigned +Status: Closed
 [2021-06-09 22:35 UTC]
Thanks for the swift reply!  I don't think it makes sense to keep
this open then: no response in almost six years, and no upvote

If you, or anybody else can reproduce this with an actively
supported PHP version, please reopen or file a new ticket.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Feb 02 17:03:42 2023 UTC