[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fwd: Re: libc/4938: resolvfail segfaults - locale not initialized]
From: |
Patrick Smith |
Subject: |
[Fwd: Re: libc/4938: resolvfail segfaults - locale not initialized] |
Date: |
Tue, 14 Jan 2003 00:38:21 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.2.1) Gecko/20030113 |
On Saturday, I used the "send email to interested parties" link in gnats
to try to add some information to bug 4938. It still hasn't shown up in
the audit trail, so I'm now forwarding the message here.
The important point to note is that libpthread.so is not getting the
proper initialization code inserted.
(And I'm sort of curious as to how the initialization happens when
libpthread.a is used.)
-------- Original Message --------
Subject: Re: libc/4938: resolvfail segfaults - locale not initialized
Date: Sat, 11 Jan 2003 19:11:05 -0500
From: Patrick Smith <address@hidden>
To: address@hidden, gnats-admin, address@hidden
http%3A%2F%2Fbugs.gnu.org%2Fcgi-bin%2Fgnatsweb.pl%3Fcmd%3Dview%2520audit-trail%26database%3Dglibc%26pr%3D4938
It seems the proper initialization code is not being inserted into
libpthread.so. This causes the locale bug mentioned above, and has
other side effects. For example, this little program
#include <pthread.h>
#include <stdio.h>
#include <errno.h>
int main()
{
int policy;
struct sched_param param;
printf("%d\n", pthread_getschedparam(pthread_self(), &policy, ¶m));
return 0;
}
print 3. It should print 0.
When libpthread.so is built, the linuxthreads crti.o and crtn.o are not
inserted. I am currently using the following patch as a workaround:
--- linuxthreads/Makefile.orig 2003-01-11 13:49:52.000000000 -0500
+++ linuxthreads/Makefile 2003-01-11 14:13:22.000000000 -0500
@@ -158,3 +158,14 @@
$(SHELL) -e $< $(common-objpfx) > $@
endif
endif
+
+define build-shlib-helper
+$(LINK.o) -shared $(static-libgcc) -Wl,-O1 $(sysdep-LDFLAGS)
$(config-LDFLAGS) \
+ -nostdlib $(objpfx)crti.o \
+ $(extra-B-$(@F:lib%.so=%).so) -B$(csu-objpfx) \
+ $(extra-B-$(@F:lib%.so=%).so) $(load-map-file) \
+ -Wl,-soname=lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \
+ $(LDFLAGS.so) $(LDFLAGS-$(@F:lib%.so=%).so) \
+ -L$(subst :, -L,$(rpath-link)) -Wl,-rpath-link=$(rpath-link) \
+ $(objpfx)crtn.o
+endef
--
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fwd: Re: libc/4938: resolvfail segfaults - locale not initialized],
Patrick Smith <=