| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-04-11 10:43 UTC] scottmac@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 04:00:01 2025 UTC | 
Description: ------------ i just compiled php-source and ran "libphp6.so". $ cat config.nice #! /bin/sh # # Created by configure './configure' \ '--with-apxs2=/usr/local/apache/bin/apxs' \ '--with-apache-install=/usr/local/apache' \ '--with-mysql' \ '--with-zip' \ '--with-zlib' \ '--with-gd' \ '--with-jpeg' \ '--with-png' \ '--with-gif' \ '--with-tiff' \ '--with-openssl' \ '--with-gettext' \ '--with-kerberos' \ '--with-swf' \ '--with-mod_charset' \ '--with-regex=php' \ '--with-xml' \ '--with-ttf' \ '--enable-module=so' \ '--enable-gd-native-ttf' \ '--enable-ftp' \ '--enable-sockets' \ '--disable-debug' \ '--enable-sysvsem' \ '--enable-sysvshm' \ '--enable-shmop' \ '--enable-track-vars' \ '--enable-freetype-4bit-antialias-hack' \ '--enable-calendar' \ '--enable-sigchild' \ '--enable-magic-quotes' \ '--enable-trans-sid' \ '--enable-inline-optimization' \ '--enable-bcmath' \ '--with-iconv' \ '--enable-mbstring' \ '--enable-mbregex' \ '--enable-mbstr-enc-trans' \ '--enable-pcntl' \ '--with-curl' \ '--with-curlwrappers' \ '--with-mcrypt' \ '--with-mysqli' \ '--with-xmlrpc' \ '--with-imap' \ '--with-imap-ssl' \ '--with-openssl' \ '--with-openssl-dir=/usr/bin' \ '--with-gd-dir=/usr/local/lib' \ '--with-png-dir=/usr/local/lib' \ '--with-jpeg-dir=/usr/local/lib' \ '--with-freetype-dir=/usr/local/include/freetype2/freetype' \ '--disable-mbregex' \ '--enable-debug' \ "$@" $ /usr/local/apache/modules/libphp6.so Segmentation fault $ php -r "phpinfo();" | more phpinfo() PHP Version => 6.0.0-dev System => Linux XXXXXXXXX 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 Build Date => Apr 11 2007 17:54:02 why not running on apache2? Reproduce code: --------------- <?php phpinfo(); ?> Expected result: ---------------- in error_log [Wed Apr 11 17:36:22 2007] [notice] Apache/2.2.4 (Unix) DAV/2 PHP/6.0.0-dev configured -- resuming normal operations [Wed Apr 11 17:36:23 2007] [notice] child pid 29787 exit signal Segmentation fault (11) Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1484174448 (LWP 29450)] 0x009aa300 in pthread_mutex_lock () from /lib/libpthread.so.0 (gdb) bt #0 0x009aa300 in pthread_mutex_lock () from /lib/libpthread.so.0 #1 0x01478e2a in tsrm_mutex_lock (mutexp=0x0) at /home/nios/src/php6.0-200704110630/TSRM/TSRM.c:660 #2 0x011f1f48 in php_gd_gdFontCacheShutdown () at /home/nios/src/php6.0-200704110630/ext/gd/libgd/gdft.c:718 #3 0x011d626b in zm_deactivate_gd (type=1, module_number=32, tsrm_ls=0xa109fc8) at /home/nios/src/php6.0-200704110630/ext/gd/gd.c:1241 #4 0x0150a08f in module_registry_cleanup (module=0x9f80c38, tsrm_ls=0xa109fc8) at /home/nios/src/php6.0-200704110630/Zend/zend_API.c:2367 #5 0x01512d68 in zend_hash_apply (ht=0x1942660, apply_func=0x150a058 <module_registry_cleanup>, tsrm_ls=0xa109fc8) at /home/nios/src/php6.0-200704110630/Zend/zend_hash.c:898 #6 0x014fea2b in zend_deactivate_modules (tsrm_ls=0xa109fc8) at /home/nios/src/php6.0-200704110630/Zend/zend.c:1328 #7 0x0147f5f0 in php_request_shutdown (dummy=0x0) at /home/nios/src/php6.0-200704110630/main/main.c:1417 #8 0x01598f92 in php_apache_request_dtor (r=0xa110fb0, tsrm_ls=0xa109fc8) at /home/nios/src/php6.0-200704110630/sapi/apache2handler/sapi_apache2.c:458 #9 0x01599a40 in php_handler (r=0xa110fb0) at /home/nios/src/php6.0-200704110630/sapi/apache2handler/sapi_apache2.c:630 #10 0x08076189 in ap_run_handler (r=0xa110fb0) at config.c:157 #11 0x08079357 in ap_invoke_handler (r=0xa110fb0) at config.c:372 #12 0x0808f788 in ap_process_request (r=0xa110fb0) at http_request.c:258 #13 0x0808ca1b in ap_process_http_connection (c=0xa10b0d8) at http_core.c:184 #14 0x0807d109 in ap_run_process_connection (c=0xa10b0d8) at connection.c:43 #15 0x080bda73 in worker_thread (thd=0x9ef0e78, dummy=0xa109e78) at worker.c:544 #16 0x004172c6 in dummy_worker (opaque=0x9ef0e78) at threadproc/unix/thread.c:138 #17 0x009a83db in start_thread () from /lib/libpthread.so.0 #18 0x00f3226e in clone () from /lib/libc.so.6