From owner-freebsd-bugs Wed Feb 5 4:30:23 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6016437BD6F for ; Wed, 5 Feb 2003 04:30:17 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B213343FB1 for ; Wed, 5 Feb 2003 04:30:12 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h15CUCNS087644 for ; Wed, 5 Feb 2003 04:30:12 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h15CUCMS087643; Wed, 5 Feb 2003 04:30:12 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 433BF37BB49 for ; Wed, 5 Feb 2003 04:25:01 -0800 (PST) Received: from mailgw.servicefactory.se (mailgw.servicefactory.se [192.71.33.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DDF643FA3 for ; Wed, 5 Feb 2003 04:24:59 -0800 (PST) (envelope-from jonas@ark.servicefactory.se) Received: from ark.servicefactory.se (ark.servicefactory.se [192.71.33.5]) by mailgw.servicefactory.se (8.11.6/8.11.6) with ESMTP id h15COq300237 for ; Wed, 5 Feb 2003 13:24:52 +0100 (CET) Received: from localhost.servicefactory.se (ark.servicefactory.se [192.71.33.5]) by ark.servicefactory.se (8.11.6/8.11.6) with ESMTP id h15COq001086 for ; Wed, 5 Feb 2003 13:24:52 +0100 (CET) Received: (from jonas@localhost) by localhost.servicefactory.se (8.12.6/8.12.6/Submit) id h15COlxS079384; Wed, 5 Feb 2003 13:24:47 +0100 (CET) Message-Id: <200302051224.h15COlxS079384@localhost.servicefactory.se> Date: Wed, 5 Feb 2003 13:24:47 +0100 (CET) From: Jonas Bulow Reply-To: Jonas Bulow To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/47950: rtld in ld.so will livelock in some circumsyances Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47950 >Category: i386 >Synopsis: rtld in ld.so will livelock in some circumsyances >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:30:11 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 on 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 and 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. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message