Bug #1610 Updated: Child process dies with SIG 11 when a GET is made
| From: | Bug Database | Date: | Wed, 07 Jul 1999 21:57:02 +0000 |
| Subject: | Bug #1610 Updated: Child process dies with SIG 11 when a GET is made | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8187@lists.php.net to get a copy of this message | ||
ID: 1610
Updated by: sas
Reported By: igmar@jdimedia.nl
Status: Open
Bug Type: Reproduceable crash
Assigned To:
Comments:
User reported additional data:
#0 __libc_free (mem=0x1) at malloc.c:2914
#1 0x814bf2a in my_no_flags_free ()
#2 0x8093ab7 in list_entry_destructor (ptr=0x82101e0) at list.c:99
#3 0x808e682 in _php3_hash_del_key_or_index (ht=0x81cc0e0, arKey=0x0,
nKeyLength=0, h=1, flag=1) at php3_hash.c:639
#4 0x8093a4c in php3_list_do_delete (list=0x81cc0e0, id=1) at list.c:75
#5 0x80af90d in php3_mysql_close (ht=0x820f1f8, return_value=0x81c9df4,
list=0x81cc0e0, plist=0x81cc0a0) at functions/mysql.c:692
#6 0x80c3f54 in phpparse () at control_structures_inline.h:934
#7 0x808d848 in php3_parse (yyin=0x8202138) at main.c:1553
#8 0x808da10 in apache_php3_module_main (r=0x81fe2c4, fd=25,
display_source_mode=0, preprocessed=0) at main.c:1934
#9 0x808b0c9 in send_php3 ()
#10 0x808b12a in send_parsed_php3 ()
#11 0x80d0493 in ap_invoke_handler ()
#12 0x80e31b9 in process_request_internal ()
#13 0x80e35c8 in ap_internal_redirect ()
#14 0x807908f in handle_dir ()
#15 0x80d0493 in ap_invoke_handler ()
#16 0x80e31b9 in process_request_internal ()
#17 0x80e321c in ap_process_request ()
#18 0x80dafae in child_main ()
#19 0x80db13c in make_child ()
#20 0x80db299 in startup_children ()
#21 0x80db8b6 in standalone_main ()
#22 0x80dc023 in main ()
#23 0x40134cb3 in __libc_start_main (main=0x80dbcfc <main>, argc=2,
argc=0xbffffd84, init=0x80638f8 <_init>, fini=0x814e89c <_fini>,
rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffd7c)
at ../sysdeps/generic/libc-start.c:78
logger.phtml
<?php
Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the
+past
Header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); //
always
+modified
Header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
Header("Pragma: no-cache"); // HTTP/1.0
include ("/home/httpd/html/func_connect.papp");
$connection = connect();
$result = mysql_select_db ("jdistats", $connection);
$domain = gethostbyaddr ($REMOTE_ADDR);
include ('/home/httpd/html/func_strip_period.papp');
$dates = date("Ymd");
$times = date("His");
$HTTP_USER_AGENT2 = strip_period($HTTP_USER_AGENT);
// if (! ($domain == "localhost" or strpos($domain, "jdimedia.nl")))
// {
$result = mysql_query ("INSERT INTO log (IP, DOMAIN, DATE, TIME, URL,
+CLIENT, IDENT) VALUES(\"$REMOTE_ADDR\", \"$domain\", \"$dates\",
\"$times\",
+\"$SCRIPT_NAME\", \"$HTTP_USER_AGENT2\", \"$ident\")");
// }
echo mysql_error();
mysql_close();
printf ("<script type=\"text/javascript\"
language=\"JavaScript\">\n");
printf ("<!--\n");
printf ("document.write(\"<img src=\\\"/logger\");\n");
$timese = rawurlencode ($times);
print
+("document.write(\"/addreferrer.phtml?ip=$REMOTE_ADDR&time=$timese&date=$dates&
+referrer=\");\n");
printf ("document.write(escape(document.referrer));\n");
printf ("document.write(\"\\\" align=right
alt=\\\"\\\">\");\n");
printf ("// -->");
printf ("</script>");
?>
index.phtml
<?php
include ('logger/logger.phtml');
?>
<HTML>
<HEAD>
<TITLE>JDI Media Solutions</TITLE>
</HEAD>
<BODY BGCOLOR=#FFFFFF>
<P ALIGN=CENTER>
<A HREF="index2.phtml">
<IMG BORDER=0 HEIGHT=80% SRC="pictures/logo.jpg">
</A>
</P>
<HR>
<P ALIGN=CENTER>
This site makes extensive use of Cascading Style Sheets. Please
use a browser which support this feature.<BR>
Click on the logo to enter.
</P>
</BODY>
</HTML>
Full Bug description available at: http://bugs.php.net/?id=1610