php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50 crasher somewhere in php3_init_config
Submitted: 1998-02-10 15:00 UTC Modified: 1998-02-11 21:36 UTC
From: ssb at guardian dot no Assigned:
Status: Closed Package: Other
PHP Version: 3.0 Latest CVS OS: Red Hat Linux 5.0
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: ssb at guardian dot no
New email:
PHP Version: OS:

 

 [1998-02-10 15:00 UTC] ssb at guardian dot no
./configure  --with-apache=/local/www/src/apache --with-solid=/home/ssb/solid --enable-unified-odbc --without-system-regex --with-config-file-path=/local/www --with-msql=/usr/local/Hughes --enable-debugger

Apache 1.2 module

This crash seems to happen consequently on the forth request.
I have not experimented too much to see what affects this number,
MaxRequestsPerChild is 100.  I'm using php3_include_path,
php3_auto_prepend_file and php3_auto_append_file.

If someone gets an "aha!" from this, I'd appreciate it :-)

(gdb) bt
#0  _emalloc (size=14, filename=0x80f0a07 "fopen-wrappers.c", lineno=277)
    at alloc.c:75
#1  0x808181e in _estrdup (s=0x81931e0 ".::/local/www", 
    filename=0x80f0a07 "fopen-wrappers.c", lineno=277) at alloc.c:227
#2  0x8084118 in php3_fopen_with_path (filename=0x80efd3d "php3.ini", 
    mode=0x80efd3b "r", path=0x81931e0 ".::/local/www", opened_path=0xbfffd704)
    at fopen-wrappers.c:277
#3  0x80826d2 in php3_init_config () at configuration-parser.y:171
#4  0x807b7d6 in php3_config_ini_startup () at main.c:757
#5  0x807be63 in php3_module_startup () at main.c:991
#6  0x8075e47 in php3_create_dir (p=0x817a03c, 
    dummy=0x817a9c4 "/home/ssb/public_html/kiosk/") at mod_php3.c:246
#7  0x8053ba5 in handle_command (parms=0xbffff7a0, config=0x817aa1c, 
    l=0xbfffd774 "php3_include_path .:/home/ssb/cvs/kunder/energidata/er?d/lib/php") at http_config.c:667
#8  0x8053cb0 in srm_command_loop (parms=0xbffff7a0, config=0x817aa1c)
    at http_config.c:690
#9  0x8053fd7 in parse_htaccess (result=0xbffff808, r=0x8179094, override=31, 
    d=0x817a9c4 "/home/ssb/public_html/kiosk/", 
    filename=0x817a9e4 "/home/ssb/public_html/kiosk/.htaccess")
    at http_config.c:814
#10 0x8055383 in directory_walk (r=0x8179094) at http_request.c:413
#11 0x8056490 in process_request_internal (r=0x8179094) at http_request.c:957
#12 0x8056778 in process_request (r=0x8179094) at http_request.c:1036
#13 0x804f02c in child_main (child_num_arg=9) at http_main.c:1884
#14 0x804f1aa in make_child (server_conf=0x815da5c, child_num=9)
    at http_main.c:1948
#15 0x804fa25 in standalone_main (argc=4, argv=0xbffff948) at http_main.c:2244
#16 0x8050051 in main (argc=4, argv=0xbffff948) at http_main.c:2437

(gdb) print head
$1 = (mem_header *) 0x81ec3d0
(gdb) print head->pLast
Cannot access memory at address 0x81ec3d4.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-11 21:36 UTC] ssb
Fixed by Zeev and Rasmus.  Thanks!
 [2014-01-17 21:59 UTC] bwoebi@php.net
Automatic comment on behalf of joe.watkins@live.co.uk
Revision: http://git.php.net/?p=php-src.git;a=commit;h=837bd24dea5c32dc186a1fe484c2c276e97e92e1
Log: fix #50
 [2014-01-17 22:00 UTC] bwoebi@php.net
Automatic comment on behalf of joe.watkins@live.co.uk
Revision: http://git.php.net/?p=php-src.git;a=commit;h=837bd24dea5c32dc186a1fe484c2c276e97e92e1
Log: fix #50
 [2014-01-19 01:35 UTC] ab@php.net
Automatic comment on behalf of joe.watkins@live.co.uk
Revision: http://git.php.net/?p=php-src.git;a=commit;h=837bd24dea5c32dc186a1fe484c2c276e97e92e1
Log: fix #50
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC