Re: Bug #14848 Updated: PHP crash on exit.
At 16:11 1/7/2002 +0000, daniele@libertyline.com wrote:
ID: 14848
User updated by: daniele@libertyline.com
Reported By: daniele@libertyline.com
Status: Open
Bug Type: Reproducible crash
Operating System: Linux
The crash is created due to shell limits, as this creates 157/159M of memory in an instant.
$ ulimit -d
393216
$ php -d max_execution_time=900 -q -e ./crashtest.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/1999/xhtml">
<html>
<head>
<title>Untitled</title>
</head>
<body>
OK!
</body>
</html>
$ ulimit -d 65536
$ php -d max_execution_time=900 -q -e ./crashtest.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/1999/xhtml">
<html>
<head>
<title>Untitled</title>
</head>
<body>
FATAL: emalloc(): Unable to allocate 32 bytes
Segmentation fault (core dumped)
In a web environment it also kept 'unwinding' CPU time slowly - like 30 secs and only freed
5 megs:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
18974 nobody 18 0 152M 157M sleep 1:25 0.00% 0.00% httpd
Only after a SIGHUP on Apache, the memory will be freed.
Tested with CVS/php4-200201050300.
PHP Version: 4.1.1
New Comment:
I have a testcase:
test.php:
<?
@$data = implode("",file("export.xml"));
$parser = xml_parser_create();
xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1);
xml_parse_into_struct($parser,$data,$values,$tags);
xml_parser_free($parser);
echo "OK!\n";
?>
The export.xml file is available on
http://www.libertyline.com/download/export.xml.bz2 (the compressed
version is only 3213 bytes)
Met vriendelijke groeten / With kind regards,
IDG.nl
Melvyn Sopacua
WebMaster
Please note:
Mail from the following domains is currently not read
due to too much 'interesting' money scheme promotions:
hotmail.com
mail.com
learnworldwide.net
bricsnet.com
talk21.net
qvpartners.com
k2.com.br
m/@[0-9]+\./
Thread (6 messages)