Bug 1330747

Summary: Segfault in gc_remove_zval_from_buffer
Product: [Community] softwarecollections.org Reporter: drodger <derek.rodger>
Component: rh-php56Assignee: Remi Collet <rcollet>
Status: CLOSED EOL QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: jon.dufresne, jorton, webstack-team
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-12-08 12:28:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Reproduce segfault none

Description drodger 2016-04-26 20:56:56 UTC
Created attachment 1151086 [details]
Reproduce segfault

Description of problem:
PHP segfaults when running the attached script.

Version-Release number of selected component (if applicable):
rh-php56-2.0-6.el7.x86_64

How reproducible:
Run the attached script.

Steps to Reproduce:
1. php gc_segfault.php
2.
3.

Actual results:
PHP Notice:  Undefined variable: i in /root/scripts/test_seg_fault.php on line 4
made it once
PHP Notice:  Undefined variable: i in /root/scripts/test_seg_fault.php on line 4
Segmentation fault (core dumped)

Expected results:
PHP Notice:  Undefined variable: i in /root/scripts/test_seg_fault.php on line 4
made it once
PHP Notice:  Undefined variable: i in /root/scripts/test_seg_fault.php on line 4
ok


Additional info:
centos-release-7-2.1511.el7.centos.2.10.x86_64

The problem has been found and fixed in a later version of PHP than what is currently packaged in scl.

Details can be found here: https://bugs.php.net/bug.php?id=67314