Date: Wed, 5 Feb 2003 13:33:37 +0100 (CET) From: jonas@servicefactory.se To: FreeBSD-gnats-submit@FreeBSD.org Subject: i386/47951: rtld in ld.so will livelock in some circumstances Message-ID: <200302051233.h15CXbwM079494@localhost.servicefactory.se>
next in thread | raw e-mail | index | archive | help
>Number: 47951
>Category: i386
>Synopsis: rtld in ld.so will livelock in some circumstances
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 05 04:40:07 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Jonas Bulow
>Release: FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD localhost.servicefactory.se 4.7-STABLE FreeBSD 4.7-STABLE #23: Mon Feb 3 17:11:05 CET 2003 jonas@localhost.servicefactory.se:/usr/obj/usr/src/sys/TP i386
>Description:
A program compiled with -pthread will hang during startup if resources are low.
Using gcore the following backtrace was extracted from such a process:
(gdb) bt
#0 0x280c5660 in _thread_sig_handle_pending () from /usr/lib/libc_r.so.4
#1 0x280c50eb in _thread_sig_handler () from /usr/lib/libc_r.so.4
#2 0xbfbfffac in ?? ()
#3 0x281000f8 in _thread_leave_cancellation_point () from /usr/lib/libc_r.so.4
#4 0x28100445 in _thread_leave_cancellation_point () from /usr/lib/libc_r.so.4
#5 0x28100b5d in malloc () from /usr/lib/libc_r.so.4
#6 0x280cbbd4 in _thread_init () from /usr/lib/libc_r.so.4
#7 0x2810157c in _thread_init_invoker::_thread_init_invoker () from /usr/lib/libc_r.so.4
#8 0x281015b5 in _thread_init_invoker::_thread_init_invoker () from /usr/lib/libc_r.so.4
#9 0x281015de in _thread_init_invoker::_thread_init_invoker () from /usr/lib/libc_r.so.4
#10 0x2810160c in _thread_init_invoker::_thread_init_invoker () from /usr/lib/libc_r.so.4
#11 0x28088caa in _init () from /usr/lib/libc_r.so.4
#12 0x2804f978 in _rtld () from /usr/libexec/ld-elf.so.1
The process is running (state "R") and therefore consumes CPU resources.
>How-To-Repeat:
Run a program compiled with -pthread and dynamicly linked with other libraries in an environment with low memory resources. Sometimes it will lock.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302051233.h15CXbwM079494>
