[wp-trac] [WordPress Trac] #16892: make_clickable segfault

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 19 11:32:55 UTC 2011


#16892: make_clickable segfault
--------------------------+------------------------------
 Reporter:  westi         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------
Changes (by westi):

 * keywords:  reporter-feedback => needs-patch


Comment:

 Replying to [comment:5 hakre]:
 > I asked because of this message:
 >
 > {{{
 > /usr/local/src/php-5.3.5/ext/pcre/pcrelib/pcre_exec.c: No such file or
 directory.
 > }}}
 >
 > Looks like your PHP version is missing the PCRE library.
 >

 Nope - that is just GDB mentioning that I don't have the source code on
 this box.

 > As it does not segfault for me with the same PHP version of which mine
 is officially distributed by PHP.net I assume that you're facing a
 configuration issue on your server.
 >
 > I tend to close this ticket as worksforme.
 >
 > Pleae ensure that you've properly compiled PHP with all needed
 libraries, especially with the ones needed for the PCRE extension.
 >
 > Does the following script segfaults on that said system?
 >
 > {{{
 > <?php
 > // The "i" after the pattern delimiter indicates a case-insensitive
 search
 > if (preg_match("/php/i", "PHP is the web scripting language of
 choice.")) {
 >     echo "A match was found.";
 > } else {
 >     echo "A match was not found.";
 > }
 > ?>
 > }}}

 No segfault - works fine and finds a match.

 The segfault only occurs when you have enough of the urls in the comment
 for it to trigger - reduce the number of urls and the segfault goes away.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16892#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list