|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-11-20 12:57 UTC] matteo at beccati dot com
Description: ------------ I was starting to test PHP5.1.0RC6. make install was exiting with a segmentation fault, because running php from command line always exit with a segfault. I tracked down that the problem depends by the fact I used --without-sqlite in the configure options. Using the php5-200511200930 snapshot also leads to the same result. Configure line used for the backtrace: CFLAGS=-O0 ./configure --disable-cgi --without-sqlite Actual result: -------------- (gdb) run Starting program: /root/compile/php5-200511200930/sapi/cli/php Program received signal SIGSEGV, Segmentation fault. 0x08200adf in _zend_hash_add_or_update () (gdb) bt full #0 0x08200adf in _zend_hash_add_or_update () No symbol table info available. #1 0x080ce8c4 in php_pdo_register_driver () No symbol table info available. #2 0x080d8fc7 in zm_startup_pdo_sqlite () No symbol table info available. #3 0x081fcd27 in zend_startup_module_ex () No symbol table info available. #4 0x08202047 in zend_hash_apply () No symbol table info available. #5 0x081fceb6 in zend_startup_modules () No symbol table info available. #6 0x081ba3c2 in php_module_startup () No symbol table info available. #7 0x082674dd in main () No symbol table info available. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 04:00:02 2025 UTC |
good-ol:~/compile/php5-200511220530# sapi/cli/php -m Segmentation fault This is what main/internal_functions.c contains (initial and ending comments were stripped): /* $Id: internal_functions.c.in,v 1.30 2005/08/03 14:08:29 sniper Exp $ */ #include "php.h" #include "php_main.h" #include "zend_modules.h" #include "zend_compile.h" #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include "ext/libxml/php_libxml.h" #include "ext/pcre/php_pcre.h" #include "ext/ctype/php_ctype.h" #include "ext/date/php_date.h" #include "ext/dom/php_dom.h" #include "ext/iconv/php_iconv.h" #include "ext/pdo/php_pdo.h" #include "ext/pdo_sqlite/php_pdo_sqlite.h" #include "ext/posix/php_posix.h" #include "ext/session/php_session.h" #include "ext/simplexml/php_simplexml.h" #include "ext/spl/php_spl.h" #include "ext/standard/php_standard.h" #include "ext/tokenizer/php_tokenizer.h" #include "ext/xml/php_xml.h" zend_module_entry *php_builtin_extensions[] = { phpext_xml_ptr, phpext_tokenizer_ptr, phpext_standard_ptr, phpext_spl_ptr, phpext_simplexml_ptr, phpext_session_ptr, phpext_posix_ptr, phpext_pdo_sqlite_ptr, phpext_pdo_ptr, phpext_iconv_ptr, phpext_dom_ptr, phpext_date_ptr, phpext_ctype_ptr, phpext_pcre_ptr, phpext_libxml_ptr, }; #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *)) int php_register_internal_extensions(TSRMLS_D) { return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC); }In fact, after installing gawk, the php_builtin_extensions array looks quite different: zend_module_entry *php_builtin_extensions[] = { phpext_libxml_ptr, phpext_xml_ptr, phpext_tokenizer_ptr, phpext_standard_ptr, phpext_spl_ptr, phpext_simplexml_ptr, phpext_session_ptr, phpext_posix_ptr, phpext_pdo_ptr, phpext_pdo_sqlite_ptr, phpext_iconv_ptr, phpext_dom_ptr, phpext_date_ptr, phpext_ctype_ptr, phpext_pcre_ptr, };