php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3847 SEGFAULT in PHP when Sybase environment variables are not set
Submitted: 2000-03-16 11:39 UTC Modified: 2000-11-21 04:01 UTC
From: joey at samaritan dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Debian Linux 2.1, glibc 2.0, ker
Private report: No CVE-ID: None
 [2000-03-16 11:39 UTC] joey at samaritan dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-24 20:17 UTC] joey@php.net
OK, this is not a PHP bug per-se.
Still, I'm wondering if there is not some way the PHP can handle this.
 [2000-07-31 22:52 UTC] waldschrott@php.net
Please verify that it?s still happening using the latest
version of PHP (release 4.0.1pl2 or CVS).
 [2000-11-21 04:01 UTC] sniper@php.net
no feedback. 
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 15 19:00:01 2026 UTC