DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38213>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38213 Summary: Segmentation Fault with multiple #include's Product: Apache httpd-2 Version: 2.0.55 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: mod_include AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] I had a request to enable SSI on one of the domains I manage on a 2.0.55 server (built from source) on Debian Linux. SSI behavior can only be described as "odd". The developers have .shtml files that contain a number of <!-- #include file="..." --> directives. Here is a real example: <!--#include file="struc/struc-01.html" --> <!--#include file="includes/menu-utility.html" --> <!--#include file="struc/struc-02.html" --> <!--#include file="includes/menu-pic-0.html" --> and so on... I verified the existence and permission of all files. This causes a Seg Fault in the apache logs though: [Mon Jan 09 22:05:49 2006] [notice] child pid 10562 exit signal Segmentation fault (11) SSI seems to work ok in other situations though - I can display the current date/time without any issues. I can display the date then include a single file using one of the above directives, and vice versa (display date after an include), but the moment I do two #include's as above Apache chokes. I enabled SSI by putting the following in a .htaccess in the top-level directory for the domain: Options +Includes AddType text/html .shtml AddOutputFilter INCLUDES .shtml Apache was compiled with: env CFLAGS="-O3 -march=i686 -funroll-loops -D_REENTRANT -D_SINGLE_LISTEN_UNSERIALIZED_ACCEPT -fPIC" \ ./configure --prefix=/usr/local/apache-2.0.55 \ --with-mpm=prefork \ \ --enable-access=shared \ --enable-actions=shared \ --enable-alias=shared \ --enable-auth=shared \ --enable-auth-dbm=shared \ --enable-auth-digest=shared \ --enable-autoindex=shared \ --enable-cern-meta=shared \ --enable-cgi=shared \ --enable-cgid=shared \ --enable-dav=shared \ --enable-dav-fs=shared \ --enable-dir=shared \ --enable-env=shared \ --enable-expires=shared \ --enable-file-cache=shared \ --enable-headers=shared \ --enable-include=shared \ --enable-log-config=shared \ --enable-mime=shared \ --enable-mime-magic=shared \ --enable-negotiation=shared \ --enable-rewrite=shared \ --enable-setenvif=shared \ --enable-speling=shared \ --enable-ssl=shared \ --enable-unique-id=shared \ --enable-usertrack=shared \ --enable-vhost-alias=shared \ --enable-suexec=shared \ \ --with-suexec-caller=nobody \ --with-suexec-docroot=/usr/local/apache/htdocs \ --with-suexec-logfile=/var/log/apache/suexec.log \ --with-suexec-bin=/usr/local/apache/bin/suexec \ --with-suexec-uidmin=500 --with-suexec-gidmin=500 \ \ --enable-info=shared \ --enable-imap=shared \ --enable-proxy=shared \ --enable-proxy-connect=shared \ --enable-proxy-ftp=shared \ --enable-proxy-http=shared \ --enable-status=shared \ --enable-disk-cache=shared \ --enable-mem-cache=shared \ --enable-cache=shared \ --enable-deflate=shared \ \ --disable-auth-anon \ --disable-charset-lite \ --disable-ext-filter \ --disable-case-filter \ --disable-case-filter-in \ --disable-example \ --disable-asis \ \ --enable-userdir=shared \ \ --with-ssl \ --with-z \ Here is a gdb session from a core dump: fastconcepts:/tmp# gdb /usr/local/apache/bin/httpd /tmp/core.ccr GNU gdb 6.3-debian Copyright 2004 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-linux"...Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `/usr/local/apache-2.0.55/bin/httpd -D SSL -k start'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/local/lib/libssl.so.0.9.8...done. Loaded symbols for /usr/local/lib/libssl.so.0.9.8 Reading symbols from /usr/local/lib/libcrypto.so.0.9.8...done. Loaded symbols for /usr/local/lib/libcrypto.so.0.9.8 Reading symbols from /usr/local/apache-2.0.55/lib/libaprutil-0.so.0...done. Loaded symbols for /usr/local/apache-2.0.55/lib/libaprutil-0.so.0 Reading symbols from /usr/lib/libdb3.so.3...done. Loaded symbols for /usr/lib/libdb3.so.3 Reading symbols from /usr/lib/libexpat.so.1...done. Loaded symbols for /usr/lib/libexpat.so.1 Reading symbols from /usr/local/apache-2.0.55/lib/libapr-0.so.0...done. Loaded symbols for /usr/local/apache-2.0.55/lib/libapr-0.so.0 Reading symbols from /lib/librt.so.1...done. Loaded symbols for /lib/librt.so.1 Reading symbols from /lib/libm.so.6...done. Loaded symbols for /lib/libm.so.6 Reading symbols from /lib/libcrypt.so.1...done. Loaded symbols for /lib/libcrypt.so.1 Reading symbols from /lib/libnsl.so.1...done. Loaded symbols for /lib/libnsl.so.1 Reading symbols from /lib/libpthread.so.0...done. Loaded symbols for /lib/libpthread.so.0 Reading symbols from /lib/libdl.so.2...done. Loaded symbols for /lib/libdl.so.2 Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/libnss_compat.so.2...done. Loaded symbols for /lib/libnss_compat.so.2 Reading symbols from /lib/libnss_nis.so.2...done. Loaded symbols for /lib/libnss_nis.so.2 Reading symbols from /lib/libnss_files.so.2...done. Loaded symbols for /lib/libnss_files.so.2 Reading symbols from /usr/local/apache-2.0.55/modules/mod_access.so...done. Loaded symbols for /usr/local/apache/modules/mod_access.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_auth.so...done. Loaded symbols for /usr/local/apache/modules/mod_auth.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_auth_dbm.so...done. Loaded symbols for /usr/local/apache/modules/mod_auth_dbm.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_auth_digest.so...done. Loaded symbols for /usr/local/apache/modules/mod_auth_digest.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_file_cache.so...done. Loaded symbols for /usr/local/apache/modules/mod_file_cache.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_cache.so...done. Loaded symbols for /usr/local/apache/modules/mod_cache.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_disk_cache.so...done. Loaded symbols for /usr/local/apache/modules/mod_disk_cache.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_mem_cache.so...done. Loaded symbols for /usr/local/apache/modules/mod_mem_cache.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_include.so...done. Loaded symbols for /usr/local/apache/modules/mod_include.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_log_config.so...done. Loaded symbols for /usr/local/apache/modules/mod_log_config.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_env.so...done. Loaded symbols for /usr/local/apache/modules/mod_env.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_mime_magic.so...done. Loaded symbols for /usr/local/apache/modules/mod_mime_magic.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_cern_meta.so...done. Loaded symbols for /usr/local/apache/modules/mod_cern_meta.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_expires.so...done. Loaded symbols for /usr/local/apache/modules/mod_expires.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_headers.so...done. Loaded symbols for /usr/local/apache/modules/mod_headers.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_usertrack.so...done. Loaded symbols for /usr/local/apache/modules/mod_usertrack.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_setenvif.so...done. Loaded symbols for /usr/local/apache/modules/mod_setenvif.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_proxy.so...done. Loaded symbols for /usr/local/apache/modules/mod_proxy.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_proxy_connect.so...done. Loaded symbols for /usr/local/apache/modules/mod_proxy_connect.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_proxy_ftp.so...done. Loaded symbols for /usr/local/apache/modules/mod_proxy_ftp.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_proxy_http.so...done. Loaded symbols for /usr/local/apache/modules/mod_proxy_http.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_ssl.so...done. Loaded symbols for /usr/local/apache/modules/mod_ssl.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_mime.so...done. Loaded symbols for /usr/local/apache/modules/mod_mime.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_dav.so...done. Loaded symbols for /usr/local/apache/modules/mod_dav.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_status.so...done. Loaded symbols for /usr/local/apache/modules/mod_status.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_autoindex.so...done. Loaded symbols for /usr/local/apache/modules/mod_autoindex.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_info.so...done. Loaded symbols for /usr/local/apache/modules/mod_info.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_suexec.so...done. Loaded symbols for /usr/local/apache/modules/mod_suexec.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_cgi.so...done. Loaded symbols for /usr/local/apache/modules/mod_cgi.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_cgid.so...done. Loaded symbols for /usr/local/apache/modules/mod_cgid.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_dav_fs.so...done. Loaded symbols for /usr/local/apache/modules/mod_dav_fs.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_vhost_alias.so...done. Loaded symbols for /usr/local/apache/modules/mod_vhost_alias.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_negotiation.so...done. Loaded symbols for /usr/local/apache/modules/mod_negotiation.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_dir.so...done. Loaded symbols for /usr/local/apache/modules/mod_dir.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_imap.so...done. Loaded symbols for /usr/local/apache/modules/mod_imap.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_actions.so...done. Loaded symbols for /usr/local/apache/modules/mod_actions.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_speling.so...done. Loaded symbols for /usr/local/apache/modules/mod_speling.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_alias.so...done. Loaded symbols for /usr/local/apache/modules/mod_alias.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_rewrite.so...done. Loaded symbols for /usr/local/apache/modules/mod_rewrite.so Reading symbols from /usr/local/apache-2.0.55/modules/mod_deflate.so...done. Loaded symbols for /usr/local/apache/modules/mod_deflate.so Reading symbols from /usr/local/apache-2.0.55/modules/libphp4.so...done. Loaded symbols for /usr/local/apache/modules/libphp4.so Reading symbols from /usr/lib/libc-client.so.2001...done. Loaded symbols for /usr/lib/libc-client.so.2001 Reading symbols from /usr/local/lib/libzzip-0.so.10...done. Loaded symbols for /usr/local/lib/libzzip-0.so.10 Reading symbols from /usr/local/lib/libsablot.so.0...done. Loaded symbols for /usr/local/lib/libsablot.so.0 Reading symbols from /usr/local/pgsql-8.1.0/lib/libpq.so.4...done. Loaded symbols for /usr/local/pgsql/lib/libpq.so.4 Reading symbols from /usr/local/mysql-4.1.16/lib/mysql/libmysqlclient.so.14...done. Loaded symbols for /usr/local/mysql-4.1.16/lib/mysql/libmysqlclient.so.14 Reading symbols from /usr/local/lib/libmhash.so.2...done. Loaded symbols for /usr/local/lib/libmhash.so.2 Reading symbols from /usr/local/lib/libmcrypt.so.4...done. Loaded symbols for /usr/local/lib/libmcrypt.so.4 Reading symbols from /usr/local/lib/libltdl.so.3...done. Loaded symbols for /usr/local/lib/libltdl.so.3 Reading symbols from /usr/local/lib/libssl.so.0.9.7...done. Loaded symbols for /usr/local/lib/libssl.so.0.9.7 Reading symbols from /usr/local/lib/libcrypto.so.0.9.7...done. Loaded symbols for /usr/local/lib/libcrypto.so.0.9.7 Reading symbols from /lib/libpam.so.0...done. Loaded symbols for /lib/libpam.so.0 Reading symbols from /usr/lib/libt1.so.1...done. Loaded symbols for /usr/lib/libt1.so.1 Reading symbols from /usr/lib/libttf.so.2...done. Loaded symbols for /usr/lib/libttf.so.2 Reading symbols from /usr/X11R6/lib/libX11.so.6...done. Loaded symbols for /usr/X11R6/lib/libX11.so.6 Reading symbols from /usr/X11R6/lib/libXpm.so.4...done. Loaded symbols for /usr/X11R6/lib/libXpm.so.4 Reading symbols from /usr/lib/libpng12.so.0...done. Loaded symbols for /usr/lib/libpng12.so.0 Reading symbols from /usr/lib/libjpeg.so.62...done. Loaded symbols for /usr/lib/libjpeg.so.62 Reading symbols from /usr/local/lib/libexslt.so.0...done. Loaded symbols for /usr/local/lib/libexslt.so.0 Reading symbols from /usr/local/lib/libxslt.so.1...done. Loaded symbols for /usr/local/lib/libxslt.so.1 Reading symbols from /usr/lib/libbz2.so.1.0...done. Loaded symbols for /usr/lib/libbz2.so.1.0 Reading symbols from /lib/libresolv.so.2...done. Loaded symbols for /lib/libresolv.so.2 Reading symbols from /usr/local/lib/libcurl.so.3...done. Loaded symbols for /usr/local/lib/libcurl.so.3 Reading symbols from /usr/local/lib/libxml2.so.2...done. Loaded symbols for /usr/local/lib/libxml2.so.2 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/local/Zend/lib/ZendExtensionManager.so...done. Loaded symbols for /usr/local/Zend/lib/ZendExtensionManager.so Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-20020429/fileinfo.so...done. Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-20020429/fileinfo.so Reading symbols from /usr/lib/libmagic.so.1...done. Loaded symbols for /usr/lib/libmagic.so.1 Reading symbols from /usr/local/lib/php/extensions/no-debug-non-zts-20020429/java.so...done. Loaded symbols for /usr/local/lib/php/extensions/no-debug-non-zts-20020429/java.so Reading symbols from /usr/local/Zend/lib/Optimizer-2.5.7/php-4.3.x/ZendOptimizer.so...done. Loaded symbols for /usr/local/Zend/lib/Optimizer-2.5.7/php-4.3.x/ZendOptimizer.so #0 0x407c2ca3 in zend_hash_find (ht=0x409a8ed4, arKey=0x893bcb4 "/usr/local/sites/www.coachingrelationships.com/web/devt/includes/menu-utility.html", nKeyLength=83, pData=0xbfffe108) at /usr/local/source/web/php/php-4.3.11/Zend/zend_hash.c:895 895 if ((p->h == h) && (p->nKeyLength == nKeyLength)) { (gdb) thread apply all bt full Thread 1 (process 14516): #0 0x407c2ca3 in zend_hash_find (ht=0x409a8ed4, arKey=0x893bcb4 "/usr/local/sites/www.coachingrelationships.com/web/devt/includes/menu-utility.html", nKeyLength=83, pData=0xbfffe108) at /usr/local/source/web/php/php-4.3.11/Zend/zend_hash.c:895 end = 0x3d6b9712 <Address 0x3d6b9712 out of bounds> idx = 143898492 tmp = 0x2 <Address 0x2 out of bounds> nIndex = 2 p = (Bucket *) 0x616f632e #1 0x407b0eca in zend_set_compiled_filename ( new_compiled_filename=0x893bcb4 "/usr/local/sites/www.coachingrelationships.com/web/devt/includes/menu-utility.html") at /usr/local/source/web/php/php-4.3.11/Zend/zend_compile.c:133 pp = (char **) 0x0 p = 0x0 #2 0x412052f0 in ?? () from /usr/local/Zend/lib/Optimizer-2.5.7/php-4.3.x/ZendOptimizer.so No symbol table info available. #3 0x0893bcb4 in ?? () No symbol table info available. #4 0x00000000 in ?? () No symbol table info available. #5 0x00000001 in ?? () No symbol table info available. #6 0x412051c5 in ?? () from /usr/local/Zend/lib/Optimizer-2.5.7/php-4.3.x/ZendOptimizer.so No symbol table info available. #7 0xbfffe3a0 in ?? () No symbol table info available. #8 0x00000000 in ?? () No symbol table info available. #9 0xbfffe2e0 in ?? () No symbol table info available. #10 0xbfffe300 in ?? () No symbol table info available. #11 0x00000000 in ?? () No symbol table info available. #12 0xbfffe0c8 in ?? () No symbol table info available. #13 0xbfffe260 in ?? () No symbol table info available. #14 0xbfffe260 in ?? () No symbol table info available. #15 0x00000000 in ?? () No symbol table info available. #16 0x08121b58 in ?? () No symbol table info available. ---Type <return> to continue, or q <return> to quit--- #17 0x08944348 in ?? () No symbol table info available. #18 0x0897b2e8 in ?? () No symbol table info available. #19 0x00000000 in ?? () No symbol table info available. #20 0x00000000 in ?? () No symbol table info available. #21 0x000008d0 in ?? () No symbol table info available. #22 0x00000000 in ?? () No symbol table info available. #23 0x00000000 in ?? () No symbol table info available. #24 0x004ab348 in ?? () No symbol table info available. #25 0x00000000 in ?? () No symbol table info available. #26 0x00000001 in ?? () No symbol table info available. #27 0x40330f7e in __pthread_alt_unlock () from /lib/libpthread.so.0 No symbol table info available. #28 0x407be18d in zend_execute_scripts (type=2, retval=0x0, file_count=1) at /usr/local/source/web/php/php-4.3.11/Zend/zend.c:922 files = 0x0 i = 0 file_handle = (zend_file_handle *) 0x0 orig_op_array = (zend_op_array *) 0x0 local_retval = (zval *) 0x0 #29 0x407d0b50 in php_handler (r=0x897b310) at /usr/local/source/web/php/php-4.3.11/sapi/apache2handler/sapi_apache2.c:562 zfd = {type = 2 '\002', filename = 0x893bcb4 "/usr/local/sites/www.coachingrelationships.com/web/devt/includes/menu-utility.html", opened_path = 0x893bcb4 "/usr/local/sites/www.coachingrelationships.com/web/devt/includes/menu-utility.html", handle = {fd = 143900392, fp = 0x893bee8}, free_filename = 0 '\0'} orig_bailout = {{__jmpbuf = {0, 0, 0, 0, 0, 0}, __mask_was_saved = 0, __saved_mask = {__val = {0 <repeats 32 times>}}}} ctx = (php_struct *) 0x89774d8 conf = (void *) 0x893b77c brigade = (apr_bucket_brigade *) 0x8977550 bucket = (apr_bucket *) 0x893b77c rv = 143898492 parent_req = (request_rec *) 0x8974a50 #30 0x0806acc8 in ap_run_handler () No symbol table info available. #31 0x0806b166 in ap_invoke_handler () No symbol table info available. #32 0x0808748d in ap_run_sub_req () ---Type <return> to continue, or q <return> to quit--- No symbol table info available. #33 0x404cf094 in handle_include () from /usr/local/apache/modules/mod_include.so No symbol table info available. #34 0x404d1977 in send_parsed_content () from /usr/local/apache/modules/mod_include.so No symbol table info available. #35 0x08078cc4 in ap_pass_brigade () No symbol table info available. #36 0x08082899 in default_handler () No symbol table info available. #37 0x0806acc8 in ap_run_handler () No symbol table info available. #38 0x0806b166 in ap_invoke_handler () No symbol table info available. #39 0x080673ab in ap_process_request () No symbol table info available. #40 0x0806133d in ap_process_http_connection () No symbol table info available. #41 0x08076158 in ap_run_process_connection () No symbol table info available. #42 0x08076648 in ap_process_connection () No symbol table info available. #43 0x08069fab in child_main () No symbol table info available. #44 0x08068fc9 in make_child () No symbol table info available. #45 0x0806929f in perform_idle_server_maintenance () No symbol table info available. #46 0x08068a6e in ap_mpm_run () No symbol table info available. #47 0x08070910 in main () No symbol table info available. (gdb) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
