php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12547 Segmentation fault
Submitted: 2001-08-03 06:52 UTC Modified: 2001-08-03 11:02 UTC
From: moti at lti dot co dot il Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: Mandrake 7.1 (2.4.3)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: moti at lti dot co dot il
New email:
PHP Version: OS:

 

 [2001-08-03 06:52 UTC] moti at lti dot co dot il
I'm trying to install php with apache 1.3.20
but it Segmentation faults on a test script:

<?
if (!isset($code)) {
        exit("No code submitted.");
}
?>
<html>
<body>
Executing:<br>
<?
highlight_string("<?php \n$code\n?>");
?>
<hr width="40%">
<?
eval($code);
?>
</body>
</html>

Config:

./configure  --enable-debug --with-oci8=/db01/app/oracle/product/8.1.7/  --with-apache=../apache_1.3.20 --enable-track-vars

BackTrace:

GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-mandrake-linux"...
(gdb)
(gdb) gdb  httpd
Undefined command: "gdb".  Try "help".
(gdb)
Undefined command: "gdb".  Try "help".
(gdb) run -X -f /usr/local/apache/conf/httpd.test
Starting program: /usr/local/src/apache_1.3.20/src/httpd -X -f /usr/local/apache
/conf/httpd.test

Program received signal SIGSEGV, Segmentation fault.
0x80846e3 in php_treat_data (arg=1, str=0x0, destArray=0x0)
    at php_variables.c:257
257                     if (c_var && *c_var) {
(gdb) bt
#0  0x80846e3 in php_treat_data (arg=1, str=0x0, destArray=0x0)
    at php_variables.c:257
#1  0x807f4a9 in php_hash_environment () at main.c:1038
#2  0x807eb00 in php_request_startup () at main.c:621
#3  0x8117749 in apache_php_module_main (r=0x8236c34, display_source_mode=0)
    at sapi_apache.c:66
#4  0x807c901 in send_php (r=0x8236c34, display_source_mode=0, filename=0x0)
    at mod_php4.c:536
#5  0x807c943 in send_parsed_php (r=0x8236c34) at mod_php4.c:547
#6  0x8146fc9 in ap_invoke_handler ()
#7  0x815baaf in process_request_internal ()
#8  0x815bb1a in ap_process_request ()
#9  0x81529f6 in child_main ()
#10 0x8152bb1 in make_child ()
#11 0x8152d2c in startup_children ()
#12 0x815339c in standalone_main ()
#13 0x8153bcc in main ()
#14 0x40625c7e in __libc_start_main () at ../sysdeps/generic/libc-start.c:122



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-03 09:05 UTC] andy@php.net
unable to reproduce with latest CVS, please try it with the latest
version at http://snaps.php.net
 [2001-08-03 10:52 UTC] moti at lti dot co dot il
Works find with php4-200108030435 (crash doesn't happen)
When is the next stable version is expected?


 [2001-08-03 10:52 UTC] moti at lti dot co dot il
fine even
 [2001-08-03 10:59 UTC] andy@php.net
status -> closed
 [2001-08-03 11:01 UTC] moti at lti dot co dot il
fine even
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 16:01:30 2025 UTC