Bug #79931 [NEW]: Segmentation fault

From: Date: Wed, 05 Aug 2020 10:12:54 +0000
Subject: Bug #79931 [NEW]: Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228410@lists.php.net to get a copy of this message
From:             contact dot obukhov at gmail dot com
Operating system: Debian Buster
PHP version:      7.4.8
Package:          Reproducible crash
Bug Type:         Bug
Bug description:Segmentation fault

Description:
------------
I am using Symfony 5 and Doctrine and face Segmentation fault on some
requests, when about 30-40 records are loaded from database (MySQL
5.7).

Because this is segmentation fault and doctrine code looks OK it seems
to be a bug in PHP.

We used 7.4.6, upgraded to 7.4.8 but problem still occurs. We can not
test it in 7.3 because of typed properties we use almost everywhere.

Environment is Docker container from official image
php:7.4.8-fpm-buster

php -i
https://pastebin.com/D8z7kSbV

valgrind --tool=memcheck --num-callers=30 --log-file=php.log
--suppressions=php.supp php bin/console s:t:g:
https://pastebin.com/GAtZ5fLD

What is weird with USE_ZEND_ALLOC=0 it does not crash
USE_ZEND_ALLOC=0 valgrind --tool=memcheck --num-callers=30
--log-file=php_no_zend_alloc.log --suppressions=php.supp php bin/console
s:t:g
https://pastebin.com/4zsCyv9p

gdb backtrace:
https://pastebin.com/kDBN8CWa

Core dump:
https://drive.google.com/file/d/1ya7ohpKsIXnjFpCYJk9vqu7ICDhAGixL/view?usp=sharing

Valgrind dump:
https://drive.google.com/file/d/1pHZ7ONOMk3HDmRsJcz_kfRFzMBWckw62/view?usp=sharing


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


Thread (4 messages)

« previous php.bugs (#228410) next »