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=%E6%A1%83%E5%9C%92%E7%B8%... 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 .)
Le 19 août 09 à 19:24, jidanni@jidanni.org a écrit :
[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
This remembers me https://bugzilla.wikimedia.org/show_bug.cgi?id=19845 same file, same line, PHP 5.2.8.
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
It's better to recompile PHP with --enable-debug to have debug symbols.
Alexandre Emsenhuber
Hello,
It's better to recompile PHP with --enable-debug to have debug symbols.
Usually that is wrong approach - various products add lots and lots of various debug hooks when compiled with something like --with-debug To get debugging symbols one just has to pass CFLAGS="-O3 -g" CXXFLAGS="-O3 -g" to configure script.
Cheers, Domas
mediawiki-l@lists.wikimedia.org