#40701 [NEW]: Memory allocation error

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40701 [NEW]: Memory allocation error

    From: michaeldaly at magma dot ca
    Operating system: Win XP Pro
    PHP version: 5.2.1
    PHP Bug Type: Reproducible crash
    Bug description: Memory allocation error

    Description:
    ------------
    PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
    5.0.27. XP Pro SP2+all current updates.

    After editing about 15-20 pages in my Wiki, PHP eventually generates an
    error:
    PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
    393216 bytes)

    The error occurs in several php programs, though MessagesEn.php is the
    most common. The amount of memory allocated or attempted to allocate
    varies.

    PHP.ini currently has:
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 512M

    Computer has 2GB RAM and is not near its limit in paging etc.

    It sounds similar to a bug that was reported as fixed in 5.2.0.


    --
    Edit bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    --
    Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40701&r=trysnapshot44[/url]
    Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40701&r=trysnapshot52[/url]
    Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40701&r=trysnapshot60[/url]
    Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40701&r=fixedcvs[/url]
    Fixed in release: [url]http://bugs.php.net/fix.php?id=40701&r=alreadyfixed[/url]
    Need backtrace: [url]http://bugs.php.net/fix.php?id=40701&r=needtrace[/url]
    Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40701&r=needscript[/url]
    Try newer version: [url]http://bugs.php.net/fix.php?id=40701&r=oldversion[/url]
    Not developer issue: [url]http://bugs.php.net/fix.php?id=40701&r=support[/url]
    Expected behavior: [url]http://bugs.php.net/fix.php?id=40701&r=notwrong[/url]
    Not enough info: [url]http://bugs.php.net/fix.php?id=40701&r=notenoughinfo[/url]
    Submitted twice: [url]http://bugs.php.net/fix.php?id=40701&r=submittedtwice[/url]
    register_globals: [url]http://bugs.php.net/fix.php?id=40701&r=globals[/url]
    PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40701&r=php3[/url]
    Daylight Savings: [url]http://bugs.php.net/fix.php?id=40701&r=dst[/url]
    IIS Stability: [url]http://bugs.php.net/fix.php?id=40701&r=isapi[/url]
    Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40701&r=gnused[/url]
    Floating point limitations: [url]http://bugs.php.net/fix.php?id=40701&r=float[/url]
    No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40701&r=nozend[/url]
    MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40701&r=mysqlcfg[/url]
    michaeldaly at magma dot ca Guest

  2. Similar Questions and Discussions

    1. How do i adjust memory allocation on mac osx for Freehand MX ??
      How do i adjust memory allocation on mac osx for Freehand MX ?? Thanks James ---
    2. memory allocation problems in PHP and how to optimize?
      PHP keeps throwing out-of-memory errors on me. By default PHP only allows a script 8 megs of memory. I want to know why my script has gotten so...
    3. Mapping a session to an allocation of virtual memory
      Thank You Michael. That is what I needed. I didn't gather the output last time but now I know what to do. BTW would you know the system table(s)...
    4. Help me understand Buffer Pools and Memory Allocation
      I am running DB2 6.1 in Windows 2000 server. I have 3872 meg of RAM and 8 databases. I keep getting the following two errors: "The memory for...
    5. Private Sort Memory Allocation Problem
      Hi folks, The following is an error that is logged to the db2diag.log file whenever I run a db2look command. "Not enough memory available for...
  3. #2

    Default #40701 [Opn->Bgs]: Memory allocation error

    ID: 40701
    Updated by: [email]iliaa@php.net[/email]
    Reported By: michaeldaly at magma dot ca
    -Status: Open
    +Status: Bogus
    Bug Type: Reproducible crash
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    Based on the error it would seem that the limit is 8 megs not 512 as
    your config suggests. I suspect your configuration file is being
    ignored.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-03 02:37:12] michaeldaly at magma dot ca

    Description:
    ------------
    PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
    5.0.27. XP Pro SP2+all current updates.

    After editing about 15-20 pages in my Wiki, PHP eventually generates an
    error:
    PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
    393216 bytes)

    The error occurs in several php programs, though MessagesEn.php is the
    most common. The amount of memory allocated or attempted to allocate
    varies.

    PHP.ini currently has:
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 512M

    Computer has 2GB RAM and is not near its limit in paging etc.

    It sounds similar to a bug that was reported as fixed in 5.2.0.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    iliaa@php.net Guest

  4. #3

    Default #40701 [Bgs->Opn]: Memory allocation error

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    Reported By: michaeldaly at magma dot ca
    -Status: Bogus
    +Status: Open
    Bug Type: Reproducible crash
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    PHP responds to other parameters in the PHP.ini file (e.g.
    display_errors = Off/On) so it is being found and used.

    As I stated in my report "The amount of memory allocated or attempted
    to allocate varies.". I wasn't clear - I have seen this bug occur with
    allocated reported at just over 1MB to just over 8MB and more often at
    lower levels - the specific, most recent, error message I showed is one
    of the larger values I've seen.

    Please reconsider this bug.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-03 15:50:08] [email]iliaa@php.net[/email]

    Based on the error it would seem that the limit is 8 megs not 512 as
    your config suggests. I suspect your configuration file is being
    ignored.

    ------------------------------------------------------------------------

    [2007-03-03 02:37:12] michaeldaly at magma dot ca

    Description:
    ------------
    PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
    5.0.27. XP Pro SP2+all current updates.

    After editing about 15-20 pages in my Wiki, PHP eventually generates an
    error:
    PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
    393216 bytes)

    The error occurs in several php programs, though MessagesEn.php is the
    most common. The amount of memory allocated or attempted to allocate
    varies.

    PHP.ini currently has:
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 512M

    Computer has 2GB RAM and is not near its limit in paging etc.

    It sounds similar to a bug that was reported as fixed in 5.2.0.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    michaeldaly at magma dot ca Guest

  5. #4

    Default #40701 [Opn]: Memory allocation error

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    Reported By: michaeldaly at magma dot ca
    Status: Open
    Bug Type: Reproducible crash
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    Further note on memory allocations: here are the three latest failures
    and the programs in which they occured; the top one being the most
    recent and the bottom the oldest.

    (allocated 1835008) (tried to allocate 98304 bytes) Parser.php
    (allocated 2883584) (tried to allocate 24576 bytes) Language.php
    (allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-03 17:18:56] michaeldaly at magma dot ca

    PHP responds to other parameters in the PHP.ini file (e.g.
    display_errors = Off/On) so it is being found and used.

    As I stated in my report "The amount of memory allocated or attempted
    to allocate varies.". I wasn't clear - I have seen this bug occur with
    allocated reported at just over 1MB to just over 8MB and more often at
    lower levels - the specific, most recent, error message I showed is one
    of the larger values I've seen.

    Please reconsider this bug.

    ------------------------------------------------------------------------

    [2007-03-03 15:50:08] [email]iliaa@php.net[/email]

    Based on the error it would seem that the limit is 8 megs not 512 as
    your config suggests. I suspect your configuration file is being
    ignored.

    ------------------------------------------------------------------------

    [2007-03-03 02:37:12] michaeldaly at magma dot ca

    Description:
    ------------
    PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
    5.0.27. XP Pro SP2+all current updates.

    After editing about 15-20 pages in my Wiki, PHP eventually generates an
    error:
    PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
    393216 bytes)

    The error occurs in several php programs, though MessagesEn.php is the
    most common. The amount of memory allocated or attempted to allocate
    varies.

    PHP.ini currently has:
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 512M

    Computer has 2GB RAM and is not near its limit in paging etc.

    It sounds similar to a bug that was reported as fixed in 5.2.0.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    michaeldaly at magma dot ca Guest

  6. #5

    Default #40701 [Opn->Fbk]: Memory allocation error

    ID: 40701
    Updated by: [email]iliaa@php.net[/email]
    Reported By: michaeldaly at magma dot ca
    -Status: Open
    +Status: Feedback
    Bug Type: Reproducible crash
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    What memory limit value phpinfo() show?


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-04 01:31:59] michaeldaly at magma dot ca

    Further note on memory allocations: here are the three latest failures
    and the programs in which they occured; the top one being the most
    recent and the bottom the oldest.

    (allocated 1835008) (tried to allocate 98304 bytes) Parser.php
    (allocated 2883584) (tried to allocate 24576 bytes) Language.php
    (allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php

    ------------------------------------------------------------------------

    [2007-03-03 17:18:56] michaeldaly at magma dot ca

    PHP responds to other parameters in the PHP.ini file (e.g.
    display_errors = Off/On) so it is being found and used.

    As I stated in my report "The amount of memory allocated or attempted
    to allocate varies.". I wasn't clear - I have seen this bug occur with
    allocated reported at just over 1MB to just over 8MB and more often at
    lower levels - the specific, most recent, error message I showed is one
    of the larger values I've seen.

    Please reconsider this bug.

    ------------------------------------------------------------------------

    [2007-03-03 15:50:08] [email]iliaa@php.net[/email]

    Based on the error it would seem that the limit is 8 megs not 512 as
    your config suggests. I suspect your configuration file is being
    ignored.

    ------------------------------------------------------------------------

    [2007-03-03 02:37:12] michaeldaly at magma dot ca

    Description:
    ------------
    PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
    5.0.27. XP Pro SP2+all current updates.

    After editing about 15-20 pages in my Wiki, PHP eventually generates an
    error:
    PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
    393216 bytes)

    The error occurs in several php programs, though MessagesEn.php is the
    most common. The amount of memory allocated or attempted to allocate
    varies.

    PHP.ini currently has:
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 512M

    Computer has 2GB RAM and is not near its limit in paging etc.

    It sounds similar to a bug that was reported as fixed in 5.2.0.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    iliaa@php.net Guest

  7. #6

    Default #40701 [Fbk->Opn]: Memory allocation error

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    Reported By: michaeldaly at magma dot ca
    -Status: Feedback
    +Status: Open
    Bug Type: Reproducible crash
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    phpinfo shows memory_limit 512M.

    BTW this coincides with an Apache error of:
    Parent: child process exited with status 3221225477 -- Restarting.
    And -access violation (hex of 3221225477 is 0xC0000005) according to a
    post on a web site I found.

    This error with php apparently has a long history and comes and goes by
    mixing and matching different versions of Apache and PHP. I don't know
    if this adds any useful information, but it sounds like one of those
    nasty problems that is hard to debug and fix.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-04 17:23:43] [email]iliaa@php.net[/email]

    What memory limit value phpinfo() show?

    ------------------------------------------------------------------------

    [2007-03-04 01:31:59] michaeldaly at magma dot ca

    Further note on memory allocations: here are the three latest failures
    and the programs in which they occured; the top one being the most
    recent and the bottom the oldest.

    (allocated 1835008) (tried to allocate 98304 bytes) Parser.php
    (allocated 2883584) (tried to allocate 24576 bytes) Language.php
    (allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php

    ------------------------------------------------------------------------

    [2007-03-03 17:18:56] michaeldaly at magma dot ca

    PHP responds to other parameters in the PHP.ini file (e.g.
    display_errors = Off/On) so it is being found and used.

    As I stated in my report "The amount of memory allocated or attempted
    to allocate varies.". I wasn't clear - I have seen this bug occur with
    allocated reported at just over 1MB to just over 8MB and more often at
    lower levels - the specific, most recent, error message I showed is one
    of the larger values I've seen.

    Please reconsider this bug.

    ------------------------------------------------------------------------

    [2007-03-03 15:50:08] [email]iliaa@php.net[/email]

    Based on the error it would seem that the limit is 8 megs not 512 as
    your config suggests. I suspect your configuration file is being
    ignored.

    ------------------------------------------------------------------------

    [2007-03-03 02:37:12] michaeldaly at magma dot ca

    Description:
    ------------
    PHP 5.2.2-dev (2007-02-28-1530 snap) Apache 2.2.4 Mediawiki 1.9.2 MySQL
    5.0.27. XP Pro SP2+all current updates.

    After editing about 15-20 pages in my Wiki, PHP eventually generates an
    error:
    PHP Fatal error: Out of memory (allocated 8388608) (tried to allocate
    393216 bytes)

    The error occurs in several php programs, though MessagesEn.php is the
    most common. The amount of memory allocated or attempted to allocate
    varies.

    PHP.ini currently has:
    max_execution_time = 30
    max_input_time = 60
    memory_limit = 512M

    Computer has 2GB RAM and is not near its limit in paging etc.

    It sounds similar to a bug that was reported as fixed in 5.2.0.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    michaeldaly at magma dot ca Guest

  8. #7

    Default #40701 [Opn]: Memory allocation error

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    Reported By: michaeldaly at magma dot ca
    Status: Open
    Bug Type: Reproducible crash
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    Additional thought - may be unrelated.

    On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
    had another, possibly related.

    There was a frequent bug that I fixed with Win32DisableAcceptEx in
    httpd.conf. This then introduced a memory allocation bug in Apache.
    Apparently, that situation was relatively common on Windows machines
    with not a lot of RAM - mine was 512MB.

    With current server, I have 2GB Ram and the Apache allocation bug
    hasn't shown up. However, now PHP has allocation errors. Is it
    possible one was "hiding" the other? Is it possible the two situations
    are related?

    I only mention this in the hope it might twig one of you PHP wizards.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-04 17:40:36] michaeldaly at magma dot ca

    phpinfo shows memory_limit 512M.

    BTW this coincides with an Apache error of:
    Parent: child process exited with status 3221225477 -- Restarting.
    And -access violation (hex of 3221225477 is 0xC0000005) according to a
    post on a web site I found.

    This error with php apparently has a long history and comes and goes by
    mixing and matching different versions of Apache and PHP. I don't know
    if this adds any useful information, but it sounds like one of those
    nasty problems that is hard to debug and fix.

    ------------------------------------------------------------------------

    [2007-03-04 17:23:43] [email]iliaa@php.net[/email]

    What memory limit value phpinfo() show?

    ------------------------------------------------------------------------

    [2007-03-04 01:31:59] michaeldaly at magma dot ca

    Further note on memory allocations: here are the three latest failures
    and the programs in which they occured; the top one being the most
    recent and the bottom the oldest.

    (allocated 1835008) (tried to allocate 98304 bytes) Parser.php
    (allocated 2883584) (tried to allocate 24576 bytes) Language.php
    (allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php

    ------------------------------------------------------------------------

    [2007-03-03 17:18:56] michaeldaly at magma dot ca

    PHP responds to other parameters in the PHP.ini file (e.g.
    display_errors = Off/On) so it is being found and used.

    As I stated in my report "The amount of memory allocated or attempted
    to allocate varies.". I wasn't clear - I have seen this bug occur with
    allocated reported at just over 1MB to just over 8MB and more often at
    lower levels - the specific, most recent, error message I showed is one
    of the larger values I've seen.

    Please reconsider this bug.

    ------------------------------------------------------------------------

    [2007-03-03 15:50:08] [email]iliaa@php.net[/email]

    Based on the error it would seem that the limit is 8 megs not 512 as
    your config suggests. I suspect your configuration file is being
    ignored.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    michaeldaly at magma dot ca Guest

  9. #8

    Default #40701 [Opn->Fbk]: Memory allocation error

    ID: 40701
    Updated by: [email]tony2001@php.net[/email]
    Reported By: michaeldaly at magma dot ca
    -Status: Open
    +Status: Feedback
    -Bug Type: Reproducible crash
    +Bug Type: Unknown/Other Function
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    Make sure you didn't set the memory limit in any other way (windows
    registry, httpd.conf, htaccess etc.).
    If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
    trust PHP.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-04 20:21:23] michaeldaly at magma dot ca

    Additional thought - may be unrelated.

    On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
    had another, possibly related.

    There was a frequent bug that I fixed with Win32DisableAcceptEx in
    httpd.conf. This then introduced a memory allocation bug in Apache.
    Apparently, that situation was relatively common on Windows machines
    with not a lot of RAM - mine was 512MB.

    With current server, I have 2GB Ram and the Apache allocation bug
    hasn't shown up. However, now PHP has allocation errors. Is it
    possible one was "hiding" the other? Is it possible the two situations
    are related?

    I only mention this in the hope it might twig one of you PHP wizards.

    ------------------------------------------------------------------------

    [2007-03-04 17:40:36] michaeldaly at magma dot ca

    phpinfo shows memory_limit 512M.

    BTW this coincides with an Apache error of:
    Parent: child process exited with status 3221225477 -- Restarting.
    And -access violation (hex of 3221225477 is 0xC0000005) according to a
    post on a web site I found.

    This error with php apparently has a long history and comes and goes by
    mixing and matching different versions of Apache and PHP. I don't know
    if this adds any useful information, but it sounds like one of those
    nasty problems that is hard to debug and fix.

    ------------------------------------------------------------------------

    [2007-03-04 17:23:43] [email]iliaa@php.net[/email]

    What memory limit value phpinfo() show?

    ------------------------------------------------------------------------

    [2007-03-04 01:31:59] michaeldaly at magma dot ca

    Further note on memory allocations: here are the three latest failures
    and the programs in which they occured; the top one being the most
    recent and the bottom the oldest.

    (allocated 1835008) (tried to allocate 98304 bytes) Parser.php
    (allocated 2883584) (tried to allocate 24576 bytes) Language.php
    (allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php

    ------------------------------------------------------------------------

    [2007-03-03 17:18:56] michaeldaly at magma dot ca

    PHP responds to other parameters in the PHP.ini file (e.g.
    display_errors = Off/On) so it is being found and used.

    As I stated in my report "The amount of memory allocated or attempted
    to allocate varies.". I wasn't clear - I have seen this bug occur with
    allocated reported at just over 1MB to just over 8MB and more often at
    lower levels - the specific, most recent, error message I showed is one
    of the larger values I've seen.

    Please reconsider this bug.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    tony2001@php.net Guest

  10. #9

    Default #40701 [Fbk->Opn]: Memory allocation error

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    Reported By: michaeldaly at magma dot ca
    -Status: Feedback
    +Status: Open
    Bug Type: Unknown/Other Function
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    I can find no other mechanism for setting a memory limit.

    PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting. This is reported in phpinfo.php.

    This allocation error is occurring at many different allocation levels.
    For example, the following occurred yesterday. The first column is the
    allocated amount, the second is the amount attempted and the third is
    the number of times it occurred.

    Allocated Add Freq
    1048576 6144 1
    1835008 98304 2
    2359296 98304 2
    2883584 24576 3
    3407872 24576 2
    3670016 24576 2
    4456448 6144 1
    5242880 393216 1
    5505024 98304 1
    5767168 1572864 3
    5767168 98304 1
    6029312 393216 1
    6291456 1572864 2
    6291456 98304 1
    6553600 1572864 1
    6553600 24576 1
    6553600 393216 8
    6815744 393216 4
    7077888 1572864 11
    7340032 1572864 5
    7602176 1572864 1
    7602176 393216 1
    786432 24576 4
    786432 6144 3
    9175040 1572864 2

    All these values are well below the 512MB limit.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-05 10:02:55] [email]tony2001@php.net[/email]

    Make sure you didn't set the memory limit in any other way (windows
    registry, httpd.conf, htaccess etc.).
    If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
    trust PHP.

    ------------------------------------------------------------------------

    [2007-03-04 20:21:23] michaeldaly at magma dot ca

    Additional thought - may be unrelated.

    On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
    had another, possibly related.

    There was a frequent bug that I fixed with Win32DisableAcceptEx in
    httpd.conf. This then introduced a memory allocation bug in Apache.
    Apparently, that situation was relatively common on Windows machines
    with not a lot of RAM - mine was 512MB.

    With current server, I have 2GB Ram and the Apache allocation bug
    hasn't shown up. However, now PHP has allocation errors. Is it
    possible one was "hiding" the other? Is it possible the two situations
    are related?

    I only mention this in the hope it might twig one of you PHP wizards.

    ------------------------------------------------------------------------

    [2007-03-04 17:40:36] michaeldaly at magma dot ca

    phpinfo shows memory_limit 512M.

    BTW this coincides with an Apache error of:
    Parent: child process exited with status 3221225477 -- Restarting.
    And -access violation (hex of 3221225477 is 0xC0000005) according to a
    post on a web site I found.

    This error with php apparently has a long history and comes and goes by
    mixing and matching different versions of Apache and PHP. I don't know
    if this adds any useful information, but it sounds like one of those
    nasty problems that is hard to debug and fix.

    ------------------------------------------------------------------------

    [2007-03-04 17:23:43] [email]iliaa@php.net[/email]

    What memory limit value phpinfo() show?

    ------------------------------------------------------------------------

    [2007-03-04 01:31:59] michaeldaly at magma dot ca

    Further note on memory allocations: here are the three latest failures
    and the programs in which they occured; the top one being the most
    recent and the bottom the oldest.

    (allocated 1835008) (tried to allocate 98304 bytes) Parser.php
    (allocated 2883584) (tried to allocate 24576 bytes) Language.php
    (allocated 7340032) (tried to allocate 1572864 bytes) MessagesEn.php

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    michaeldaly at magma dot ca Guest

  11. #10

    Default #40701 [Opn->Fbk]: Memory allocation error

    ID: 40701
    Updated by: [email]tony2001@php.net[/email]
    Reported By: michaeldaly at magma dot ca
    -Status: Open
    +Status: Feedback
    Bug Type: Unknown/Other Function
    Operating System: Win XP Pro
    PHP Version: 5.2.1
    New Comment:

    Cannot reproduce anything like that.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-06 18:02:56] michaeldaly at magma dot ca

    I can find no other mechanism for setting a memory limit.

    PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting. This is reported in phpinfo.php.

    This allocation error is occurring at many different allocation levels.
    For example, the following occurred yesterday. The first column is the
    allocated amount, the second is the amount attempted and the third is
    the number of times it occurred.

    Allocated Add Freq
    1048576 6144 1
    1835008 98304 2
    2359296 98304 2
    2883584 24576 3
    3407872 24576 2
    3670016 24576 2
    4456448 6144 1
    5242880 393216 1
    5505024 98304 1
    5767168 1572864 3
    5767168 98304 1
    6029312 393216 1
    6291456 1572864 2
    6291456 98304 1
    6553600 1572864 1
    6553600 24576 1
    6553600 393216 8
    6815744 393216 4
    7077888 1572864 11
    7340032 1572864 5
    7602176 1572864 1
    7602176 393216 1
    786432 24576 4
    786432 6144 3
    9175040 1572864 2

    All these values are well below the 512MB limit.

    ------------------------------------------------------------------------

    [2007-03-05 10:02:55] [email]tony2001@php.net[/email]

    Make sure you didn't set the memory limit in any other way (windows
    registry, httpd.conf, htaccess etc.).
    If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
    trust PHP.

    ------------------------------------------------------------------------

    [2007-03-04 20:21:23] michaeldaly at magma dot ca

    Additional thought - may be unrelated.

    On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
    had another, possibly related.

    There was a frequent bug that I fixed with Win32DisableAcceptEx in
    httpd.conf. This then introduced a memory allocation bug in Apache.
    Apparently, that situation was relatively common on Windows machines
    with not a lot of RAM - mine was 512MB.

    With current server, I have 2GB Ram and the Apache allocation bug
    hasn't shown up. However, now PHP has allocation errors. Is it
    possible one was "hiding" the other? Is it possible the two situations
    are related?

    I only mention this in the hope it might twig one of you PHP wizards.

    ------------------------------------------------------------------------

    [2007-03-04 17:40:36] michaeldaly at magma dot ca

    phpinfo shows memory_limit 512M.

    BTW this coincides with an Apache error of:
    Parent: child process exited with status 3221225477 -- Restarting.
    And -access violation (hex of 3221225477 is 0xC0000005) according to a
    post on a web site I found.

    This error with php apparently has a long history and comes and goes by
    mixing and matching different versions of Apache and PHP. I don't know
    if this adds any useful information, but it sounds like one of those
    nasty problems that is hard to debug and fix.

    ------------------------------------------------------------------------

    [2007-03-04 17:23:43] [email]iliaa@php.net[/email]

    What memory limit value phpinfo() show?

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    tony2001@php.net Guest

  12. #11

    Default #40701 [Fbk->Opn]: Memory allocation error

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    Reported By: michaeldaly at magma dot ca
    -Status: Feedback
    +Status: Open
    Bug Type: Unknown/Other Function
    Operating System: Win XP Pro
    -PHP Version: 5.2.1
    +PHP Version: 5.2.2
    New Comment:

    Is there a way for me to capture some kind of debug information that
    can help you? I downloaded the debug files along with the latest snap
    and they were just PDB files and I don't know what to do with them.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-06 18:10:37] [email]tony2001@php.net[/email]

    Cannot reproduce anything like that.

    ------------------------------------------------------------------------

    [2007-03-06 18:02:56] michaeldaly at magma dot ca

    I can find no other mechanism for setting a memory limit.

    PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting. This is reported in phpinfo.php.

    This allocation error is occurring at many different allocation levels.
    For example, the following occurred yesterday. The first column is the
    allocated amount, the second is the amount attempted and the third is
    the number of times it occurred.

    Allocated Add Freq
    1048576 6144 1
    1835008 98304 2
    2359296 98304 2
    2883584 24576 3
    3407872 24576 2
    3670016 24576 2
    4456448 6144 1
    5242880 393216 1
    5505024 98304 1
    5767168 1572864 3
    5767168 98304 1
    6029312 393216 1
    6291456 1572864 2
    6291456 98304 1
    6553600 1572864 1
    6553600 24576 1
    6553600 393216 8
    6815744 393216 4
    7077888 1572864 11
    7340032 1572864 5
    7602176 1572864 1
    7602176 393216 1
    786432 24576 4
    786432 6144 3
    9175040 1572864 2

    All these values are well below the 512MB limit.

    ------------------------------------------------------------------------

    [2007-03-05 10:02:55] [email]tony2001@php.net[/email]

    Make sure you didn't set the memory limit in any other way (windows
    registry, httpd.conf, htaccess etc.).
    If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
    trust PHP.

    ------------------------------------------------------------------------

    [2007-03-04 20:21:23] michaeldaly at magma dot ca

    Additional thought - may be unrelated.

    On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
    had another, possibly related.

    There was a frequent bug that I fixed with Win32DisableAcceptEx in
    httpd.conf. This then introduced a memory allocation bug in Apache.
    Apparently, that situation was relatively common on Windows machines
    with not a lot of RAM - mine was 512MB.

    With current server, I have 2GB Ram and the Apache allocation bug
    hasn't shown up. However, now PHP has allocation errors. Is it
    possible one was "hiding" the other? Is it possible the two situations
    are related?

    I only mention this in the hope it might twig one of you PHP wizards.

    ------------------------------------------------------------------------

    [2007-03-04 17:40:36] michaeldaly at magma dot ca

    phpinfo shows memory_limit 512M.

    BTW this coincides with an Apache error of:
    Parent: child process exited with status 3221225477 -- Restarting.
    And -access violation (hex of 3221225477 is 0xC0000005) according to a
    post on a web site I found.

    This error with php apparently has a long history and comes and goes by
    mixing and matching different versions of Apache and PHP. I don't know
    if this adds any useful information, but it sounds like one of those
    nasty problems that is hard to debug and fix.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    michaeldaly at magma dot ca Guest

  13. #12

    Default #40701 [Opn->Fbk]: Memory allocation error

    ID: 40701
    Updated by: [email]tony2001@php.net[/email]
    Reported By: michaeldaly at magma dot ca
    -Status: Open
    +Status: Feedback
    Bug Type: Unknown/Other Function
    Operating System: Win XP Pro
    PHP Version: 5.2.2
    New Comment:
    >PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting.
    It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    8388608) (tried to allocate 393216 bytes)".
    >This is reported in phpinfo.php.
    memory_limit can be changed per-virtualhost, per-directory and
    per-script.
    Therefore phpinfo() might show you 512Mb, but the real script might use
    different value.
    >Is there a way for me to capture some kind of debug information
    >that can help you?
    Yes, please search for "memory_limit" in your scripts,.htacess and
    httpd.conf.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-06 20:54:33] michaeldaly at magma dot ca

    Is there a way for me to capture some kind of debug information that
    can help you? I downloaded the debug files along with the latest snap
    and they were just PDB files and I don't know what to do with them.

    ------------------------------------------------------------------------

    [2007-03-06 18:10:37] [email]tony2001@php.net[/email]

    Cannot reproduce anything like that.

    ------------------------------------------------------------------------

    [2007-03-06 18:02:56] michaeldaly at magma dot ca

    I can find no other mechanism for setting a memory limit.

    PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting. This is reported in phpinfo.php.

    This allocation error is occurring at many different allocation levels.
    For example, the following occurred yesterday. The first column is the
    allocated amount, the second is the amount attempted and the third is
    the number of times it occurred.

    Allocated Add Freq
    1048576 6144 1
    1835008 98304 2
    2359296 98304 2
    2883584 24576 3
    3407872 24576 2
    3670016 24576 2
    4456448 6144 1
    5242880 393216 1
    5505024 98304 1
    5767168 1572864 3
    5767168 98304 1
    6029312 393216 1
    6291456 1572864 2
    6291456 98304 1
    6553600 1572864 1
    6553600 24576 1
    6553600 393216 8
    6815744 393216 4
    7077888 1572864 11
    7340032 1572864 5
    7602176 1572864 1
    7602176 393216 1
    786432 24576 4
    786432 6144 3
    9175040 1572864 2

    All these values are well below the 512MB limit.

    ------------------------------------------------------------------------

    [2007-03-05 10:02:55] [email]tony2001@php.net[/email]

    Make sure you didn't set the memory limit in any other way (windows
    registry, httpd.conf, htaccess etc.).
    If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
    trust PHP.

    ------------------------------------------------------------------------

    [2007-03-04 20:21:23] michaeldaly at magma dot ca

    Additional thought - may be unrelated.

    On my old server (Apache 1.6.3, PHP 5.0) I never saw this problem but
    had another, possibly related.

    There was a frequent bug that I fixed with Win32DisableAcceptEx in
    httpd.conf. This then introduced a memory allocation bug in Apache.
    Apparently, that situation was relatively common on Windows machines
    with not a lot of RAM - mine was 512MB.

    With current server, I have 2GB Ram and the Apache allocation bug
    hasn't shown up. However, now PHP has allocation errors. Is it
    possible one was "hiding" the other? Is it possible the two situations
    are related?

    I only mention this in the hope it might twig one of you PHP wizards.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    tony2001@php.net Guest

  14. #13

    Default #40701 [Fbk->Opn]: Memory allocation error

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    Reported By: michaeldaly at magma dot ca
    -Status: Feedback
    +Status: Open
    Bug Type: Unknown/Other Function
    Operating System: Win XP Pro
    PHP Version: 5.2.2
    New Comment:
    > It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    > 8388608) (tried to allocate 393216 bytes)".
    It also reports from 786KB to 9.2MB, so it appears that if the problem
    is a limit set externally, that limit is floating dynamically.
    > Yes, please search for "memory_limit" in your scripts,.htacess
    > and httpd.conf.
    I searched for "memory" in the entire Apache directory tree and found
    nothing that resembles a limit. I looked through httpd.conf and
    httpd_vhosts.conf visually and can find nothing else that looks like a
    memory restriction. The only limit I can find is in PHP.ini.


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-07 09:13:06] [email]tony2001@php.net[/email]
    >PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting.
    It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    8388608) (tried to allocate 393216 bytes)".
    >This is reported in phpinfo.php.
    memory_limit can be changed per-virtualhost, per-directory and
    per-script.
    Therefore phpinfo() might show you 512Mb, but the real script might use
    different value.
    >Is there a way for me to capture some kind of debug information
    >that can help you?
    Yes, please search for "memory_limit" in your scripts,.htacess and
    httpd.conf.

    ------------------------------------------------------------------------

    [2007-03-06 20:54:33] michaeldaly at magma dot ca

    Is there a way for me to capture some kind of debug information that
    can help you? I downloaded the debug files along with the latest snap
    and they were just PDB files and I don't know what to do with them.

    ------------------------------------------------------------------------

    [2007-03-06 18:10:37] [email]tony2001@php.net[/email]

    Cannot reproduce anything like that.

    ------------------------------------------------------------------------

    [2007-03-06 18:02:56] michaeldaly at magma dot ca

    I can find no other mechanism for setting a memory limit.

    PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting. This is reported in phpinfo.php.

    This allocation error is occurring at many different allocation levels.
    For example, the following occurred yesterday. The first column is the
    allocated amount, the second is the amount attempted and the third is
    the number of times it occurred.

    Allocated Add Freq
    1048576 6144 1
    1835008 98304 2
    2359296 98304 2
    2883584 24576 3
    3407872 24576 2
    3670016 24576 2
    4456448 6144 1
    5242880 393216 1
    5505024 98304 1
    5767168 1572864 3
    5767168 98304 1
    6029312 393216 1
    6291456 1572864 2
    6291456 98304 1
    6553600 1572864 1
    6553600 24576 1
    6553600 393216 8
    6815744 393216 4
    7077888 1572864 11
    7340032 1572864 5
    7602176 1572864 1
    7602176 393216 1
    786432 24576 4
    786432 6144 3
    9175040 1572864 2

    All these values are well below the 512MB limit.

    ------------------------------------------------------------------------

    [2007-03-05 10:02:55] [email]tony2001@php.net[/email]

    Make sure you didn't set the memory limit in any other way (windows
    registry, httpd.conf, htaccess etc.).
    If PHP says your limit is set to 8Mb, I see no reason why I shouldn't
    trust PHP.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    michaeldaly at magma dot ca Guest

  15. #14

    Default #40701 [Opn]: Memory allocation error

    ID: 40701
    Updated by: [email]edink@php.net[/email]
    Reported By: michaeldaly at magma dot ca
    Status: Open
    Bug Type: Unknown/Other Function
    Operating System: Win XP Pro
    PHP Version: 5.2.2
    New Comment:

    Just out of the curiousity: what happens when you disable memory limit
    altogether?

    memory_limit=-1


    Previous Comments:
    ------------------------------------------------------------------------

    [2007-03-07 16:04:57] michaeldaly at magma dot ca
    > It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    > 8388608) (tried to allocate 393216 bytes)".
    It also reports from 786KB to 9.2MB, so it appears that if the problem
    is a limit set externally, that limit is floating dynamically.
    > Yes, please search for "memory_limit" in your scripts,.htacess
    > and httpd.conf.
    I searched for "memory" in the entire Apache directory tree and found
    nothing that resembles a limit. I looked through httpd.conf and
    httpd_vhosts.conf visually and can find nothing else that looks like a
    memory restriction. The only limit I can find is in PHP.ini.

    ------------------------------------------------------------------------

    [2007-03-07 09:13:06] [email]tony2001@php.net[/email]
    >PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting.
    It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    8388608) (tried to allocate 393216 bytes)".
    >This is reported in phpinfo.php.
    memory_limit can be changed per-virtualhost, per-directory and
    per-script.
    Therefore phpinfo() might show you 512Mb, but the real script might use
    different value.
    >Is there a way for me to capture some kind of debug information
    >that can help you?
    Yes, please search for "memory_limit" in your scripts,.htacess and
    httpd.conf.

    ------------------------------------------------------------------------

    [2007-03-06 20:54:33] michaeldaly at magma dot ca

    Is there a way for me to capture some kind of debug information that
    can help you? I downloaded the debug files along with the latest snap
    and they were just PDB files and I don't know what to do with them.

    ------------------------------------------------------------------------

    [2007-03-06 18:10:37] [email]tony2001@php.net[/email]

    Cannot reproduce anything like that.

    ------------------------------------------------------------------------

    [2007-03-06 18:02:56] michaeldaly at magma dot ca

    I can find no other mechanism for setting a memory limit.

    PHP does _not_ report 8MB - it reports 512MB as per the php.ini
    setting. This is reported in phpinfo.php.

    This allocation error is occurring at many different allocation levels.
    For example, the following occurred yesterday. The first column is the
    allocated amount, the second is the amount attempted and the third is
    the number of times it occurred.

    Allocated Add Freq
    1048576 6144 1
    1835008 98304 2
    2359296 98304 2
    2883584 24576 3
    3407872 24576 2
    3670016 24576 2
    4456448 6144 1
    5242880 393216 1
    5505024 98304 1
    5767168 1572864 3
    5767168 98304 1
    6029312 393216 1
    6291456 1572864 2
    6291456 98304 1
    6553600 1572864 1
    6553600 24576 1
    6553600 393216 8
    6815744 393216 4
    7077888 1572864 11
    7340032 1572864 5
    7602176 1572864 1
    7602176 393216 1
    786432 24576 4
    786432 6144 3
    9175040 1572864 2

    All these values are well below the 512MB limit.

    ------------------------------------------------------------------------

    The remainder of the comments for this report are too long. To view
    the rest of the comments, please view the bug report online at
    [url]http://bugs.php.net/40701[/url]

    --
    Edit this bug report at [url]http://bugs.php.net/?id=40701&edit=1[/url]
    edink@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139