This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
_dl_profile_fixup & libc_p
- From: "Gian Lorenzo Meocci" <glmeocci at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 19 Mar 2008 09:56:41 +0100
- Subject: _dl_profile_fixup & libc_p
Hi,
I have a sample program that call getpwuid. When I compile it with
-lc_p I always get something like this:
Program received signal SIGSEGV, Segmentation fault.
0x08095f17 in _dl_fixup (l=0x80c95bc, reloc_offset=3217758520) at
dl-runtime.c:70
70 const char *strtab = (const void *) D_PTR (l, l_info[DT_STRTAB]);
(gdb) bt
#0 0x08095f17 in _dl_fixup (l=0x80c95bc, reloc_offset=3217758520) at
dl-runtime.c:70
#1 0x0807fa00 in _dl_runtime_resolve ()
#2 0xb7f8bb55 in _nss_compat_getpwuid_r (uid=0, pwd=0x80c95bc,
buffer=0x80d42d8 "", buflen=1024, errnop=0x80d0818)
at nss_compat/compat-pwd.c:1105
#3 0x0805032e in __getpwuid_r (uid=0, resbuf=0x80c95bc,
buffer=0x80d42d8 "", buflen=1024, result=0xbfcb19fc) at
../nss/getXXbyYY_r.c:226
#4 0x08050171 in getpwuid (uid=0) at ../nss/getXXbyYY.c:119
#5 0x08048339 in main ()
I think, in this case, program must call _dl_profile_fixup instead
_dl_fixup. But I don't know.
best,
--
Gian Lorenzo Meocci
http://www.meocci.it