CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
Pages: [1]

Author Topic: 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation  (Read 3537 times)

mrmat

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.5
  • PHP version: 5.2.6
3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
March 03, 2011, 05:42:13 am
Hello,

I've just moved from a server to another a Drupal Installation (6.20) with CiviCRM (3.3.5) and i've a memory related error :

PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 3121847517 bytes) in sites/all/modules/civicrm/packages/PEAR.php on line 884

It's not a problem of amount of memory because 256M are available. But this script PEAR.php

PHP Fatal error:  Possible integer overflow in memory allocation (2147483648 * 4 + 0) in /sites/all/modules/civicrm/packages/PEAR.php on line 884


It occurs on any CiviCRM page. I'm totally blocked with that. Any idea are welcome.

Thanks for your help

mrmat

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.5
  • PHP version: 5.2.6
Re: 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
March 04, 2011, 12:59:48 am
Maybe i need to clarify my question : do you think such problem can be related to Hardware issue on server or it's on CiviCRM application side ?

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
March 04, 2011, 03:14:23 am
If you transferred a working CiviCRM site from one machine to another and it fails on the second machine, that would clearly lend me to think the second machine has an issue--either hardware (unlikely) or software and configuration (more likely).

Offhand I don't know what the issue is and the simplest solution would be to find a server that can handle this site better.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

mrmat

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.20
  • MySQL version: 5.0.5
  • PHP version: 5.2.6
Re: 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
March 16, 2011, 03:41:43 am
I've seen this post : http://forum.civicrm.org/index.php?topic=10404.0

But on my side it's not related to any DB access trouble. But i've juste seen that PHP was configured with '--without-pear' on server with this problem.
Is pear support needed for CiviCRM ? (or it's embed in CiviCRM module) ?

Checking requirements before install give everything ok

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
March 16, 2011, 03:49:02 am
> Is pear support needed for CiviCRM ?

Yes, I believe so.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

technil

  • I’m new here
  • *
  • Posts: 14
  • Karma: 1
  • CiviCRM version: 3.2, 3.3.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41, 5.0.45
  • PHP version: 5.3.2, 5.2.6
Re: 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
April 13, 2011, 08:46:38 pm
I think on a 32 bit system the maximum integer size for php is around 2 billion or so, and multiplying the number in your error by 4 may make it unrepresentable as an integer type variable. According to php http://php.net/manual/en/language.types.integer.php So... if you say, moved from a 64 bit server / version of php (which can address a much larger integer 9.0 x 10 ^18) to a 32 bit server / version of php - that would cause multiplications that resulted in an integer larger than  2 billion to fail on a 32 bit system, while they might succeed on a 64 bit system. It might explain it if you went from a 64bit server working to a 32bit server not working. As for remedying this, maybe you could convert the integers to floats, though it looks like that is what php does on the fly by default. That may cause problems with your code if you setting things equal to integers or checking integer values for equivalence, because the float will (i'm pretty sure) never exactly equal the int you may be expecting.

HTH

technil

  • I’m new here
  • *
  • Posts: 14
  • Karma: 1
  • CiviCRM version: 3.2, 3.3.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.1.41, 5.0.45
  • PHP version: 5.3.2, 5.2.6
Re: 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation
April 13, 2011, 08:56:50 pm
Oh btw, civicrm ships it's own copy of PEAR.php in /sites/all/modules/civicrm/packages.

-andy

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • 3.3.5 : PHP Fatal error: Possible integer overflow in memory allocation

This forum was archived on 2017-11-26.