#81 Segementation fault

open
nobody
None
5
2004-02-26
2004-02-26
Anonymous
No

Until now, the mmcache worked fine on the servers we
tested it - but with one exception:

The cache forces apache to quit with a segmentation
fault when executing the following php code:

$GLOBALS[]=$dbgmessage;

(I know, one should NOT put keyless data into
$GLOBALS as does not make much sense. But at least it
was not my script...)

With the cache disabled, the above code works and
does not force apache to die.

Replacing the above code with an
array_push($GLOBALS,$dbgmessage);
(i. e. the same functionality as the above code) also
works even if the cache is enabled.

So, we could circumvent the segementation fault by
replacing the regarding code line. But it still seems to be
a bug in mmcache.

Best regards
Jan Steemann

Settings:
Caching and optimizer enabled
shm_and_disk

Environment:
MMCache 2.4.6
PHP 4.2.2
No threading
Apache 1.3.27
Linux 2.4.18

Discussion

  • David
    David
    2004-03-18

    Logged In: YES
    user_id=851701

    Does it work with MMCache on but not the Optimizer?