Got some help how to debug this and here's the backtrace:

(gdb) r /opt/DEV/php/php4/pear/install-pear.php
Starting program: /opt/DEV/php/php4/sapi/cli/php 
/opt/DEV/php/php4/pear/install-pear.php
[New Thread 16384 (LWP 23911)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 23911)]
0x08276b6e in hash_lookup (hashtab=0x8405298, key=0xbffff550 "àS1@\200¤") at misc.c:313
313     misc.c: No such file or directory.
        in misc.c
(gdb) bt
#0  0x08276b6e in hash_lookup (hashtab=0x8405298, key=0xbffff550 "àS1@\200¤") at 
misc.c:313
#1  0x402508a8 in find_alias () from /usr//lib/librecode.so.0
#2  0x402528db in register_all_modules () from /usr//lib/librecode.so.0
#3  0x40253192 in recode_new_outer () from /usr//lib/librecode.so.0
#4  0x08166624 in zm_startup_recode (type=1, module_number=11) at 
/opt/DEV/php/php4/ext/recode/recode.c:102
#5  0x0823ef82 in zend_startup_module (module=0x83777c0) at 
/opt/DEV/php/php4/Zend/zend_API.c:1029
#6  0x08201dc6 in php_startup_extensions (ptr=0x8381ae8, count=43) at 
/opt/DEV/php/php4/main/main.c:1106
#7  0x0825a752 in php_startup_internal_extensions () at 
main/internal_functions_cli.c:135
#8  0x0820238b in php_module_startup (sf=0x8381a40, additional_modules=0x0, 
num_additional_modules=0) at /opt/DEV/php/php4/main/main.c:1271
#9  0x08259953 in main (argc=2, argv=0xbffff894) at 
/opt/DEV/php/php4/sapi/cli/php_cli.c:479
#10 0x40bcda44 in __libc_start_main () from /lib/libc.so.6
(gdb) bt full
#0  0x08276b6e in hash_lookup (hashtab=0x8405298, key=0xbffff550 "àS1@\200¤") at 
misc.c:313
        ret = (struct hash_entry *) 0x8276b52
#1  0x402508a8 in find_alias () from /usr//lib/librecode.so.0
No symbol table info available.
#2  0x402528db in register_all_modules () from /usr//lib/librecode.so.0
No symbol table info available.
#3  0x40253192 in recode_new_outer () from /usr//lib/librecode.so.0
No symbol table info available.
#4  0x08166624 in zm_startup_recode (type=1, module_number=11) at 
/opt/DEV/php/php4/ext/recode/recode.c:102
No locals.
#5  0x0823ef82 in zend_startup_module (module=0x83777c0) at 
/opt/DEV/php/php4/Zend/zend_API.c:1029
No locals.
#6  0x08201dc6 in php_startup_extensions (ptr=0x8381ae8, count=43) at 
/opt/DEV/php/php4/main/main.c:1106
        end = (struct _zend_module_entry **) 0x8381b6c
#7  0x0825a752 in php_startup_internal_extensions () at 
main/internal_functions_cli.c:135
No locals.
#8  0x0820238b in php_module_startup (sf=0x8381a40, additional_modules=0x0, 
num_additional_modules=0) at /opt/DEV/php/php4/main/main.c:1271
        zuf = {error_function = 0x82008a9 <php_error_cb>, printf_function = 0x82001f5 
<php_printf>, write_function = 0x8201d7b <php_body_write_wrapper>,
  fopen_function = 0x8201000 <php_fopen_wrapper_for_zend>, message_handler = 0x82010a4 
<php_message_handler_for_zend>, block_interruptions = 0, unblock_interruptions = 0,
  get_configuration_directive = 0x8201052 <php_get_configuration_directive_for_zend>, 
ticks_function = 0x820cf42 <php_run_ticks>, on_timeout = 0x82013fb <php_on_timeout>}
        zuv = {import_use_extension = 0x82ee4f0 ".php", import_use_extension_length = 
0, html_errors = 252 'ü'}
        module_number = 0
        php_os = 0x82ee46c "Linux"
        i = 6
#9  0x08259953 in main (argc=2, argv=0xbffff894) at 
/opt/DEV/php/php4/sapi/cli/php_cli.c:479
        exit_status = 0
        c = -1
        file_handle = {type = 96 '`', filename = 0xb <Address 0xb out of bounds>, 
opened_path = 0xbffff818 "8øÿ¿ó:¾@à\030Î@ øÿ¿ÿÿÿÿ", handle = {fd = 1093378459,
    fp = 0x412ba19b}, free_filename = 240 'ð'}
        behavior = 1
        no_headers = 1
        orig_optind = 1
        orig_optarg = 0x0
        arg_free = 0x0
        arg_excp = (char **) 0xbffff7ec
        script_file = 0x0
        global_vars = {head = 0x40a1e180, tail = 0xbffff7e4, count = 1079433356, size 
= 1079433360, dtor = 0, persistent = 0 '\0', traverse_ptr = 0x0}
        interactive = 0
        module_started = 0
        exec_direct = 0x0
        param_error = 0x0
#10 0x40bcda44 in __libc_start_main () from /lib/libc.so.6
No symbol table info available.


/ Magnus

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to