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=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

------------------------------------------------------------------------

[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.
#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.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35304&edit=1

Reply via email to