This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Segmentation fault in __ctype_init
- From: Dmitry Mikushin <dmitry at kernelgen dot org>
- To: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Fri, 15 Nov 2013 16:30:52 +0100
- Subject: Segmentation fault in __ctype_init
- Authentication-results: sourceware.org; auth=none
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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);
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEcBAEBAgAGBQJShj4lAAoJENwm3+sbf/pMF5AH/A7Dc+Y3YpyGC97jn2I8oHRX
BedH+wzS6zdiE0o4kPbEwG408FfWh9ZS3SRlDu+p2Ot8+kwLmZyYpED0hAB7Bsqj
5kQjqt4uaBL3UhLGohQVaNPkarDOGfeWJdV5lm2h6B2Kn30/FMaB7VSS8PniAjf6
Lguj98ZfrSXrCXoxvO7x84lWDYEWxwJJsAoToe6YeYPIIn7xd7KbT9+AkGHQgzo1
lL3akNR8ZEwt1rdHlWm95Vwh1L8QEDlVvbFuVEsJxtLKHhrxwJnHQKTvzLT5zNBS
CzRAbzYdf+O6XWkTX5HnSYXw77rZUExgVOS/hldjIyA+BTfOub/0nNIvJxTQ8xg=
=oAtA
-----END PGP SIGNATURE-----