ID: 9310
Updated by: andre
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Please provide a reduced code fragment (<15 lines) producing
this behaviour.
Put no database queries etc. in it to ensure that we can
reproduce it easily unless the problem is not directly
related to some db (or similar) function.

Previous Comments:
---------------------------------------------------------------------------

[2001-02-16 19:15:11] [EMAIL PROTECTED]
0) [Sat Jan 13 14:02:13 2001] 
       [notice] child pid 13927 exit signal Segmentation fault (11)

-> this is what comes in the apache error log when I call the script
with a php higher than 4.0.2. with the 4.0.2 it works fine. The page output
is most of the time incomplete (stoping at a random place), but no "document contains 
no data", or very seldom.

1) the scripts source are visible under http://www.omnis.ch/dev/php/
    (my first php script ever, 2 years ago, could be improved I know: but
     it still should work without killing my webserver....)

2) config.nice :
#! /bin/sh
#
# Created by configure

"./configure" 
"--with-apxs=/usr/local/apache/bin/apxs" 
"--enable-track-vars" 
"--enable-safe-mode" 
"--with-gd=../gd1.3" 
"--with-ttf" 
"--with-mysql=/usr/local" 
"--with-ldap" 
"--with-xml" 
"--with-zlib" 
"--with-zlib-dir" 
"--enable-memory-limit" 
"--with-recode" 
"--with-dbase" 
"--with-pdflib=/usr/local/src/web/pdflib3" 
"--enable-ftp" 
"$@"

(also tried to remove some or all the modules -> no change)


3) no changes in php.ini (original file.dist)

4) linux server, intel, distribution: suse 6.4

5) gdb backtrace :  
omega:/usr/local/apache # gdb  /usr/local/apache/bin/httpd
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-suse-linux-gnu"...
(gdb)  -f /usr/local/etc/apache/httpd.conf  -D PHP4 -X  
Undefined command: "-f".  Try "help".
(gdb) run  -f /usr/local/etc/apache/httpd.conf  -D PHP4 -X
Starting program: /usr/local/apache/bin/httpd -f /usr/local/etc/apache/httpd.conf  -D 
PHP4 -X

Program received signal SIGTRAP, Trace/breakpoint trap. 
0x40001780 in _start () at rtld.c:142
142     rtld.c: No such file or directory.
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
0x4018798c in ?? ()
(gdb) bt
#0  0x4018798c in ?? ()
#1  0x40188321 in ?? ()
#2  0x40187e0d in ?? ()
#3  0x4027a280 in _erealloc (ptr=0x82de544, size=9, allow_failure=0) at 
zend_alloc.c:288
#4  0x402927bf in add_string_to_string (result=0xbfffc060, op1=0xbfffc060, 
op2=0x82dd42c) at zend_operators.c:1003
#5  0x40285928 in execute (op_array=0x82c614c) at ./zend_execute.c:1389
#6  0x402887e1 in execute (op_array=0x82c569c) at ./zend_execute.c:2063
#7  0x40295c7b in zend_execute_scripts (type=8, file_count=3) at zend.c:729  
#8  0x402a95b1 in php_execute_script (primary_file=0xbffff554) at main.c:1221
#9  0x402a588b in apache_php_module_main (r=0x807f62c, display_source_mode=0) at 
sapi_apache.c:89
#10 0x402a62a4 in send_php (r=0x807f62c, display_source_mode=0, filename=0x0) at 
mod_php4.c:516
#11 0x402a62dd in send_parsed_php (r=0x807f62c) at mod_php4.c:527
#12 0x40053f23 in _ufc_foobar () from /lib/libcrypt.so.1
#13 0x4006dc79 in ?? () from /usr/lib/libgdbm.so.2
#14 0x4006dcfb in ?? () from /usr/lib/libgdbm.so.2
#15 0x40062ccc in _ufc_foobar () from /lib/libcrypt.so.1
#16 0x40062ef7 in _ufc_foobar () from /lib/libcrypt.so.1
#17 0x400630c6 in _ufc_foobar () from /lib/libcrypt.so.1
#18 0x400638de in _ufc_foobar () from /lib/libcrypt.so.1
#19 0x40064390 in _ufc_foobar () from /lib/libcrypt.so.1
#20 0x80487fd in ?? ()
#21 0x40143313 in token () at ruserpass.c:292
(gdb)
    


Voila, I hope it will help you!
If you have any question / patch to try, please ask.

Regards,
Olivier

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9310&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to