From: Dan K. <do...@ax...> - 2004-09-01 08:53:32
|
On Sun, 22 Aug 2004 14:24:43 +0200, Reini Urban wrote: > Dan Kamins schrieb: > >> I'm kind of at a standstill now though, because 1.2 doesn't have >> the features I need (as mentioned below) or work on my server >> without modifications, and 1.3 crashes my server in a weird way ( >> http://sourceforge.net/tracker/?func=3Ddetail&aid=3D1013350&group_id=3D6121& >> atid=3D106121 )... What to do... Anybody seen this PCRE crash >> before? >> >>> From the bug report, this code crashes (which is a simpler >>> version of what my ConvertOldMarkup() does to the file >>> OldTextFormattingRules during virgin setup): >> $pat =3D "/\A((?:.|\n)*?)(^(?:[ \t]+\S(?:.*\s*\n[ \t]+\S)*|". >> "\|(?:.*\n\|)*|[#*;]*(?:[*#]|;.*?:)|\[\s*(\d+)\s*\]|". >> "<\?plugin(?:-form)?\b.*\?>\s*$|!{1,3}[^!]).*$)\n?/m"; $subj =3D >> str_repeat("123456789 ", 50); preg_match($pat, $subj); > > yes, this is a known issue. > cause still unknown. happens only with huge anchored regex. > > please remove pgsrc/OldTextFormattingRules on virgin setup. > Well I removed that file and got the crash on another file instead. I'm= sure if I remove THAT file, then it will crash on either another one of the= pgsrc files or one of my users' pages. Basically it's not useable, and I= can't really grok that regexp enough to do anything about it (like= splitting it up into multiple passes with smaller expressions or= something...). Guys, the app looks great, and I hope you keep up the good work. If you= could post (reply to this) to this mailing list when you fix this= particular bug, I'm sure I (and whoever else finds this thread) will be= excited to get back on the bandwagon. If there's anything I can do to help= for now, let me know. Otherwise I'll be waiting on the sidelines and= watching this list. For reference, the bug report for this item is: http://sourceforge.net/tracker/?func=3Ddetail&aid=3D1013350&group_id=3D6121&atid=3D1= 06121 -- Dan Kamins |