Bug #73483 [NEW]: Segmentation fault

From: Date: Wed, 09 Nov 2016 12:06:57 +0000
Subject: Bug #73483 [NEW]: Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-205256@lists.php.net to get a copy of this message
From:             alex at buayacorp dot com
Operating system: debian wheezy
PHP version:      7.0.12
Package:          PCRE related
Bug Type:         Bug
Bug description:Segmentation fault

Description:
------------
We've noticed a few segmentation faults in some of our servers. I am
able to consistently reproduce it in a debian wheezy vm with the test
script below.

alex@atoq-wheezy:~/php-7.0.12$ uname -a
Linux atoq-wheezy 3.2.0-4-amd64 #1 SMP Debian 3.2.82-1 x86_64 GNU/Linux
alex@atoq-wheezy:~/php-7.0.12$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

# PHP compiled with --disable-all flag.
alex@atoq-wheezy:~/php-7.0.12$ sapi/cli/php -v
PHP 7.0.12 (cli) (built: Nov  9 2016 11:29:49) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies

The script works fine in the same VM under PHP 5.6.27.
# PHP compiled with --disable-all flag.
alex@atoq-wheezy:~/php-5.6.27$ sapi/cli/php ../segfault.php
string(22) "<p>hola</p><p>hola</p>"

Test script:
---------------
https://gist.github.com/xknown/b0bdcfa87edf039e995822d86cfde441

Expected result:
----------------
string(22) "<p>hola</p><p>hola</p>"

Actual result:
--------------
alex@atoq-wheezy:~/php-7.0.12$ sapi/cli/php -dpcre.jit=0
../segfault.php
NULL

alex@atoq-wheezy:~/php-7.0.12$ sapi/cli/php -dpcre.jit=1
../segfault.php
NULL
Segmentation fault


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



Thread (8 messages)

« previous php.bugs (#205256) next »