debug version crashes sometimes
| From: | Steve Alberty | Date: | Tue, 06 Aug 2002 11:24:20 +0000 |
| Subject: | debug version crashes sometimes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-86563@lists.php.net to get a copy of this message | ||
Hi,
i have sometimes problems to use php with debugging informations.
PHP crashes immediately after the starting.
Is it a problem to use a php.ini file in other paths?
e.g.
--with-config-file-path=/etc/debug
here is my backtrace:
---<with current cvs tree>----
Starting program: /usr/local/apache/1.3.dev/bin/httpd -X
Program received signal SIGSEGV, Segmentation fault.
0x402ba117 in virtual_file_ex (state=0xbfff6088, path=0xbfff4020
"/etc/debug/php.ini", verify_path=0)
at /usr/src/php4/TSRM/tsrm_virtual_cwd.c:362
362 state->cwd[copy_amount] = '\0';
(gdb) bt
#0 0x402ba117 in virtual_file_ex (state=0xbfff6088, path=0xbfff4020
"/etc/debug/php.ini", verify_path=0)
at /usr/src/php4/TSRM/tsrm_virtual_cwd.c:362
#1 0x402c1196 in expand_filepath (filepath=0xbfff6140
"/etc/debug/php.ini", real_path=0x0)
at /usr/src/php4/main/fopen_wrappers.c:509
#2 0x402c065f in php_fopen_and_set_opened_path (path=0xbfff6140
"/etc/debug/php.ini", mode=0x4032a97f "r", opened_path=0x4036a148)
at /usr/src/php4/main/fopen_wrappers.c:237
#3 0x402c0fc9 in php_fopen_with_path (filename=0x4032a98c "php.ini",
mode=0x4032a97f "r", path=0x80da024 ".:/etc/debug",
opened_path=0x4036a148) at /usr/src/php4/main/fopen_wrappers.c:446
#4 0x402c1aef in php_init_config () at /usr/src/php4/main/php_ini.c:318
#5 0x402bca5a in php_module_startup (sf=0x4036d2c0) at
/usr/src/php4/main/main.c:939
#6 0x4030b37e in php_apache_startup (sapi_module=0x4036d2c0) at
/usr/src/php4/sapi/apache/mod_php4.c:249
#7 0x4030c0a4 in php_apache_value_handler_ex (cmd=0xbfffd6f0, conf=
0x80c3040, arg1=0x80cf9f4 "upload_tmp_dir",
arg2=0x80cfa04 "/web/htdocs/things/work/upload", mode=2) at
/usr/src/php4/sapi/apache/mod_php4.c:673
#8 0x4030c1c9 in php_apache_value_handler (cmd=0xbfffd6f0, conf=
0x80c3040, arg1=0x80cf9f4 "upload_tmp_dir",
arg2=0x80cfa04 "/web/htdocs/things/work/upload") at
/usr/src/php4/sapi/apache/mod_php4.c:701
#9 0x08055140 in invoke_cmd ()
#10 0x08055aec in ap_handle_command ()
#11 0x08055b8a in ap_srm_command_loop ()
#12 0x0805961e in urlsection ()
#13 0x08054fe4 in invoke_cmd ()
#14 0x08055aec in ap_handle_command ()
#15 0x08055b8a in ap_srm_command_loop ()
#16 0x08059ecd in virtualhost_section ()
#17 0x08054fe4 in invoke_cmd ()
#18 0x08055aec in ap_handle_command ()
#19 0x08055b8a in ap_srm_command_loop ()
#20 0x08056272 in ap_process_resource_config ()
#21 0x0805b4f9 in include_config ()
#22 0x0805507e in invoke_cmd ()
#23 0x08055aec in ap_handle_command ()
#24 0x08055b8a in ap_srm_command_loop ()
#25 0x08056272 in ap_process_resource_config ()
#26 0x08056bcf in ap_read_config ()
#27 0x0806200a in main ()
#28 0x40087280 in __libc_start_main () from /lib/libc.so.6
--------------
my configure options:
nice -n 18 ./configure \
--enable-memory-limit \
--enable-trans-sid \
--with-apxs=/usr/local/apache/1.3.dev/bin/apxs \
--with-config-file-path=/etc/debug \
--with-mysql=/usr/local/mysql/current \
--with-zlib \
--with-mcrypt=/usr/local/libmcrypt/current \
--with-gd=php \
--with-jpeg-dir=/usr \
--with-png-dir=/usr/local \
--with-freetype-dir=/usr \
--disable-short-tags \
--disable-overload \
--disable-xml \
--disable-posix \
--disable-ctype \
--disable-tokenizer \
--disable-mbstring \
--enable-debug \
--enable-dmalloc \
Any comments?
Regards,
Steve