Topic on Project:Support desk

Fatal error: Possible integer overflow in memory allocation

14
Stomkiewicz (talkcontribs)

I upgraded from version 1.17.0 to 1.22.2 and now when I click on Special Pages I receive this error: Fatal error: Possible integer overflow in memory allocation (2147483648 * 4 + 0) in /var/www/wiki/includes/User.php on line 2312

I went and opened up user.php and line 2312 reads:

if ( !$ignoreHidden && in_array( $oname, $wgHiddenPrefs ) ) {
     return self::getDefaultOption( $oname );
}
MarkAHershberger (talkcontribs)
Stomkiewicz (talkcontribs)

I found 2 php.ini files and increased them both to say 256M, still no luck. (one originally said 128M, the other said -1)

MarkAHershberger (talkcontribs)

Weird. I came across this post with the discouraging solution:

 Ok, found the trouble...
 One of the twelve CPU's in the system had a bit fualt in bit 2 of its integer calculations... with that CPU off, it works flawlessy again...
 
 The CPU doesnt show any errors during testing, but the fault dissapears completely with that one off.

I wouldn't even know how to track that down.

MarkAHershberger (talkcontribs)

Is it always on the same line number? What extensions do you have installed?

Stomkiewicz (talkcontribs)

I'm running on a virtual server. As far as extensions, I don't know if any are actually installed. Our old IT directory set this up, then quit, and we had just been using it for a year until it just recently crashed and I'm trying to get it going again.

MarkAHershberger (talkcontribs)

You can check the extensions directory for the installed extensions. What directories and files are in there?

Emufarmers (talkcontribs)

I can reproduce this on a new 1.22.2 wiki. It doesn't appear if I switch to 1.21.5, so that narrows it down to...every change between 1.21 and 1.22, I guess. :-)

MarkAHershberger (talkcontribs)

I can't duplicate this on a new Debian installation. Could you share more information? Extensions, etc?

86.159.119.122 (talkcontribs)

I'm facing the same issue with fresh installation of MediaWiki v1.22.0 on CentOS release 5.4, PHP 5.3.6, MySQL 5.1.57. I do not have any extensions installed in the fresh installation.

Bawolff (talkcontribs)

I suspect this is either a PHP issue, or underlying OS issue, and not a mediawiki issue.

86.145.23.211 (talkcontribs)

If it was PHP or OS issue then I should be getting similar error on existing old installation of MediaWiki on the same server.

My current installation of MW is v1.17.0rc1. When I either upgrade it to v1.22.0 or install it fresh, accessing special pages throws "Fatal error: Possible integer overflow in memory allocation (2147483648 * 4 + 0) in /var/www/wiki/includes/User.php on line 2312" exception. Rest every other functionality works normally.

Server Configuration: CentOS release 5.4, PHP 5.3.6, MySQL 5.1.57

MarkAHershberger (talkcontribs)
Ciencia Al Poder (talkcontribs)

It's not a MediaWiki bug, but a problem with either PHP or a hardware problem. The fact that it didn't happened in previous versions is because the new version is able to trigger that bug somewhat, but the bug is in the PHP engine, apache or somewhere else.

Looking for that error in search engines gives me a lot of results for other PHP software like joomla, phpBB, etc.

The only solution would be to get a new version of PHP, or even recompile PHP yourself, to see if that solves your problem, although some of the reports I've seen are from old PHP versions from 2006(!) so it may not solve the problem at all.

Reply to "Fatal error: Possible integer overflow in memory allocation"