ID: 35304 User updated by: matteo at beccati dot com Reported By: matteo at beccati dot com Status: Open Bug Type: PDO related Operating System: Debian GNU/Linux testing/etch PHP Version: 5CVS-2005-11-20 (snap) New Comment:
This was without recompiling. I'll recompile without CFLAGS and let you know. Previous Comments: ------------------------------------------------------------------------ [2005-11-21 17:25:43] matteo at beccati dot com 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# ------------------------------------------------------------------------ [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=0xbffff960, 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=0xbffff960, 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 <zend_startup_module_ex>) 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 <php_error_cb>, printf_function = 0x81b8351 <php_printf>, write_function = 0x81b9e34 <php_body_write_wrapper>, fopen_function = 0x81b907c <php_fopen_wrapper_for_zend>, message_handler = 0x81b91a9 <php_message_handler_for_zend>, block_interruptions = 0, unblock_interruptions = 0, get_configuration_directive = 0x81b9159 <php_get_configuration_directive_for_zend>, ticks_function = 0x81c61db <php_run_ticks>, on_timeout = 0x81b931b <php_on_timeout>, stream_open_function = 0x81b90cc <php_stream_open_for_zend>, vspprintf_function = 0x81bd903 <vspprintf>, getenv_function = 0x81c135c <sapi_getenv>} 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=0xbffffca4) at /root/compile/php5-200511201930/sapi/cli/php_cli.c:655 exit_status = 0 c = -1 file_handle = {type = 0 '\0', filename = 0x1 <Address 0x1 out of bounds>, opened_path = 0xbffffbdc "", handle = {fd = 0, fp = 0x0, stream = {handle = 0x0, reader = 0, closer = 0xbffffc50, fteller = 0x400167f8, interactive = 134602782}}, free_filename = 142 '\216'} behavior = 1 orig_optind = 1 orig_optarg = 0x0 arg_free = 0x0 arg_excp = (char **) 0xbffffb9c script_file = 0x0 global_vars = {head = 0xbffffc14, tail = 0xbffffc28, 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 ------------------------------------------------------------------------ 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