#35304 [Fbk->Opn]: PHP always segfaults with --without-sqlite
ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian GNU/Linux testing/etch PHP Version: 5CVS-2005-11-20 (snap) New Comment: # awk -W version mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan compiled limits: max NF 32767 sprintf buffer 1020 Previous Comments: [2005-11-23 00:40:28] [EMAIL PROTECTED] What version of awk are you using? [2005-11-22 16:19:56] matteo at beccati dot com 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 #include #include #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); } [2005-11-22 16:14:03] [EMAIL PROTECTED] The initial trace sounds like a problem with the order in which the extensions are loaded. What does your main/internal_functions_cli.c file contain? [2005-11-22 16:06:26] [EMAIL PROTECTED] I still cannot replicate the problem, what does php -m show? [2005-11-22 12:12:58] matteo at beccati dot com good-ol:~/compile/php5-200511220530# gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.2 (Debian 4.0.2-2) I've replicated the issue on another machine: roast:~/compile/php5-200511220930# gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-13) The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35304 -- Edit this bug report at http://bugs.php.net/?id=35304&edit=1
#35304 [Fbk->Opn]: PHP always segfaults with --without-sqlite
ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian GNU/Linux testing/etch PHP Version: 5CVS-2005-11-20 (snap) New Comment: 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 #include #include #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); } Previous Comments: [2005-11-22 16:14:03] [EMAIL PROTECTED] The initial trace sounds like a problem with the order in which the extensions are loaded. What does your main/internal_functions_cli.c file contain? [2005-11-22 16:06:26] [EMAIL PROTECTED] I still cannot replicate the problem, what does php -m show? [2005-11-22 12:12:58] matteo at beccati dot com good-ol:~/compile/php5-200511220530# gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.2 (Debian 4.0.2-2) I've replicated the issue on another machine: roast:~/compile/php5-200511220930# gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-13) [2005-11-22 10:47:03] [EMAIL PROTECTED] Since neither me or Ilia can even reproduce this, you need to give us more information: 1) What compiler are you using? 2) Can you reproduce this on some other machine? [2005-11-22 09:41:11] matteo at beccati dot com Still segfaulting. This is the valgrind output: good-ol:~/compile/php5-200511220530# valgrind sapi/cli/php ==12191== Memcheck, a memory error detector for x86-linux. ==12191== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==12191== Using valgrind-2.4.0, a program supervision framework for x86-linux. ==12191== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==12191== For more details, rerun with: -v ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8ECB13: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E631C: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on unin
#35304 [Fbk->Opn]: PHP always segfaults with --without-sqlite
ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian GNU/Linux testing/etch PHP Version: 5CVS-2005-11-20 (snap) New Comment: good-ol:~/compile/php5-200511220530# gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu Thread model: posix gcc version 4.0.2 (Debian 4.0.2-2) I've replicated the issue on another machine: roast:~/compile/php5-200511220930# gcc -v Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.5 (Debian 1:3.3.5-13) Previous Comments: [2005-11-22 10:47:03] [EMAIL PROTECTED] Since neither me or Ilia can even reproduce this, you need to give us more information: 1) What compiler are you using? 2) Can you reproduce this on some other machine? [2005-11-22 09:41:11] matteo at beccati dot com Still segfaulting. This is the valgrind output: good-ol:~/compile/php5-200511220530# valgrind sapi/cli/php ==12191== Memcheck, a memory error detector for x86-linux. ==12191== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==12191== Using valgrind-2.4.0, a program supervision framework for x86-linux. ==12191== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==12191== For more details, rerun with: -v ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8ECB13: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E631C: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC7D3: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E631C: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC6B6: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E6376: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC6C2: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E6376: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC7D3: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E6376: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Invalid read of size 4 ==12191==at 0x8200BA3: _zend_hash_add_or_update (zend_hash.c:213) ==12191==by 0x80CE8E3: php_pdo_register_driver (pdo.c:170) ==12191==by 0x80D8FF2: zm_startup_pdo_sqlite (pdo_sqlite.c:80) ==12191==by 0x81FCDEA: zend_startup_module_ex (zend_API.c:1320) ==12191==by 0x820210A: zend_hash_apply (zend_hash.c:664) ==12191==by 0x81FCF79: zend_startup_modules (zend_API.c:1367) ==12191==by 0x81BA459: php_module_startup (main.c:1533) ==12191==by 0x82675A0: main (php_cli.c:655) ==12191== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==12191== ==12191== Process terminating with default action of signal 11 (SIGSEGV) ==12191== Access not within mapped region at address 0x0 ==12191==at 0x8200
#35304 [Fbk->Opn]: PHP always segfaults with --without-sqlite
ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian GNU/Linux testing/etch PHP Version: 5CVS-2005-11-20 (snap) New Comment: Still segfaulting. This is the valgrind output: good-ol:~/compile/php5-200511220530# valgrind sapi/cli/php ==12191== Memcheck, a memory error detector for x86-linux. ==12191== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al. ==12191== Using valgrind-2.4.0, a program supervision framework for x86-linux. ==12191== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al. ==12191== For more details, rerun with: -v ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8ECB13: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E631C: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC7D3: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E631C: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC6B6: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E6376: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC6C2: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E6376: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Conditional jump or move depends on uninitialised value(s) ==12191==at 0x1B8EC7D3: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E6376: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8F2BDD: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E7675: (within /lib/ld-2.3.5.so) ==12191==by 0x1B8E47C6: (within /lib/ld-2.3.5.so) ==12191== ==12191== Invalid read of size 4 ==12191==at 0x8200BA3: _zend_hash_add_or_update (zend_hash.c:213) ==12191==by 0x80CE8E3: php_pdo_register_driver (pdo.c:170) ==12191==by 0x80D8FF2: zm_startup_pdo_sqlite (pdo_sqlite.c:80) ==12191==by 0x81FCDEA: zend_startup_module_ex (zend_API.c:1320) ==12191==by 0x820210A: zend_hash_apply (zend_hash.c:664) ==12191==by 0x81FCF79: zend_startup_modules (zend_API.c:1367) ==12191==by 0x81BA459: php_module_startup (main.c:1533) ==12191==by 0x82675A0: main (php_cli.c:655) ==12191== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==12191== ==12191== Process terminating with default action of signal 11 (SIGSEGV) ==12191== Access not within mapped region at address 0x0 ==12191==at 0x8200BA3: _zend_hash_add_or_update (zend_hash.c:213) ==12191==by 0x80CE8E3: php_pdo_register_driver (pdo.c:170) ==12191==by 0x80D8FF2: zm_startup_pdo_sqlite (pdo_sqlite.c:80) ==12191==by 0x81FCDEA: zend_startup_module_ex (zend_API.c:1320) ==12191==by 0x820210A: zend_hash_apply (zend_hash.c:664) ==12191==by 0x81FCF79: zend_startup_modules (zend_API.c:1367) ==12191==by 0x81BA459: php_module_startup (main.c:1533) ==12191==by 0x82675A0: main (php_cli.c:655) ==12191== ==12191== ERROR SUMMARY: 26 errors from 6 contexts (suppressed: 0 from 0) ==12191== malloc/free: in use at exit: 372210 bytes in 5550 blocks. ==12191== malloc/free: 5768 allocs, 218 frees, 409794 bytes allocated. ==12191== For counts of detected errors, rerun with: -v ==12191== searching for pointers to 5550 not-freed blocks. ==12191== checked 1145848 bytes. ==12191== ==12191== LEAK SUMMARY: ==12191==definitely lost: 0 bytes in 0 blocks. ==12191== possibly lost: 0 bytes in 0 blocks. ==12191==still reachable: 372210 bytes in 5550 blocks. ==12191== suppressed: 0 bytes in 0 blocks. ==12191== Reachable blocks (those to which a pointer was found) are not shown. ==12191== To see them, rerun with: --show-reachable=yes Segmentation fault Previous Comments: [2005-11-22 04:21:22] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Compiled with your flags and things work fine, no crashes. Even valgrind does not point to any problems... [2005-11-21 17:48
#35304 [Fbk->Opn]: PHP always segfaults with --without-sqlite
ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian GNU/Linux testing/etch PHP Version: 5CVS-2005-11-20 (snap) New Comment: good-ol:~/compile/php5-200511211330# sapi/cli/php -n -r 'echo 1;' Segmentation fault good-ol:~/compile/php5-200511211330# touch somefile.php good-ol:~/compile/php5-200511211330# sapi/cli/php -n somefile.php Segmentation fault good-ol:~/compile/php5-200511211330# Previous Comments: [2005-11-21 17:24:07] [EMAIL PROTECTED] Try without setting those CFLAGS. And try running PHP like this after compile: # sapi/cli/php -n -r 'echo 1;' Does that crash? Or this: # sapi/cli/php -n somefile.php [2005-11-21 16:51:33] matteo at beccati dot com No php.ini is present in /usr/local/lib. this was the configure line: CFLAGS='-O0 -g' ./configure --disable-cgi --without-sqlite which leads to the segfault on php start (I was probabily wrong saying that it was working on start). If you need I can give you ssh access on the machine. [2005-11-21 14:25:56] [EMAIL PROTECTED] Was this really with that configure line? As I tried the same and can't get it to segfault. Do you happen to load any extensions in the used php.ini (or php-cli.ini) file? [2005-11-20 22:39:04] matteo at beccati dot com The snap doesn't segfault at start, but does on make test: (gdb) set args -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' /root/compile/php5-200511201930/run-tests.php (gdb) run Starting program: /root/compile/php5-200511201930/sapi/cli/php -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' /root/compile/php5-200511201930/run-tests.php Program received signal SIGSEGV, Segmentation fault. 0x08200adf in _zend_hash_add_or_update (ht=0x8322160, arKey=0x827ab2c "sqlite", nKeyLength=6, pData=0xb960, nDataSize=4, pDest=0x0, flag=2) at /root/compile/php5-200511201930/Zend/zend_hash.c:213 213 p = ht->arBuckets[nIndex]; (gdb) bt full #0 0x08200adf in _zend_hash_add_or_update (ht=0x8322160, arKey=0x827ab2c "sqlite", nKeyLength=6, pData=0xb960, nDataSize=4, pDest=0x0, flag=2) at /root/compile/php5-200511201930/Zend/zend_hash.c:213 h = 475667703 nIndex = 0 p = (Bucket *) 0x1 #1 0x080ce8c4 in php_pdo_register_driver (driver=0x8312438) at /root/compile/php5-200511201930/ext/pdo/pdo.c:170 No locals. #2 0x080d8fc7 in zm_startup_pdo_sqlite (type=1, module_number=8) at /root/compile/php5-200511201930/ext/pdo_sqlite/pdo_sqlite.c:80 No locals. #3 0x081fcd27 in zend_startup_module_ex (module=0x835cc30) at /root/compile/php5-200511201930/Zend/zend_API.c:1320 name_len = 9 lcname = 0x832c084 "splsubject" #4 0x08202047 in zend_hash_apply (ht=0x8327780, apply_func=0x81fcbe8 ) at /root/compile/php5-200511201930/Zend/zend_hash.c:664 p = (Bucket *) 0x835cbf8 #5 0x081fceb6 in zend_startup_modules () at /root/compile/php5-200511201930/Zend/zend_API.c:1367 No locals. #6 0x081ba3c2 in php_module_startup (sf=0x8320620, additional_modules=0x0, num_additional_modules=0) at /root/compile/php5-200511201930/main/main.c:1533 zuf = {error_function = 0x81b89f6 , printf_function = 0x81b8351 , write_function = 0x81b9e34 , fopen_function = 0x81b907c , message_handler = 0x81b91a9 , block_interruptions = 0, unblock_interruptions = 0, get_configuration_directive = 0x81b9159 , ticks_function = 0x81c61db , on_timeout = 0x81b931b , stream_open_function = 0x81b90cc , vspprintf_function = 0x81bd903 , getenv_function = 0x81c135c } zuv = {import_use_extension = 0x8296dc8 ".php", import_use_extension_length = 137475840, html_errors = 1 '\001'} module_number = 0 php_os = 0x8296d4f "Linux" #7 0x082674dd in main (argc=10, argv=0xbca4) at /root/compile/php5-200511201930/sapi/cli/php_cli.c:655 exit_status = 0 c = -1 file_handle = {type = 0 '\0', filename = 0x1 , opened_path = 0xbbdc "", handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, reader = 0, closer = 0xbc50, fteller = 0x400167f8, interactive = 134602782}}, free_filename = 142 '\216'} behavior = 1 orig_optind = 1 orig_optarg = 0x0 arg_free = 0x0 arg_excp = (char **) 0xbb9c script_file = 0x0 global_vars = {head = 0xbc14, tail = 0xbc28, count = 1073772579, size = 3221224468, dtor = 0x40016950, persistent = 8 '\b', traverse_ptr = 0x400ae6a8} interactive = 0 module_started
#35304 [Fbk->Opn]: PHP always segfaults with --without-sqlite
ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian GNU/Linux testing/etch PHP Version: 5CVS-2005-11-20 (snap) New Comment: No php.ini is present in /usr/local/lib. this was the configure line: CFLAGS='-O0 -g' ./configure --disable-cgi --without-sqlite which leads to the segfault on php start (I was probabily wrong saying that it was working on start). If you need I can give you ssh access on the machine. Previous Comments: [2005-11-21 14:25:56] [EMAIL PROTECTED] Was this really with that configure line? As I tried the same and can't get it to segfault. Do you happen to load any extensions in the used php.ini (or php-cli.ini) file? [2005-11-20 22:39:04] matteo at beccati dot com The snap doesn't segfault at start, but does on make test: (gdb) set args -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' /root/compile/php5-200511201930/run-tests.php (gdb) run Starting program: /root/compile/php5-200511201930/sapi/cli/php -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' /root/compile/php5-200511201930/run-tests.php Program received signal SIGSEGV, Segmentation fault. 0x08200adf in _zend_hash_add_or_update (ht=0x8322160, arKey=0x827ab2c "sqlite", nKeyLength=6, pData=0xb960, nDataSize=4, pDest=0x0, flag=2) at /root/compile/php5-200511201930/Zend/zend_hash.c:213 213 p = ht->arBuckets[nIndex]; (gdb) bt full #0 0x08200adf in _zend_hash_add_or_update (ht=0x8322160, arKey=0x827ab2c "sqlite", nKeyLength=6, pData=0xb960, nDataSize=4, pDest=0x0, flag=2) at /root/compile/php5-200511201930/Zend/zend_hash.c:213 h = 475667703 nIndex = 0 p = (Bucket *) 0x1 #1 0x080ce8c4 in php_pdo_register_driver (driver=0x8312438) at /root/compile/php5-200511201930/ext/pdo/pdo.c:170 No locals. #2 0x080d8fc7 in zm_startup_pdo_sqlite (type=1, module_number=8) at /root/compile/php5-200511201930/ext/pdo_sqlite/pdo_sqlite.c:80 No locals. #3 0x081fcd27 in zend_startup_module_ex (module=0x835cc30) at /root/compile/php5-200511201930/Zend/zend_API.c:1320 name_len = 9 lcname = 0x832c084 "splsubject" #4 0x08202047 in zend_hash_apply (ht=0x8327780, apply_func=0x81fcbe8 ) at /root/compile/php5-200511201930/Zend/zend_hash.c:664 p = (Bucket *) 0x835cbf8 #5 0x081fceb6 in zend_startup_modules () at /root/compile/php5-200511201930/Zend/zend_API.c:1367 No locals. #6 0x081ba3c2 in php_module_startup (sf=0x8320620, additional_modules=0x0, num_additional_modules=0) at /root/compile/php5-200511201930/main/main.c:1533 zuf = {error_function = 0x81b89f6 , printf_function = 0x81b8351 , write_function = 0x81b9e34 , fopen_function = 0x81b907c , message_handler = 0x81b91a9 , block_interruptions = 0, unblock_interruptions = 0, get_configuration_directive = 0x81b9159 , ticks_function = 0x81c61db , on_timeout = 0x81b931b , stream_open_function = 0x81b90cc , vspprintf_function = 0x81bd903 , getenv_function = 0x81c135c } zuv = {import_use_extension = 0x8296dc8 ".php", import_use_extension_length = 137475840, html_errors = 1 '\001'} module_number = 0 php_os = 0x8296d4f "Linux" #7 0x082674dd in main (argc=10, argv=0xbca4) at /root/compile/php5-200511201930/sapi/cli/php_cli.c:655 exit_status = 0 c = -1 file_handle = {type = 0 '\0', filename = 0x1 , opened_path = 0xbbdc "", handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, reader = 0, closer = 0xbc50, fteller = 0x400167f8, interactive = 134602782}}, free_filename = 142 '\216'} behavior = 1 orig_optind = 1 orig_optarg = 0x0 arg_free = 0x0 arg_excp = (char **) 0xbb9c script_file = 0x0 global_vars = {head = 0xbc14, tail = 0xbc28, count = 1073772579, size = 3221224468, dtor = 0x40016950, persistent = 8 '\b', traverse_ptr = 0x400ae6a8} interactive = 0 module_started = 0 lineno = 0 exec_direct = 0x0 exec_run = 0x0 exec_begin = 0x0 exec_end = 0x0 param_error = 0x0 hide_argv = 0 [2005-11-20 18:55:45] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-11-20 12:57:15] matteo at beccati dot com Description: I was starting to test PHP5.1.0RC6. make install was exiting with a segmentation fault, b
#35304 [Fbk->Opn]: PHP always segfaults with --without-sqlite
ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com -Status: Feedback +Status: Open Bug Type: Scripting Engine problem Operating System: Debian GNU/Linux testing/etch PHP Version: 5.1.0RC6 New Comment: The snap doesn't segfault at start, but does on make test: (gdb) set args -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' /root/compile/php5-200511201930/run-tests.php (gdb) run Starting program: /root/compile/php5-200511201930/sapi/cli/php -d 'open_basedir=' -d 'safe_mode=0' -d 'output_buffering=0' -d 'memory_limit=-1' /root/compile/php5-200511201930/run-tests.php Program received signal SIGSEGV, Segmentation fault. 0x08200adf in _zend_hash_add_or_update (ht=0x8322160, arKey=0x827ab2c "sqlite", nKeyLength=6, pData=0xb960, nDataSize=4, pDest=0x0, flag=2) at /root/compile/php5-200511201930/Zend/zend_hash.c:213 213 p = ht->arBuckets[nIndex]; (gdb) bt full #0 0x08200adf in _zend_hash_add_or_update (ht=0x8322160, arKey=0x827ab2c "sqlite", nKeyLength=6, pData=0xb960, nDataSize=4, pDest=0x0, flag=2) at /root/compile/php5-200511201930/Zend/zend_hash.c:213 h = 475667703 nIndex = 0 p = (Bucket *) 0x1 #1 0x080ce8c4 in php_pdo_register_driver (driver=0x8312438) at /root/compile/php5-200511201930/ext/pdo/pdo.c:170 No locals. #2 0x080d8fc7 in zm_startup_pdo_sqlite (type=1, module_number=8) at /root/compile/php5-200511201930/ext/pdo_sqlite/pdo_sqlite.c:80 No locals. #3 0x081fcd27 in zend_startup_module_ex (module=0x835cc30) at /root/compile/php5-200511201930/Zend/zend_API.c:1320 name_len = 9 lcname = 0x832c084 "splsubject" #4 0x08202047 in zend_hash_apply (ht=0x8327780, apply_func=0x81fcbe8 ) at /root/compile/php5-200511201930/Zend/zend_hash.c:664 p = (Bucket *) 0x835cbf8 #5 0x081fceb6 in zend_startup_modules () at /root/compile/php5-200511201930/Zend/zend_API.c:1367 No locals. #6 0x081ba3c2 in php_module_startup (sf=0x8320620, additional_modules=0x0, num_additional_modules=0) at /root/compile/php5-200511201930/main/main.c:1533 zuf = {error_function = 0x81b89f6 , printf_function = 0x81b8351 , write_function = 0x81b9e34 , fopen_function = 0x81b907c , message_handler = 0x81b91a9 , block_interruptions = 0, unblock_interruptions = 0, get_configuration_directive = 0x81b9159 , ticks_function = 0x81c61db , on_timeout = 0x81b931b , stream_open_function = 0x81b90cc , vspprintf_function = 0x81bd903 , getenv_function = 0x81c135c } zuv = {import_use_extension = 0x8296dc8 ".php", import_use_extension_length = 137475840, html_errors = 1 '\001'} module_number = 0 php_os = 0x8296d4f "Linux" #7 0x082674dd in main (argc=10, argv=0xbca4) at /root/compile/php5-200511201930/sapi/cli/php_cli.c:655 exit_status = 0 c = -1 file_handle = {type = 0 '\0', filename = 0x1 , opened_path = 0xbbdc "", handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, reader = 0, closer = 0xbc50, fteller = 0x400167f8, interactive = 134602782}}, free_filename = 142 '\216'} behavior = 1 orig_optind = 1 orig_optarg = 0x0 arg_free = 0x0 arg_excp = (char **) 0xbb9c script_file = 0x0 global_vars = {head = 0xbc14, tail = 0xbc28, count = 1073772579, size = 3221224468, dtor = 0x40016950, persistent = 8 '\b', traverse_ptr = 0x400ae6a8} interactive = 0 module_started = 0 lineno = 0 exec_direct = 0x0 exec_run = 0x0 exec_begin = 0x0 exec_end = 0x0 param_error = 0x0 hide_argv = 0 Previous Comments: [2005-11-20 18:55:45] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip [2005-11-20 12:57:15] 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. #