Bug #81006 [NEW]: Segmentation fault 11 on OSX 11

From: Date: Sun, 02 May 2021 16:14:56 +0000
Subject: Bug #81006 [NEW]: Segmentation fault 11 on OSX 11
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233630@lists.php.net to get a copy of this message
From:             sulcmil at gmail dot com
Operating system: OSX 11.3
PHP version:      8.0.5
Package:          *General Issues
Bug Type:         Bug
Bug description:Segmentation fault 11 on OSX 11

Description:
------------
Hi. After upgrading to PHP 8.0.5, me and my colleagues are hitting
Segmentation fault 11 on OSX 11.

We're using homebrew and default php formula.

- install brew
- brew update
- brew install php@8.0

I have homebrew default PHP configuration with APCu extension.

```
➜ php --ini
Configuration File (php.ini) Path: /usr/local/etc/php/8.0
Loaded Configuration File:         /usr/local/etc/php/8.0/php.ini
Scan for additional .ini files in: /usr/local/etc/php/8.0/conf.d
Additional .ini files parsed:     
/usr/local/etc/php/8.0/conf.d/ext-apcu.ini
```

There is Symfony Console + Doctrine library in our project.

- bin/console doctrine:fixtures:load --append --no-interaction
--fixtures=app/fixtures

This command is working well on PHP 8.0.3, but on PHP 8.0.5 it ends with
segmentation fault 11.

From my observation, same error occurs also using PHP development
server.

Here is output from lldb.

```
❯ lldb php bin/console doctrine:fixtures:load -- --append
--no-interaction --fixtures=app/fixtures/Plan/Dev
(lldb) target create "php"
Current executable set to 'php' (x86_64).
(lldb) settings set -- target.run-args  "bin/console"
"doctrine:fixtures:load" "--append" "--no-interaction"
"--fixtures=app/fixtures"
(lldb) run
Process 11978 launched: '/usr/local/bin/php' (x86_64)
  > loading [1] App\Fixtures\UserFixture
Process 11978 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason =
EXC_BAD_ACCESS (code=1, address=0x1a)
    frame #0: 0x00007fff205cadc6 libsystem_c.dylib`strtoll_l + 77
libsystem_c.dylib`strtoll_l:
->  0x7fff205cadc6 <+77>: movb   (%rbx), %sil
    0x7fff205cadc9 <+80>: movzbl %sil, %eax
    0x7fff205cadcd <+84>: testb  %al, %al
    0x7fff205cadcf <+86>: js     0x7fff205cadd8            ; <+95>
Target 0: (php) stopped.
(lldb) exit
```

Thank you for your help.

Test script:
---------------
➜ php bin/console doctrine:fixtures:load --append --no-interaction
--fixtures=app/fixture
  > loading [1] App\Fixtures\UserFixture

Expected result:
----------------
It should works without segmentation fault.

Actual result:
--------------
Segmentation fault: 11

-- 
Edit bug report at https://bugs.php.net/bug.php?id=81006&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=81006&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=81006&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=81006&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=81006&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=81006&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=81006&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=81006&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=81006&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=81006&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=81006&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81006&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=81006&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=81006&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=81006&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=81006&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=81006&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=81006&r=mysqlcfg


Thread (9 messages)

« previous php.bugs (#233630) next »