Professional Web Applications Themes

#40701 [NEW]: Memory allocation error - PHP Bugs

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 ...

  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. #2

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

    ID: 40701
    Updated by: [email]iliaaphp.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

  3. #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]iliaaphp.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

  4. #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) Pr.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]iliaaphp.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. #5

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

    ID: 40701
    Updated by: [email]iliaaphp.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) Pr.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]iliaaphp.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

  6. #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]iliaaphp.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) Pr.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]iliaaphp.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

  7. #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]iliaaphp.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) Pr.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]iliaaphp.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

  8. #8

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

    ID: 40701
    Updated by: [email]tony2001php.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]iliaaphp.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) Pr.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

  9. #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]tony2001php.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]iliaaphp.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) Pr.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

  10. #10

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

    ID: 40701
    Updated by: [email]tony2001php.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]tony2001php.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]iliaaphp.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

  11. #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]tony2001php.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]tony2001php.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

  12. #12

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

    ID: 40701
    Updated by: [email]tony2001php.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]tony2001php.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]tony2001php.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

  13. #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]tony2001php.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]tony2001php.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]tony2001php.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

  14. #14

    Default #40701 [Opn]: Memory allocation error

    ID: 40701
    Updated by: [email]edinkphp.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]tony2001php.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]tony2001php.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

  15. #15

    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: Unknown/Other Function
    Operating System: Win XP Pro
    PHP Version: 5.2.2
    New Comment:

    With memory_limit = -1 there is no change.


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

    [2007-03-12 03:40:34] net

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

    memory_limit=-1

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

    [2007-03-07 16:04:57] michaeldaly at magma dot ca
     

    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.
     

    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] net
     
    setting.
    It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    8388608) (tried to allocate 393216 bytes)".
     
    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.
     
    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] net

    Cannot reproduce anything like that.

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

    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
    http://bugs.php.net/40701

    --
    Edit this bug report at http://bugs.php.net/?id=40701&edit=1
    michaeldaly Guest

  16. #16

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

    ID: 40701
    Updated by: net
    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:

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    A fix for memory manager was applied to CVS recently, it might solve
    this issue.


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

    [2007-03-13 04:55:55] michaeldaly at magma dot ca

    With memory_limit = -1 there is no change.

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

    [2007-03-12 03:40:34] net

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

    memory_limit=-1

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

    [2007-03-07 16:04:57] michaeldaly at magma dot ca
     

    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.
     

    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] net
     
    setting.
    It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    8388608) (tried to allocate 393216 bytes)".
     
    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.
     
    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.

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

    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
    http://bugs.php.net/40701

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

  17. #17

    Default #40701 [Fbk->Opn]: no change

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    -Summary: Memory allocation error
    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:

    That version has no effect. However, I'm not so sure it's any
    different than the version I started with - Feb 28 build that included
    the early Feb memory fix.


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

    [2007-03-14 11:31:32] net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    A fix for memory manager was applied to CVS recently, it might solve
    this issue.

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

    [2007-03-13 04:55:55] michaeldaly at magma dot ca

    With memory_limit = -1 there is no change.

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

    [2007-03-12 03:40:34] net

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

    memory_limit=-1

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

    [2007-03-07 16:04:57] michaeldaly at magma dot ca
     

    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.
     

    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] net
     
    setting.
    It _does_ report 8Mb - "PHP Fatal error: Out of memory (allocated
    8388608) (tried to allocate 393216 bytes)".
     
    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.
     
    Yes, please search for "memory_limit" in your scripts,.htacess and
    httpd.conf.

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

    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
    http://bugs.php.net/40701

    --
    Edit this bug report at http://bugs.php.net/?id=40701&edit=1
    michaeldaly Guest

  18. #18

    Default #40701 [Com]: no change

    ID: 40701
    Comment by: edwin at aucs dot org
    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:

    I think I am getting the same problem with
    php5.2-win32-200703210430.zip

    I am getting "PHP Fatal error: Out of memory (allocated <random size>)
    (tried to allocate <random size> bytes)" after the server started for a
    while.

    May be this is something related to memory leakage with mysql, as in
    Listing 7 of
    http://www.ibm.com/developerworks/opensource/library/os-php-v521/ ?


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

    [2007-03-16 16:49:25] michaeldaly at magma dot ca

    That version has no effect. However, I'm not so sure it's any
    different than the version I started with - Feb 28 build that included
    the early Feb memory fix.

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

    [2007-03-14 11:31:32] net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    A fix for memory manager was applied to CVS recently, it might solve
    this issue.

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

    [2007-03-13 04:55:55] michaeldaly at magma dot ca

    With memory_limit = -1 there is no change.

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

    [2007-03-12 03:40:34] net

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

    memory_limit=-1

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

    [2007-03-07 16:04:57] michaeldaly at magma dot ca
     

    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.
     

    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.

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

    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
    http://bugs.php.net/40701

    --
    Edit this bug report at http://bugs.php.net/?id=40701&edit=1
    edwin Guest

  19. #19

    Default #40701 [Opn]: Interesting observation

    ID: 40701
    User updated by: michaeldaly at magma dot ca
    -Summary: no change
    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:

    While testing a new php program, I inadvertently coded an infinite
    loop. While running it, the thing failed at over 400MB with an
    allocation error.

    This shows the config is capable of using lots of memory and the
    repeated failures at 0.7MB to 9MB seem anomalous.


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

    [2007-03-21 15:55:02] edwin at aucs dot org

    I think I am getting the same problem with
    php5.2-win32-200703210430.zip

    I am getting "PHP Fatal error: Out of memory (allocated <random size>)
    (tried to allocate <random size> bytes)" after the server started for a
    while.

    May be this is something related to memory leakage with mysql, as in
    Listing 7 of
    http://www.ibm.com/developerworks/opensource/library/os-php-v521/ ?

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

    [2007-03-16 16:49:25] michaeldaly at magma dot ca

    That version has no effect. However, I'm not so sure it's any
    different than the version I started with - Feb 28 build that included
    the early Feb memory fix.

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

    [2007-03-14 11:31:32] net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    A fix for memory manager was applied to CVS recently, it might solve
    this issue.

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

    [2007-03-13 04:55:55] michaeldaly at magma dot ca

    With memory_limit = -1 there is no change.

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

    [2007-03-12 03:40:34] net

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

    memory_limit=-1

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

    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
    http://bugs.php.net/40701

    --
    Edit this bug report at http://bugs.php.net/?id=40701&edit=1
    michaeldaly Guest

  20. #20

    Default #40701 [Com]: Interesting observation

    ID: 40701
    Comment by: priyadi at priyadi dot net
    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:

    this occurs to me too with PHP 5.2.1 and mediawiki 1.9.3. in my
    case, the error message stays constant: "Fatal error: Out of memory
    (allocated 5242880) (tried to allocate 1245184 bytes) in
    *****/web/languages/messages/MessagesEn.php on line 2106.

    this is on RHEL 3. memory_limit is set to 128M and PHP is using CGI
    API, so I don't think this problem is related to apache.

    this works in my development machine though (gentoo, same PHP
    version running as apache module).


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

    [2007-03-25 20:19:42] michaeldaly at magma dot ca

    While testing a new php program, I inadvertently coded an infinite
    loop. While running it, the thing failed at over 400MB with an
    allocation error.

    This shows the config is capable of using lots of memory and the
    repeated failures at 0.7MB to 9MB seem anomalous.

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

    [2007-03-21 15:55:02] edwin at aucs dot org

    I think I am getting the same problem with
    php5.2-win32-200703210430.zip

    I am getting "PHP Fatal error: Out of memory (allocated <random size>)
    (tried to allocate <random size> bytes)" after the server started for a
    while.

    May be this is something related to memory leakage with mysql, as in
    Listing 7 of
    http://www.ibm.com/developerworks/opensource/library/os-php-v521/ ?

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

    [2007-03-16 16:49:25] michaeldaly at magma dot ca

    That version has no effect. However, I'm not so sure it's any
    different than the version I started with - Feb 28 build that included
    the early Feb memory fix.

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

    [2007-03-14 11:31:32] net

    Please try using this CVS snapshot:

    http://snaps.php.net/php5.2-latest.tar.gz

    For Windows:

    http://snaps.php.net/win32/php5.2-win32-latest.zip

    A fix for memory manager was applied to CVS recently, it might solve
    this issue.

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

    [2007-03-13 04:55:55] michaeldaly at magma dot ca

    With memory_limit = -1 there is no change.

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

    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
    http://bugs.php.net/40701

    --
    Edit this bug report at http://bugs.php.net/?id=40701&edit=1
    priyadi Guest

Page 1 of 2 12 LastLast

Similar Threads

  1. How do i adjust memory allocation on mac osx for Freehand MX ??
    By James Noon in forum Macromedia Freehand
    Replies: 2
    Last Post: December 18th, 09:14 PM
  2. memory allocation problems in PHP and how to optimize?
    By lawrence in forum PHP Development
    Replies: 2
    Last Post: October 16th, 04:24 AM
  3. Mapping a session to an allocation of virtual memory
    By Zev Berezin in forum Informix
    Replies: 1
    Last Post: August 3rd, 11:06 AM
  4. Replies: 2
    Last Post: July 25th, 01:27 PM
  5. Private Sort Memory Allocation Problem
    By Tim.D in forum IBM DB2
    Replies: 1
    Last Post: June 28th, 03:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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