PHP 4.0 Bug #3847: SEGFAULT in PHP when Sybase environment variables are not set

From: Date: Thu, 16 Mar 2000 16:39:37 +0000
Subject: PHP 4.0 Bug #3847: SEGFAULT in PHP when Sybase environment variables are not set
Groups: php.dev 
Request: Send a blank email to php-dev+get-16891@lists.php.net to get a copy of this message
From: joey@samaritan.com Operating system: Debian Linux 2.1, glibc 2.0, kernel 2.2.11 PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Sybase-ct (ctlib) related Bug description: SEGFAULT in PHP when Sybase environment variables are not set Here is the backtrace...got this from someone else, but have seen the same segfault myself in php4b3... I can't figure out why #2 (and #3?) cause a segfault? #0 0x4018d0a1 in main_arena () from /lib/libc.so.6 #1 0x684018d0 in ?? () #2 0x400e4f66 in _IO_vfprintf (s=0x4018cfc0, format=0xbfffe12c "\n\nThe context allocation routine failed when it tried to load localization files!!\n", ap=0xbfffdad8) at vfprintf.c:1029 #3 0x400ecf47 in fprintf (stream=0x4018cfc0, format=0xbfffe12c "\n\nThe context allocation routine failed when it tried to load localization files!!\n") at fprintf.c:32 #4 0x40517ffe in com_perr () from /home/sybase-11.9.2/lib/libcomn.so #5 0x40509e1d in com_intl_verify_ctxloc () from /home/sybase-11.9.2/lib/libcomn.so #6 0x405ab4ad in cs_ctx_alloc () from /home/sybase-11.9.2/lib/libcs.so #7 0x4040be92 in php_minit_sybase (type=1, module_number=19) at php_sybase_ct.c:232 #8 0x403ac6ad in zend_startup_module (module=0x40450c20) at zend_API.c:700 #9 0x4038bdbc in php_startup_extensions (ptr=0x4044c118, count=28) at main.c:723 #10 0x4038c8b5 in php_startup_internal_extensions () at internal_functions.c:108 #11 0x4038c021 in php_module_startup (sf=0x4044c7a0) at main.c:865 #12 0x403b6f38 in php_apache_startup (sapi_module=0x4044c7a0) at mod_php4.c:266 #13 0x403b7809 in php_init_handler (s=0x8091ad4, p=0x8091aac) at mod_php4.c:641 #14 0x8054011 in ap_init_modules () #15 0x805b4ee in main () #16 0x400b81eb in __libc_start_main (main=0x805b290 <main>, argc=2, argv=0xbffffc04, init=0x804e684 <_init>, fini=0x80794ec <_fini>, rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffbfc) at ../sysdeps/generic/libc-start.c:90

« previous php.dev (#16891) next »