*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have FreeBSD6.0 installed with php5.2.6 and apache 2.2.9. My problem is php always core dump with Segmentation fault. Below is the debug of gdb output:
localhost# gdb /usr/local/bin/php php.core
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/php/20060613/session.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/session.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x29a13f54 in __do_global_dtors_aux () from /usr/local/lib/php/20060613/session.so
#2 0x29a1a7b8 in _fini () from /usr/local/lib/php/20060613/session.so
#3 0x2824b018 in tls_dtv_generation () from /libexec/ld-elf.so.1
#4 0x2824c3d8 in ?? () from /libexec/ld-elf.so.1
#5 0xbfbfea48 in ?? ()
#6 0x28233076 in elf_hash () from /libexec/ld-elf.so.1
#7 0x28235958 in dlclose () from /libexec/ld-elf.so.1
#8 0x081373d4 in zend_hash_apply_deleter ()
#9 0x0813746f in zend_hash_graceful_reverse_destroy ()
#10 0x0812d968 in zend_shutdown ()
#11 0x080f466f in php_module_shutdown ()
#12 0x081ab276 in main ()
===========================
Due to this my apache server also crash with core dump and I have to start it manually again. Debug output of gdb for httpd:
localhost# gdb /usr/local/sbin/httpd httpd.core
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Error while mapping shared library sections:
/usr/local/lib/php/20060613/ZendExtensionManager.so: No such file or directory.
Error while mapping shared library sections:
/usr/local/lib/php/20060613/Optimizer/php-5.2.x/ZendOptimizer.so: No such file or directory.
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /usr/local/lib/libaprutil-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libaprutil-1.so.3
Reading symbols from /usr/local/lib/libexpat.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libexpat.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libapr-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libapr-1.so.3
Reading symbols from /lib/libcrypt.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.3
Reading symbols from /usr/lib/libpthread.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/libexec/apache22/mod_authn_file.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authn_file.so
Reading symbols from /usr/local/libexec/apache22/mod_authn_dbm.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authn_dbm.so
Reading symbols from /usr/local/libexec/apache22/mod_authn_anon.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authn_anon.so
Reading symbols from /usr/local/libexec/apache22/mod_authn_default.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authn_default.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_host.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_host.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_groupfile.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_groupfile.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_user.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_user.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_dbm.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_dbm.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_owner.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_owner.so
Reading symbols from /usr/local/libexec/apache22/mod_authz_default.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_authz_default.so
Reading symbols from /usr/local/libexec/apache22/mod_auth_basic.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_auth_basic.so
Reading symbols from /usr/local/libexec/apache22/mod_auth_digest.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_auth_digest.so
Reading symbols from /usr/local/libexec/apache22/mod_file_cache.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_file_cache.so
Reading symbols from /usr/local/libexec/apache22/mod_cache.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_cache.so
Reading symbols from /usr/local/libexec/apache22/mod_disk_cache.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_disk_cache.so
Reading symbols from /usr/local/libexec/apache22/mod_include.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_include.so
Reading symbols from /usr/local/libexec/apache22/mod_filter.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_filter.so
Reading symbols from /usr/local/libexec/apache22/mod_charset_lite.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_charset_lite.so
Reading symbols from /usr/local/libexec/apache22/mod_deflate.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_deflate.so
Reading symbols from /lib/libz.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.3
Reading symbols from /usr/local/libexec/apache22/mod_log_config.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_log_config.so
Reading symbols from /usr/local/libexec/apache22/mod_logio.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_logio.so
Reading symbols from /usr/local/libexec/apache22/mod_env.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_env.so
Reading symbols from /usr/local/libexec/apache22/mod_mime_magic.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_mime_magic.so
Reading symbols from /usr/local/libexec/apache22/mod_cern_meta.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_cern_meta.so
Reading symbols from /usr/local/libexec/apache22/mod_expires.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_expires.so
Reading symbols from /usr/local/libexec/apache22/mod_headers.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_headers.so
Reading symbols from /usr/local/libexec/apache22/mod_usertrack.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_usertrack.so
Reading symbols from /usr/local/libexec/apache22/mod_unique_id.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_unique_id.so
Reading symbols from /usr/local/libexec/apache22/mod_setenvif.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_setenvif.so
Reading symbols from /usr/local/libexec/apache22/mod_ssl.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_ssl.so
Reading symbols from /usr/local/lib/libssl.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libssl.so.4
Reading symbols from /usr/local/lib/libcrypto.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libcrypto.so.4
Reading symbols from /usr/local/libexec/apache22/mod_mime.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_mime.so
Reading symbols from /usr/local/libexec/apache22/mod_dav.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_dav.so
Reading symbols from /usr/local/libexec/apache22/mod_status.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_status.so
Reading symbols from /usr/local/libexec/apache22/mod_autoindex.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_autoindex.so
Reading symbols from /usr/local/libexec/apache22/mod_asis.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_asis.so
Reading symbols from /usr/local/libexec/apache22/mod_info.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_info.so
Reading symbols from /usr/local/libexec/apache22/mod_cgi.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_cgi.so
Reading symbols from /usr/local/libexec/apache22/mod_dav_fs.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_dav_fs.so
Reading symbols from /usr/local/libexec/apache22/mod_vhost_alias.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache22/mod_negotiation.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache22/mod_dir.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_dir.so
Reading symbols from /usr/local/libexec/apache22/mod_imagemap.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_imagemap.so
Reading symbols from /usr/local/libexec/apache22/mod_actions.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_actions.so
Reading symbols from /usr/local/libexec/apache22/mod_speling.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_speling.so
Reading symbols from /usr/local/libexec/apache22/mod_userdir.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_userdir.so
Reading symbols from /usr/local/libexec/apache22/mod_alias.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_alias.so
Reading symbols from /usr/local/libexec/apache22/mod_rewrite.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/mod_rewrite.so
Reading symbols from /usr/local/libexec/apache22/libphp5.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/libexec/apache22/libphp5.so
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Error while reading shared library symbols:
/usr/local/lib/php/20060613/ZendExtensionManager.so: No such file or directory.
Reading symbols from /usr/local/lib/php/20060613/session.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20060613/session.so
Error while reading shared library symbols:
/usr/local/lib/php/20060613/Optimizer/php-5.2.x/ZendOptimizer.so: No such file or directory.
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x00000000 in ?? ()
[New LWP 100200]
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x29cc9f54 in __do_global_dtors_aux () from /usr/local/lib/php/20060613/session.so
#2 0x29cd07b8 in _fini () from /usr/local/lib/php/20060613/session.so
#3 0x280b3018 in tls_dtv_generation () from /libexec/ld-elf.so.1
#4 0x280b43d8 in ?? () from /libexec/ld-elf.so.1
#5 0xbfbfeac8 in ?? ()
#6 0x2809b076 in elf_hash () from /libexec/ld-elf.so.1
#7 0x2809d958 in dlclose () from /libexec/ld-elf.so.1
#8 0x287075fc in zend_hash_apply_deleter () from /usr/local/libexec/apache22/libphp5.so
#9 0x28707697 in zend_hash_graceful_reverse_destroy () from /usr/local/libexec/apache22/libphp5.so
#10 0x286fdb90 in zend_shutdown () from /usr/local/libexec/apache22/libphp5.so
#11 0x286c4897 in php_module_shutdown () from /usr/local/libexec/apache22/libphp5.so
#12 0x286c494f in php_module_shutdown_wrapper () from /usr/local/libexec/apache22/libphp5.so
#13 0x2877b005 in php_apache_server_shutdown () from /usr/local/libexec/apache22/libphp5.so
#14 0x28216af5 in run_cleanups () from /usr/local/lib/libapr-1.so.3
#15 0x28217bc9 in apr_pool_clear () from /usr/local/lib/libapr-1.so.3
#16 0x08063520 in main ()
===========================
I am getting the following error after I completly remove the make.conf file. Before I removed CFLAGS variables
localhost# make install clean
On FreeBSD before 6.2 ports system unfortunately can not set default X11BASE by itself so please help it a bit by setting X11BASE=${LOCALBASE} in make.conf.
On the other hand, if you do wish to use non-default X11BASE, please set variable USE_NONDEFAULT_X11BASE.
*** Error code 1
now I have only following things in /etc/make.conf but still getting core dumped.
localhost# cat /etc/make.conf
ENABLE_SUIDPERL=true
X11BASE=${LOCALBASE}
PERL_VER=5.8.8
PERL_VERSION=5.8.8
localhost# php -v
Failed loading /usr/local/lib/php/20060613/ZendExtensionManager.so: Cannot open "/usr/local/lib/php/20060613/ZendExtensionManager.so"
PHP 5.2.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Oct 14 2008 08:35:48)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
Segmentation fault (core dumped)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.