From:             daniel dot junkmail at gmail dot com
Operating system: RedHat 8
PHP version:      4CVS-2005-02-03 (stable)
PHP Bug Type:     Sybase-ct (ctlib) related
Bug description:  sybase-ct causes PHP to crash

Description:
------------
On my system with php configured --with-sybase-ct=/opt/sybase my PHP
interpreter crashes.  The backtrace is attached to this message.

gcc: 3.2
Sybase: 12.5
Glibc: 2.3.2

[EMAIL PROTECTED] php4-STABLE-200502031930]# gdb ./sapi/cli/php
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...
(gdb) 
(gdb) 
(gdb) start
Undefined command: "start".  Try "help".
(gdb) run
Starting program: /usr/local/src/php4-STABLE-200502031930/sapi/cli/php 

Program received signal SIGSEGV, Segmentation fault.
0x4204c661 in vfprintf () from /lib/i686/libc.so.6
(gdb) bt full
#0  0x4204c661 in vfprintf () from /lib/i686/libc.so.6
No symbol table info available.
#1  0x42136120 in _IO_stderr_ () from /lib/i686/libc.so.6
No symbol table info available.
#2  0x4204c05b in vfprintf () from /lib/i686/libc.so.6
No symbol table info available.
#3  0x4205254f in fprintf () from /lib/i686/libc.so.6
No symbol table info available.
#4  0x40097a68 in com_perr () from /opt/sybase/lib/libcomn.so
No symbol table info available.
#5  0x40094c45 in com_intl_verify_ctxloc () from
/opt/sybase/lib/libcomn.so
No symbol table info available.
#6  0x401057bc in cs_ctx_alloc () from /opt/sybase/lib/libcs.so
No symbol table info available.
#7  0x080d538e in php_sybase_init_globals (sybase_globals=0x8168680)
    at
/usr/local/src/php4-STABLE-200502031930/ext/sybase_ct/php_sybase_ct.c:361
        opt = -1073751032
#8  0x080d554c in zm_startup_sybase (type=1, module_number=3)
    at
/usr/local/src/php4-STABLE-200502031930/ext/sybase_ct/php_sybase_ct.c:423
No locals.
#9  0x08114ec3 in zend_startup_module (module=0x8160c40)
    at /usr/local/src/php4-STABLE-200502031930/Zend/zend_API.c:1006
No locals.
#10 0x080f0665 in php_startup_extensions (ptr=0x8166428, count=0)
    at /usr/local/src/php4-STABLE-200502031930/main/main.c:1045
        end = (struct _zend_module_entry **) 0x8166448
#11 0x08123f01 in php_startup_internal_extensions () at
main/internal_functions_cli.c:63
No locals.
#12 0x080f0a21 in php_module_startup (sf=0xffffffff,
additional_modules=0x0, 
    num_additional_modules=0) at
/usr/local/src/php4-STABLE-200502031930/main/main.c:1218
        zuf = {error_function = 0x80efb78 <php_error_cb>, 
---Type <return> to continue, or q <return> to quit---
  printf_function = 0x80ef700 <php_printf>, write_function = 0x80f0624
<php_body_write_wrapper>, 
  fopen_function = 0x80f0008 <php_fopen_wrapper_for_zend>, 
  message_handler = 0x80f0088 <php_message_handler_for_zend>,
block_interruptions = 0, 
  unblock_interruptions = 0, 
  get_configuration_directive = 0x80f0048
<php_get_configuration_directive_for_zend>, 
  ticks_function = 0x80f8f9c <php_run_ticks>, on_timeout = 0x80f0188
<php_on_timeout>, 
  open_function = 0x80f0028 <php_open_wrapper_for_zend>}
        zuv = {import_use_extension = 0x81407af ".php",
import_use_extension_length = 135686520, 
  html_errors = 1 '\001'}
        i = 0
#13 0x081233fb in main (argc=1, argv=0xbfffde94)
    at /usr/local/src/php4-STABLE-200502031930/sapi/cli/php_cli.c:579
        exit_status = 0
        c = -1
        file_handle = {type = 1 '\001', filename = 0x0, opened_path =
0x40033e62 "[\201&#8730;R ", 
  handle = {fd = 1073820848, fp = 0x400134b0}, free_filename = 56 '8'}
        behavior = 1
        orig_optind = 1
        orig_optarg = 0x0
        arg_free = 0x0
        arg_excp = (char **) 0x0
        script_file = 0x0
        global_vars = {head = 0x400076cf, tail = 0x400134b0, size = 1523,
count = 1073821368, 
  dtor = 0xbfffde50, persistent = 33 '!', traverse_ptr = 0x40013854}
        interactive = 0
        module_started = 0
        lineno = 0
        exec_direct = 0x0
        param_error = 0x0
        hide_argv = 0
#14 0x42015967 in __libc_start_main () from /lib/i686/libc.so.6
---Type <return> to continue, or q <return> to quit---
No symbol table info available.



-- 
Edit bug report at http://bugs.php.net/?id=31835&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31835&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31835&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31835&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31835&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31835&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31835&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31835&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31835&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31835&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31835&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31835&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31835&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31835&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31835&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31835&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31835&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31835&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31835&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31835&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31835&r=mysqlcfg

Reply via email to