Edit report at https://bugs.php.net/bug.php?id=71937&edit=1
ID: 71937
User updated by: aayaresko at gmail dot com
Reported by: aayaresko at gmail dot com
Summary: Php regular expression error with a large pattern
Status: Open
Type: Bug
Package: *Regular Expressions
Operating System: Linux debian 3.16.0-4-amd64 #1 S
PHP Version: 7.0.5
Block user comment: N
Private report: N
New Comment:
Xdebug is unloaded. The problem is still present. Here is the backtrace:
#0 0x00007fc40269e067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007fc40269f448 in __GI_abort () at abort.c:89
#2 0x00007fc4026dc1b4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7fc4027d1530
"*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007fc4026e198e in malloc_printerr (action=1, str=0x7fc4027cd646 "free(): invalid
pointer", ptr=<optimized out>) at malloc.c:4996
#4 0x00007fc4026e2696 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0)
at malloc.c:3840
#5 0x00007fc403d233f5 in ?? () from /lib/x86_64-linux-gnu/libpcre.so.3
#6 0x00007fc403d488ef in ?? () from /lib/x86_64-linux-gnu/libpcre.so.3
#7 0x00007fc403d4b4a5 in pcre_study () from /lib/x86_64-linux-gnu/libpcre.so.3
#8 0x00000000004af0ca in pcre_get_compiled_regex_cache ()
#9 0x00000000004b335d in ?? ()
#10 0x000000000071eb7a in dtrace_execute_internal ()
#11 0x00000000007b3370 in ?? ()
#12 0x000000000076e8ab in execute_ex ()
#13 0x000000000071ea08 in dtrace_execute_ex ()
#14 0x00000000007c27f7 in zend_execute ()
#15 0x000000000072ee83 in zend_execute_scripts ()
#16 0x00000000006cfb20 in php_execute_script ()
#17 0x000000000046fa12 in main ()
Previous Comments:
------------------------------------------------------------------------
[2016-04-24 04:22:27] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2016-04-15 05:16:16] aayaresko at gmail dot com
Hi! I'm sorry that took so long with an answer and many thanks for your help and time that you
spent on this problem. You're right, xdebug is still loaded. I checked every configuration file
and removed all directives about it and here is the bugtrace
#0 0x00007fc40269e067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007fc40269f448 in __GI_abort () at abort.c:89
#2 0x00007fc4026dc1b4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7fc4027d1530
"*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007fc4026e198e in malloc_printerr (action=1, str=0x7fc4027cd646 "free(): invalid
pointer", ptr=<optimized out>) at malloc.c:4996
#4 0x00007fc4026e2696 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0)
at malloc.c:3840
#5 0x00007fc403d233f5 in ?? () from /lib/x86_64-linux-gnu/libpcre.so.3
#6 0x00007fc403d488ef in ?? () from /lib/x86_64-linux-gnu/libpcre.so.3
#7 0x00007fc403d4b4a5 in pcre_study () from /lib/x86_64-linux-gnu/libpcre.so.3
#8 0x00000000004af0ca in pcre_get_compiled_regex_cache ()
#9 0x00000000004b335d in ?? ()
#10 0x000000000071eb7a in dtrace_execute_internal ()
#11 0x00000000007b3370 in ?? ()
#12 0x000000000076e8ab in execute_ex ()
#13 0x000000000071ea08 in dtrace_execute_ex ()
#14 0x00000000007c27f7 in zend_execute ()
#15 0x000000000072ee83 in zend_execute_scripts ()
#16 0x00000000006cfb20 in php_execute_script ()
#17 0x000000000046fa12 in main ()
------------------------------------------------------------------------
[2016-04-14 19:46:03] ab@php.net
Hi, thanks for the backtrace. I still see xdebug in there. Please try to not to load it, eg comment
out in INI. Generally, it is bad idea to enable Opcache and Xdebug together, a crash is just to
expect.
Thanks.
------------------------------------------------------------------------
[2016-04-14 06:28:55] aayaresko at gmail dot com
I'm sorry for that "spaghetty comment". I realized that the answers of this size is a
bad idea only after clicked "submit" button. I'll promise to never do that again.
Unfortunately with xdebug disabled I get the same "sigfault".
The backtrace:
#0 0x00007f7f50f95067 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1 0x00007f7f50f96448 in __GI_abort () at abort.c:89
#2 0x00007f7f50fd31b4 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7f7f510c8530
"*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007f7f50fd898e in malloc_printerr (action=1, str=0x7f7f510c4646 "free(): invalid
pointer", ptr=<optimized out>) at malloc.c:4996
#4 0x00007f7f50fd9696 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0)
at malloc.c:3840
#5 0x00007f7f5261a3f5 in ?? () from /lib/x86_64-linux-gnu/libpcre.so.3
#6 0x00007f7f5263f8ef in ?? () from /lib/x86_64-linux-gnu/libpcre.so.3
#7 0x00007f7f526424a5 in pcre_study () from /lib/x86_64-linux-gnu/libpcre.so.3
#8 0x00000000004af0ca in pcre_get_compiled_regex_cache ()
#9 0x00000000004b335d in ?? ()
#10 0x000000000071eb7a in dtrace_execute_internal ()
#11 0x00007f7f500e0eb1 in xdebug_execute_internal (current_execute_data=0x7f7f508120a0,
return_value=0x7f7f50812090) at /usr/src/builddir/xdebug-2.4.0/xdebug.c:2035
#12 0x00000000007b3370 in ?? ()
#13 0x000000000076e8ab in execute_ex ()
#14 0x000000000071ea08 in dtrace_execute_ex ()
#15 0x00007f7f500e052f in xdebug_execute_ex (execute_data=0x7f7f50812030) at
/usr/src/builddir/xdebug-2.4.0/xdebug.c:1890
#16 0x00000000007c27f7 in zend_execute ()
#17 0x000000000072ee83 in zend_execute_scripts ()
#18 0x00000000006cfb20 in php_execute_script ()
#19 0x000000000046fa12 in main ()
Yes, opcache is enabled.
------------------------------------------------------------------------
[2016-04-13 13:21:51] ab@php.net
Thanks for the additional info. Please next time don't post such big chunks into the ticket,
you can pastebin or gist instead :)
Could you please try to disable xdebug and check whether this fixes the issue? Is there some opcode
cache enabled in parallel (like opcache)?
Thanks.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=71937
--
Edit this bug report at https://bugs.php.net/bug.php?id=71937&edit=1