php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1403 core-dump in control_structures_inline.h:1205
Submitted: 1999-05-12 03:02 UTC Modified: 1999-05-16 13:46 UTC
From: thies at digicol dot de Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Latest CVS (12/05/1999) OS: solaris 2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thies at digicol dot de
New email:
PHP Version: OS:

 

 [1999-05-12 03:02 UTC] thies at digicol dot de
just found a "lonly" core-dump

gdb says:

#0  pval_destructor (pvalue=0x0) at ../php3/variables.c:76
#1  0xa7c98 in phpparse () at ../php3/control_structures_inline.h:1205
#2  0x67e4c in php3_parse (yyin=0x178e00) at ../php3/main.c:1540
#3  0x68160 in apache_php3_module_main (r=0x1baa78, fd=29, display_source_mode=0, preprocessed=0) at ../php3/main.c:1920
#4  0x65550 in send_php3 ()
#5  0x655ac in send_parsed_php3 ()
#6  0xd0120 in ap_invoke_handler ()
#7  0xe008c in process_request_internal ()
#8  0xe00e4 in ap_process_request ()
#9  0xd9478 in child_main ()
#10 0xd96b0 in make_child ()
#11 0xd99a8 in perform_idle_server_maintenance ()
#12 0xd9e6c in standalone_main ()
#13 0xda4a0 in main ()


looking at the code:
 
           } else if (arr_ptr->type!=IS_ARRAY) {
                php3_error(E_WARNING,"Index referencing a non-array");
                result->value.varptr.pvalue=NULL;
                pval_destructor(expr _INLINE_TLS); // this is the crash line..
                return;
            }
            if (expr) {
                switch (expr->type) {                                                                                                                 

looking at the if (expr) 3 lines later i stringly believe that the pval_descructor(expr ... is not right! but i don't know enough about this!!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-05-16 13:46 UTC] rasmus at cvs dot php dot net
Fixed in CVS by Thies
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 19:01:37 2025 UTC