php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1610 Child process dies with SIG 11 when a GET is made
Submitted: 1999-06-28 05:13 UTC Modified: 2002-06-16 08:32 UTC
From: igmar at jdimedia dot nl Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 3.0.11 OS: Redhat 6.0
Private report: No CVE-ID: None
 [1999-06-28 05:13 UTC] igmar at jdimedia dot nl
When a client does a GET, the child dies with a SIG 11

Compiled in :

MySQL
GD
TTF
IMAP

Setup does work with PHP 3.0.9

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-07 17:57 UTC] sas at cvs dot php dot net
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>

 [2002-06-16 08:32 UTC] sander@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately, PHP 3 is no longer supported. Please download
the latest version of PHP 4 from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC