This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Segmentation fault in __ctype_init


Dear all,

I'm encountering the following segfault when running 32-bit glibc. Is it
a known problem?

Thanks,
- D.

0xf7e3dd7b in __GI___ctype_init () at ctype-info.c:31
31      *bp = (const uint16_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_CLASS)
+ 128;
(gdb) bt
#0  0xf7e3dd7b in __GI___ctype_init () at ctype-info.c:31
#1  0xf7fe97aa in call_init (l=0xf7fdacb0, argc=argc@entry=1,
argv=argv@entry=0xffffd0f4, env=env@entry=0xffffd0fc) at dl-init.c:69
#2  0xf7fe98e4 in call_init (env=0xffffd0fc, argv=0xffffd0f4, argc=1,
l=<optimized out>) at dl-init.c:36
#3  _dl_init (main_map=0xf7ffd900, argc=1, argv=0xffffd0f4,
env=0xffffd0fc) at dl-init.c:132
#4  0xf7fdb92f in _dl_start_user ()
   from
/home/marcusmae/rpmbuild/kernelgen/head_llvm192445_i686-linux-gnu_x86_64-linux-gnu_debug/INSTALL/lib/gcc/x86_64-unknown-linux-gnu/4.8.3/32/ld-linux.so.2

(gdb) list
26     
27    void
28    __ctype_init (void)
29    {
30      const uint16_t **bp = __libc_tsd_address (const uint16_t *,
CTYPE_B);
31      *bp = (const uint16_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_CLASS)
+ 128;
32      const int32_t **up = __libc_tsd_address (const int32_t *,
CTYPE_TOUPPER);
33      *up = ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOUPPER) +
128);
34      const int32_t **lp = __libc_tsd_address (const int32_t *,
CTYPE_TOLOWER);
35      *lp = ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOLOWER) + 128);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]