I believe this check:

<?php
preg_match('@(^(<[^>]*>|\s))@u', $chunks[$i]) || empty($chunks[$i])
?>

is causing segmentation fault (per apache's logs). I can't explain it.

CommentFileSizeAuthor
#1 input.txt27.71 KBz.stolar

Comments

z.stolar’s picture

StatusFileSize
new27.71 KB

Here's some example input.

z.stolar’s picture

Status: Active » Fixed

Fixed in 6.x-1.2

yhager’s picture

I believe this was caused by an infinite recursion in calling pdir_text_chuck (typo is in the source), and not a PHP bug.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

sinasalek’s picture

Version: 6.x-1.1 » 6.x-1.3
Status: Closed (fixed) » Active
sinasalek’s picture

sinasalek’s picture

Priority: Normal » Critical
sinasalek’s picture

Infinite loop issue is a different issue, so i moved it here #343270: Segmentation fault on preg_match

sinasalek’s picture

Status: Active » Fixed
sinasalek’s picture

Status: Fixed » Closed (fixed)
z.stolar’s picture

The right link to the infinite loop issue is this #757018: Infinate loop causes Fatal error: Maximum function nesting level of '100' reached, aborting!.
Thanks @sinasalek!