After some further investigation I found out that it was bcmath causing this.
Here's my config.nice: #! /bin/sh # # Created by configure './configure' \ '--disable-all' \ '--prefix=/usr/local/www/php4' \ '--with-apxs2=/usr/local/www/httpd2test/bin/apxs' \ '--enable-debug' \ '--enable-experimental-zts' \ '--enable-session' \ '--enable-bcmath' \ "$@" Reproduce script: <?php session_start(); ?> This was with current head of both PHP and Apache2 (worker). On Wed, 13 Nov 2002 18:58:08 +0100 Magnus Määttä <[EMAIL PROTECTED]> wrote: > Hi! > > With only one connection to the page i get no segfault, but with 2 or more i get it. > Made a benchmark on the page with ab and not a single segfault on 10,000 requests. > Got it twice with 2 connections and 37 times with 50 connections. After that all > apache child processes had died. > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 524321 (LWP 29953)] > 0x4055a816 in shutdown_memory_manager (silent=0, clean_cache=0, tsrm_ls=0x41b01b50) >at /mnt/data1/Apps/CVS/PHP/php4/Zend/zend_alloc.c:461 > 461 REMOVE_POINTER_FROM_LIST(ptr); > (gdb) bt > #0 0x4055a816 in shutdown_memory_manager (silent=0, clean_cache=0, >tsrm_ls=0x41b01b50) at /mnt/data1/Apps/CVS/PHP/php4/Zend/zend_alloc.c:461 > #1 0x4053aa8e in php_request_shutdown (dummy=0x0) at >/mnt/data1/Apps/CVS/PHP/php4/main/main.c:933 > #2 0x4058a2be in php_apache_request_dtor (f=0x410e58d0, tsrm_ls=0x41b01b50) at > /mnt/data1/Apps/CVS/PHP/php4/sapi/apache2filter/sapi_apache2.c:380 > #3 0x4058a531 in php_output_filter (f=0x410e58d0, bb=0x42114e78) at >/mnt/data1/Apps/CVS/PHP/php4/sapi/apache2filter/sapi_apache2.c:469 > #4 0x080ba569 in ap_pass_brigade (next=0x410e58d0, bb=0x410e5a10) at >util_filter.c:540 > #5 0x080c0a99 in default_handler (r=0x410e4000) at core.c:3383 > #6 0x080af9b9 in ap_run_handler (r=0x410e4000) at config.c:194 > #7 0x080aff03 in ap_invoke_handler (r=0x410e4000) at config.c:401 > #8 0x08086026 in ap_process_request (r=0x410e4000) at http_request.c:288 > #9 0x080820fa in ap_process_http_connection (c=0x410e20d8) at http_core.c:293 > #10 0x080b88f8 in ap_run_process_connection (c=0x410e20d8) at connection.c:85 > #11 0x080b8b8f in ap_process_connection (c=0x410e20d8, csd=0x410e1ff8) at >connection.c:207 > #12 0x080acc4b in process_socket (p=0x410e1fc0, sock=0x410e1ff8, my_child_num=0, >my_thread_num=30, bucket_alloc=0x831d688) at worker.c:632 > #13 0x080ad257 in worker_thread (thd=0x8167a28, dummy=0x82d22c8) at worker.c:947 > #14 0x401f89fe in dummy_worker (opaque=0x8167a28) at thread.c:127 > #15 0x4026d048 in pthread_start_thread () from /lib/libpthread.so.0 > #16 0x4026d08e in pthread_start_thread_event () from /lib/libpthread.so.0 > (gdb) frame 0 > #0 0x4055a816 in shutdown_memory_manager (silent=0, clean_cache=0, >tsrm_ls=0x41b01b50) at /mnt/data1/Apps/CVS/PHP/php4/Zend/zend_alloc.c:461 > 461 REMOVE_POINTER_FROM_LIST(ptr); > (gdb) p ptr > $4 = (zend_mem_header *) 0x412838e0 > (gdb) bt full > #0 0x4055a816 in shutdown_memory_manager (silent=0, clean_cache=0, >tsrm_ls=0x41b01b50) at /mnt/data1/Apps/CVS/PHP/php4/Zend/zend_alloc.c:461 > i = 1 > j = 27 > ptr = (zend_mem_header *) 0x412838e0 > p = (zend_mem_header *) 0x1b > t = (zend_mem_header *) 0x40618de8 > #1 0x4053aa8e in php_request_shutdown (dummy=0x0) at >/mnt/data1/Apps/CVS/PHP/php4/main/main.c:933 > orig_bailout = {{__jmpbuf = {0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, >__saved_mask = {__val = {0 <repeats 32 times>}}}} > orig_bailout_set = 0 '\0' > tsrm_ls = (void ***) 0x41b01b50 > #2 0x4058a2be in php_apache_request_dtor (f=0x410e58d0, tsrm_ls=0x41b01b50) at > /mnt/data1/Apps/CVS/PHP/php4/sapi/apache2filter/sapi_apache2.c:380 > tsrm_ls = (void ***) 0x41b01b50 > #3 0x4058a531 in php_output_filter (f=0x410e58d0, bb=0x42114e78) at >/mnt/data1/Apps/CVS/PHP/php4/sapi/apache2filter/sapi_apache2.c:469 > path = 0x410e5980 "/usr/local/www/httpd2/htdocs/home/top.php" > prebb = (apr_bucket_brigade *) 0x815c830 > zfd = {type = 2 '\002', filename = 0x410e5980 >"/usr/local/www/httpd2/htdocs/home/top.php", > opened_path = 0x4222d788 'Z' <repeats 44 times>, "\204Ì\217*", handle = {fd = >1109579712, fp = 0x4222d7c0}, free_filename = 0 '\0'} > ctx = (php_struct *) 0x410e5378 > b = (apr_bucket *) 0x831d6a8 > conf = (void *) 0x814f300 > p = 0x815c830 "\030È\025\b" > tsrm_ls = (void ***) 0x41b01b50 > #4 0x080ba569 in ap_pass_brigade (next=0x410e58d0, bb=0x410e5a10) at >util_filter.c:540 > e = (apr_bucket *) 0x41283890 > next = (ap_filter_t *) 0x0 > bb = (apr_bucket_brigade *) 0x412838e0 > #5 0x080c0a99 in default_handler (r=0x410e4000) at core.c:3383 > c = (conn_rec *) 0x410e20d8 > bb = (apr_bucket_brigade *) 0x410e5a10 > e = (apr_bucket *) 0x831d838 > d = (core_dir_config *) 0x410e5778 > errstatus = 1091459604 > fd = (apr_file_t *) 0x410e5938 > status = 1093154960 > bld_content_md5 = 137484344 > #6 0x080af9b9 in ap_run_handler (r=0x410e4000) at config.c:194 > r = (request_rec *) 0x410e4000 > pHook = (ap_LINK_handler_t *) 0x41283890 > n = 11 > rv = 1093154960 > #7 0x080aff03 in ap_invoke_handler (r=0x410e4000) at config.c:401 > r = (request_rec *) 0x410e4000 > handler = 0x815c818 "application/x-httpd-php" > p = 0x41283890 "Üw\202û`ïX@9" > result = 0 > old_handler = 0x0 > #8 0x08086026 in ap_process_request (r=0x410e4000) at http_request.c:288 > r = (request_rec *) 0x410e4000 > access_status = 1093154960 > #9 0x080820fa in ap_process_http_connection (c=0x410e20d8) at http_core.c:293 > c = (conn_rec *) 0x410e20d8 > r = (request_rec *) 0x410e4000 > csd_set = 0 > csd = (apr_socket_t *) 0x0 > #10 0x080b88f8 in ap_run_process_connection (c=0x410e20d8) at connection.c:85 > c = (conn_rec *) 0x410e20d8 > pHook = (ap_LINK_process_connection_t *) 0x41283890 > n = 0 > rv = 1093154960 > #11 0x080b8b8f in ap_process_connection (c=0x410e20d8, csd=0x410e1ff8) at >connection.c:207 > c = (conn_rec *) 0x410e20d8 > csd = (void *) 0x410e1ff8 > #12 0x080acc4b in process_socket (p=0x410e1fc0, sock=0x410e1ff8, my_child_num=0, >my_thread_num=30, bucket_alloc=0x831d688) at worker.c:632 > p = (apr_pool_t *) 0x410e1fc0 > sock = (apr_socket_t *) 0x410e1ff8 > my_child_num = 1093155040 > my_thread_num = 0 > current_conn = (conn_rec *) 0x410e20d8 > conn_id = 1091444952 > csd = 37 > sbh = (ap_sb_handle_t *) 0x410e20d0 > #13 0x080ad257 in worker_thread (thd=0x8167a28, dummy=0x82d22c8) at worker.c:947 > dummy = (void *) 0x41283890 > process_slot = 0 > thread_slot = 30 > csd = (apr_socket_t *) 0x410e1ff8 > bucket_alloc = (apr_bucket_alloc_t *) 0x831d688 > last_ptrans = (apr_pool_t *) 0x0 > ptrans = (apr_pool_t *) 0x410e1fc0 > rv = 1093154960 > is_idle = 0 > #14 0x401f89fe in dummy_worker (opaque=0x8167a28) at thread.c:127 > opaque = (void *) 0x41283890 > #15 0x4026d048 in pthread_start_thread () from /lib/libpthread.so.0 > No symbol table info available. > #16 0x4026d08e in pthread_start_thread_event () from /lib/libpthread.so.0 > No symbol table info available. > > > Regards > Magnus Määttä > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php