freebsd-dev/libexec/rtld-elf
Konstantin Belousov e91ff25c0c Fix the problem with the C++ exception handling for the multithreaded
programs.

From the PR description:
The gcc runtime's _Unwind_Find_FDE function, invoked during exception
handling's stack unwinding, is not safe to execute from within multiple
threads. FreeBSD' s dl_iterate_phdr() however permits multiple threads
to pass through it though. The result is surprisingly reliable infinite
looping of one or more threads if they just happen to be unwinding at
the same time.

Introduce the new lock that is write locked around the dl_iterate_pdr,
thus providing required exclusion for the stack unwinders.

PR:	threads/123062
Submitted by:	Andy Newman <an at atrn org>
Reviewed by:	kan
MFC after:	2 weeks
2008-05-06 09:27:41 +00:00
..
amd64
arm
i386
ia64
mips MFp4: Add mips support for dynamic linking. 2008-04-04 20:59:26 +00:00
powerpc
sparc64
debug.c
debug.h
libmap.c
libmap.h
Makefile
malloc.c
map_object.c
rtld_lock.c Fix the problem with the C++ exception handling for the multithreaded 2008-05-06 09:27:41 +00:00
rtld_lock.h Fix the problem with the C++ exception handling for the multithreaded 2008-05-06 09:27:41 +00:00
rtld_tls.h
rtld.1
rtld.c Fix the problem with the C++ exception handling for the multithreaded 2008-05-06 09:27:41 +00:00
rtld.h MFp4: Add mips support for dynamic linking. 2008-04-04 20:59:26 +00:00
Symbol.map
xmalloc.c