From: lukyrys at gmail dot com
Operating system: Debian 7.1
PHP version: 5.4.17
Package: PCRE related
Bug Type: Bug
Bug description:SIGSEGV
Description:
------------
Hello, i have a problem with php when i use pcre regexp ((?<!href).)
Test script:
---------------
preg_match_all('#<a.*?href="([^<>]*?)\?img_id=(\d+)"\s*>((?<!href).)*<img.*?src="(.*?)"#i',$html,$outA)
Expected result:
----------------
array
Actual result:
--------------
Reading symbols from /usr/bin/php...(no debugging symbols found)...done.
(gdb) run /var/www/502.cz/web/nod/onny/index.php
Starting program: /usr/bin/php /var/www/502.cz/web/nod/onny/index.php
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffec495700 (LWP 12351)]
[Thread 0x7fffec495700 (LWP 12351) exited]
Program received signal SIGSEGV, Segmentation fault.
0x00000000004811ed in ?? ()
(gdb) bt
#0 0x00000000004811ed in ?? ()
#1 0x0000000000483496 in ?? ()
#2 0x000000000048f798 in ?? ()
#3 0x0000000000483496 in ?? ()
#4 0x000000000048f798 in ?? ()
#5 0x0000000000483496 in ?? ()
.... same lines
#10900 0x0000000000483496 in ?? ()
#10901 0x000000000048fa8c in ?? ()
#10902 0x0000000000492e0c in php_pcre_exec ()
#10903 0x0000000000497ba8 in php_pcre_match_impl ()
#10904 0x0000000000498538 in ?? ()
#10905 0x000000000076a0f1 in ?? ()
#10906 0x0000000000723f87 in execute ()
#10907 0x00000000006c44dc in zend_execute_scripts ()
#10908 0x0000000000664523 in php_execute_script ()
#10909 0x000000000076ca83 in ?? ()
#10910 0x000000000043181a in ?? ()
#10911 0x00007ffff53b4ead in __libc_start_main () from
/lib/x86_64-linux-gnu/libc.so.6
#10912 0x00000000004318ad in _start ()
--
Edit bug report at https://bugs.php.net/bug.php?id=65393&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=65393&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=65393&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=65393&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=65393&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=65393&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=65393&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=65393&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=65393&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=65393&r=support
Expected behavior: https://bugs.php.net/fix.php?id=65393&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=65393&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=65393&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=65393&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65393&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=65393&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=65393&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=65393&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=65393&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=65393&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=65393&r=mysqlcfg