php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15588 Segmentaion fault
Submitted: 2002-02-16 16:07 UTC Modified: 2002-06-13 17:45 UTC
From: abdusamad at poornam dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.1.0 OS: Linux Redhat 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: abdusamad at poornam dot com
New email:
PHP Version: OS:

 

 [2002-02-16 16:07 UTC] abdusamad at poornam dot com
I installed PHP, but every time I load a document, I get 
the message 'Document Contains No Data'. I tried to gdb 
the httpd then I got the following errors. the Apache 
error log shows '[Sun Feb 17 02:44:15 2002] [error] Cannot 
remove module mod_ssl.c: not found in module list
[Sun Feb 17 02:44:16 2002] [warn] pid file 
/usr/local/cp/apache/logs/httpd.pid overwritten -- Unclean 
shutdown of previous Apache run?'

Could you please help me.

Program received signal SIGSEGV, Segmentation fault.
0x403297e3 in php_treat_data (arg=1, str=0x0, 
destArray=0x0) at php_variables.c:257
257                     if (c_var && *c_var) {
(gdb) bt
#0  0x403297e3 in php_treat_data (arg=1, str=0x0, 
destArray=0x0) at php_variables.c:257
#1  0x403246c8 in php_hash_environment () at main.c:1038
#2  0x40323dc4 in php_request_startup () at main.c:621
#3  0x403216a9 in apache_php_module_main (r=0x81825bc, 
display_source_mode=0) at sapi_apache.c:66
#4  0x40322066 in send_php (r=0x81825bc, 
display_source_mode=0, filename=0x0) at mod_php4.c:536
#5  0x40322098 in send_parsed_php (r=0x81825bc) at 
mod_php4.c:547
#6  0x8079373 in ap_invoke_handler ()
#7  0x808d339 in process_request_internal ()
#8  0x808d768 in ap_internal_redirect ()
#9  0x806bdd3 in mod_gzip_redir1_handler ()
#10 0x806a72d in mod_gzip_handler ()
#11 0x8079373 in ap_invoke_handler ()
#12 0x808d339 in process_request_internal ()
#13 0x808d39c in ap_process_request ()
#14 0x80848ce in child_main ()
#15 0x8084a7c in make_child ()
#16 0x8084bd9 in startup_children ()
#17 0x8085216 in standalone_main ()
#18 0x80859b3 in main ()
#19 0x400bc9cb in __libc_start_main (main=0x808565c 
<main>, argc=4, argv=0xbffffad4, init=0x8050370 <_init>,
    fini=0x80bc2dc <_fini>, rtld_fini=0x4000ae60 
<_dl_fini>, stack_end=0xbffffacc)
    at ../sysdeps/generic/libc-start.c:92

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-16 18:00 UTC] abdusamad at poornam dot com
If I do bt full the following results are getting

#0  0x4033a662 in php_treat_data (arg=1, str=0x0, 
destArray=0x0) at php_variables.c:257
        res = 0x0
        var = 0x4058a6f8 "\004\0200"
        val = 0x0
        separator = 0x0
        c_var = 0x303 <Address 0x303 out of bounds>
        array_ptr = (pval *) 0x8185a4c
        free_buffer = 0
        strtok_buf = 0x0
#1  0x40333911 in php_hash_environment () at main.c:1038
        p = 0x814c852 "PCS"
        _gpc_flags = "\000\000"
        have_variables_order = 1 '\001'
        dummy_track_vars_array = (zval *) 0xbffff5e0
        initialized_dummy_track_vars_array = 0 '\000'
        i = 6
        track_vars_names = {0x404e663b "HTTP_POST_VARS", 
0x404e664a "HTTP_GET_VARS",
  0x404e6658 "HTTP_COOKIE_VARS", 0x404e6669 
"HTTP_SERVER_VARS", 0x404e667a "HTTP_ENV_VARS",
  0x404e6688 "HTTP_POST_FILES", 0x0}
        track_vars_names_length = {15, 14, 17, 17, 14, 16}
#2  0x40332e57 in php_request_startup () at main.c:621
No locals.
#3  0x4032f8c8 in apache_php_module_main (r=0x81813bc, 
display_source_mode=0) at sapi_apache.c:66
        file_handle = {type = 0 '\000', filename = 
0x4058a6f8 "\004\0200",
  opened_path = 0x4000ae60 "U\211?\203?\004WVS?", handle = 
{fd = 135798890, fp = 0x818206a},
  free_filename = 129 '\201'}
#4  0x403305d7 in send_php (r=0x81813bc, 
display_source_mode=0, filename=0x818194c "") at 
mod_php4.c:536
        retval = 0
        per_dir_conf = (HashTable *) 0x0
#5  0x40330615 in send_parsed_php (r=0x81813bc) at 
mod_php4.c:547
No locals.
#6  0x8079373 in ap_invoke_handler ()
No symbol table info available.
#7  0x808d339 in process_request_internal ()
No symbol table info available.
#8  0x808d768 in ap_internal_redirect ()
No symbol table info available.
#9  0x806bdd3 in mod_gzip_redir1_handler ()
No symbol table info available.
#10 0x806a72d in mod_gzip_handler ()
No symbol table info available.
#11 0x8079373 in ap_invoke_handler ()
No symbol table info available.
#12 0x808d339 in process_request_internal ()
No symbol table info available.
#13 0x808d39c in ap_process_request ()
No symbol table info available.
#14 0x80848ce in child_main ()
No symbol table info available.
#15 0x8084a7c in make_child ()
No symbol table info available.
#16 0x8084bd9 in startup_children ()
No symbol table info available.
#17 0x8085216 in standalone_main ()
No symbol table info available.
#18 0x80859b3 in main ()
No symbol table info available.
#19 0x400bc9cb in __libc_start_main (main=0x808565c 
<main>, argc=4, argv=0xbffffad4, init=0x8050370 <_init>,
    fini=0x80bc2dc <_fini>, rtld_fini=0x4000ae60 
<_dl_fini>, stack_end=0xbffffacc)
    at ../sysdeps/generic/libc-start.c:92
        argv = (char **) 0xbffffad4
        rtld_fini = (void (*)()) 0x4000ae60 <_dl_fini>
        stack_end = (void *) 0x303

 [2002-02-16 21:12 UTC] yohgaki@php.net
The version of PHP that this bug was reported in is too old. Please
try to reproduce this bug in the latest version of PHP (available
from http://www.php.net/downloads.php

If you are still 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".


 [2002-02-17 09:52 UTC] abdusamad at poornam dot com
I even tried with both php-4.0.6 and  php-4.1.0 versions 
still I am getting the same problem

 [2002-02-17 12:36 UTC] sander@php.net
Please provide a backtrace with 4.1.0 or even better, with the latest CVS.
(btw: enabling debug while compiling apache may also help...)
 [2002-02-17 20:16 UTC] abdusamad at poornam dot com
My problem has solved with version 4.1.1. Thanks for your 
help.
Abdu Samad

 [2002-06-13 17:45 UTC] sniper@php.net
this should have been closed..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 14:01:30 2024 UTC