Edit report at http://bugs.php.net/bug.php?id=53426&edit=1

 ID:                 53426
 User updated by:    dr4k0n at list dot ru
 Reported by:        dr4k0n at list dot ru
 Summary:            Segmentation fault
-Status:             Feedback
+Status:             Open
 Type:               Bug
 Package:            PCRE related
 Operating System:   Gentoo Linux 2.6.34-xenU-fly
 PHP Version:        5.3.3
 Block user comment: N
 Private report:     N

 New Comment:

PCRE related settings in php.ini not helps...



Full report:

PHP 5.3.3-pl1-gentoo (cli)



script:

$news = file_get_contents ('news.dat');

$pregNews = '#<h1[^>]*>([^<]+)</h1>([^<]|<[^h]|<h[^2])*<h2>[^<]*<a
href="(/actions/\?id=([\d]+))">(([^<]|<[^/]|</[^a])*)</a></h2>#sui';

preg_match_all ($pregNews, $news, $newsResult, PREG_SET_ORDER);



news.dat: http://www.infoskidka.ru/common/news.dat

valgrind report: http://www.infoskidka.ru/common/news_segfault.txt


Previous Comments:
------------------------------------------------------------------------
[2010-12-02 11:34:24] paj...@php.net

It is most likely one of the pcre stack segfault, increase it (via
php.ini's pcre.backtrack_limit setting) may fix this problem.



If it still crashes, we will need a short script to reproduce the
problem, self containted too.

------------------------------------------------------------------------
[2010-12-02 08:47:27] dr4k0n at list dot ru

So, what about problem? It's really error in PCRE module? If it's
problem in module, when it will be fixed? Do you need PHP scripts with
code which makes segfault?

------------------------------------------------------------------------
[2010-12-01 00:46:47] dr4k0n at list dot ru

I tried PHP 5.3.3 with enables mysqlnd and I disable all mysql
connections... Not works: again segfault.

I tried PHP 5.3.4RC1: and again segfault. Report:
http://www.infoskidka.ru/common/php_debug_segfault_5.3.4RC1.txt

------------------------------------------------------------------------
[2010-11-30 12:32:22] johan...@php.net

And please don't use distribution packages but build our sources. Gentoo
and others apply patches we don't know and have no control over.

------------------------------------------------------------------------
[2010-11-30 12:31:23] paj...@php.net

And we still need a way to actually reproduce this crash, like a small
script.

------------------------------------------------------------------------


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

    http://bugs.php.net/bug.php?id=53426


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=53426&edit=1

Reply via email to