ID:               23040
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tim at danan dot com
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Redhat 8
 PHP Version:      4.3.1
 New Comment:

Do you have a short test script that can reproduce this 
segfault? 
 
J 


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

[2003-04-03 15:22:52] tim at danan dot com

I have a page that is generating repeated segmentation faults on a
Redhat 8 system running Apache 1.3.27 and PHP 4.3.1.  It is part of a
forum system (FudForum) that, unforunately, I didn't write.  MySQL and
sessions are both involved. The faults are not occurring on every use,
but seem to occur about once an hour.  Once a seg fault appears I tend
to see 4-5 of them in succession, then they disappear again for an hour
or so. 

[Thu Apr  3 14:18:51 2003] [notice] child pid 8668 exit signal
Segmentation fault (11)

I was able to generate a backtrace by running httpd -X in gdb.

(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X

Program received signal SIGSEGV, Segmentation fault.
0x40262195 in calloc () from /lib/libc.so.6
(gdb) bt
#0  0x40262195 in calloc () from /lib/libc.so.6
#1  0x40260f60 in realloc () from /lib/libc.so.6
#2  0x402176cf in putenv () from /lib/libc.so.6
#3  0x402175f8 in putenv () from /lib/libc.so.6
#4  0x404e6b41 in zif_putenv (ht=1, return_value=0x86fb92c,
this_ptr=0x0, return_value_used=0)
    at /usr/local/src/php-4.3.1/ext/standard/basic_functions.c:1353
#5  0x405ab626 in execute (op_array=0x86ec4f0) at
/usr/local/src/php-4.3.1/Zend/zend_execute.c:1596
#6  0x405ab859 in execute (op_array=0x86ea418) at
/usr/local/src/php-4.3.1/Zend/zend_execute.c:1640
#7  0x405ab859 in execute (op_array=0x86459ac) at
/usr/local/src/php-4.3.1/Zend/zend_execute.c:1640
#8  0x4059a321 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/local/src/php-4.3.1/Zend/zend.c:864
#9  0x40564f6b in php_execute_script (primary_file=0xbffff390) at
/usr/local/src/php-4.3.1/main/main.c:1573
#10 0x405b0546 in apache_php_module_main (r=0x841801c,
display_source_mode=0)
    at /usr/local/src/php-4.3.1/sapi/apache/sapi_apache.c:55
#11 0x405b13e6 in send_php (r=0x841801c, display_source_mode=0,
filename=0x8419dfc "/var/www/html/forum/index.php")
    at /usr/local/src/php-4.3.1/sapi/apache/mod_php4.c:556
#12 0x405b145f in send_parsed_php (r=0x841801c) at
/usr/local/src/php-4.3.1/sapi/apache/mod_php4.c:571
#13 0x080cd6f4 in ap_invoke_handler ()
#14 0x080e209a in process_request_internal ()
#15 0x080e20fa in ap_process_request ()
#16 0x080d92e2 in child_main ()
#17 0x080d94a8 in make_child ()
#18 0x080d960f in startup_children ()
#19 0x080d9c3c in standalone_main ()
#20 0x080da474 in main ()
#21 0x40202907 in __libc_start_main () from /lib/libc.so.6


GCC Version: gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

My php config is VERY simple:

./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql \
--with-pgsql \
--with-pspell \
--enable-debug


I'm sure there is a great deal of additional information I can provide,
and I will do so quite willingly.  My apologies if I've overlooked
anything in this report.

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


-- 
Edit this bug report at http://bugs.php.net/?id=23040&edit=1

Reply via email to