php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41626 child pid exit signal Illegal instruction
Submitted: 2007-06-07 13:08 UTC Modified: 2007-06-09 21:14 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ilya at qubis dot org Assigned:
Status: Not a bug Package: PCRE related
PHP Version: 5.2.3 OS: FreeBSD 6.2
Private report: No CVE-ID: None
 [2007-06-07 13:08 UTC] ilya at qubis dot org
Description:
------------
preg_match on utf-8 string works fine from cli, but in apache environment (mod_php5.so) silently falls with message in main http-errorlog 

Reproduce code:
---------------
script:
http://fizz.qubis.org/xj/test.php

source:
http://fizz.qubis.org/xj/test.phps

resource file:
http://fizz.qubis.org/xj/mail.xml


Expected result:
----------------
any warning, some output like 
Array
(
    [0] => <body>
...


Actual result:
--------------
blank screen

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-07 13:12 UTC] ilya at qubis dot org
New info:
this bug is only for pcre 7.0

(PCRE Library Version 7.0 18-Dec-2006)
 [2007-06-07 13:14 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

The infamous PCRE stack overflow AGAIN?
Please tell me I'm wrong..
 [2007-06-07 14:19 UTC] ilya at qubis dot org
Oops, man!

http://bugs.php.net/bugs-generating-backtrace.php for *NIX

I've decided use the way "If you can't get a core file:"

but:


[root@mars ~]# gdb /usr/local/sbin/httpd
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) run -X
Starting program: /usr/local/sbin/httpd -X
warning: Unable to get location for thread creation breakpoint: generic error
[New LWP 100126]
[New Thread 0x80b0000 (LWP 100126)]
gdb in realloc(): error: pointer to wrong page
Abort trap: 6 (core dumped)
[root@mars ~]#


any suggections?
 [2007-06-07 14:38 UTC] tony2001@php.net
>GNU gdb 6.1.1 [FreeBSD]

Try updating GDB.
 [2007-06-07 21:16 UTC] ilya at qubis dot org
ok, I've compiled GNU gdb 6.5


backtrace is something like:
===
#0  0x295a9710 in match () /from usr/local/lib/php/20060613-debug/pcre.so
#1  0x295a98ca in match () from /usr/local/lib/php/20060613-debug/pcre.so
#2  0x295ab649 in match () from /usr/local/lib/php/20060613-debug/pcre.so
===
...
after that lines 1 and 2 repeat infinitely.
 [2007-06-08 01:26 UTC] stas@php.net
FWIW, works for me fine on Linux Fedora 6. 
 [2007-06-08 05:52 UTC] ilya at qubis dot org
Stas! Are you using PCRE 7.0?
 [2007-06-08 18:29 UTC] stas@php.net
I'm using whatever is bundled with PHP - looks like it's 7.0. 
PCRE Library Version => 7.0 18-Dec-2006

 [2007-06-09 21:14 UTC] nlopess@php.net
that seems to be a problem in stack Operating System limit (which PHP can't do anything about).
Anyway this bug has nothing to do with PHP. If you feel this is a bug (at first sight I would say it's not), please contact the PCRE dev team at: pcre-dev@exim.org
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 18:02:40 2024 UTC