[Mediawiki-l] Segmentation fault with php5.2, OK in php5.3

jidanni at jidanni.org jidanni at jidanni.org
Wed Aug 19 17:24:36 UTC 2009


Just want to let the reader know a problem that occurs in MediaWiki
1.16alpha (r55306) if one has not upgraded to php5.3.

Browsing http://radioscanningtw.jidanni.org/index.php?title=桃園縣消防局&action=history
gives in /var/log/apache2/error.log:

[Wed Aug 19 13:46:24 2009] [error] [client 127.0.0.1] ALERT - possible memory corruption detected - unknown Hashtable destructor (attacker '127.0.0.1', file '/home/jidanni/mediawiki/includes/Linker.php', line 1025)

  1022				$linked = preg_replace_callback(
  1023					'/^:?(.*?)(\|(.*?))*\]\]([^[]*)/',
  1024					array( $this, 'formatLinksInCommentCallback' ),
  1025					$line, -1, $count );
  1026				if( !$count ) { // No valid link found, put the brackets back
  1027					$linked = '[[' . $linked;
  1028				}

Adding a uselang=en gives
[Wed Aug 19 13:55:34 2009] [notice] child pid 3502 exit signal Segmentation fault (11), possible coredump in /tmp

Using the methods of
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535770 I only get
(gdb) bt full
#0  0xb77ebd2f in ?? ()
No symbol table info available.
Oh well

(That was all on my home machine. On the public Dreamhost edition of my
wiki you will just see a 500 HTTP error. And I will just see
"Premature end of script headers: php5.cgi" in error.log)

Anyways, when it doesn't coredump, it makes a curious mixture of Chinese and English dates:
• (當前) (先前) ( )(*) 2009年8月16日 (日) 16:21 123.195.169.35 (108位元組) (取消由Luyichi (對話)所作出的修訂 4331) (undo)
• (當前) (先前) (*)( ) 09:11, 9 July 2009 Luyichi (Talk | contribs) (93 bytes) (取消由Luyichi (對話)所作出的修訂 4330)    (undo)
• (當前) (先前) ( )( ) 16:43, 2 July 2009 Luyichi (Talk | contribs) (108 bytes) (undo)

P.S., it would be neat if the owners of this mailing list would let
Google index it, for the next person that encounters a Segfault.

Conclusion: one should upgrade to php5.3... Wait: Special:Preferences
will Segfault in php5.3
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535770 .)



More information about the MediaWiki-l mailing list