From owner-freebsd-current@FreeBSD.ORG Fri May 30 00:10:45 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2334C37B401 for ; Fri, 30 May 2003 00:10:45 -0700 (PDT) Received: from seed.net.tw (sn16.seed.net.tw [139.175.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id E840443F75 for ; Fri, 30 May 2003 00:10:43 -0700 (PDT) (envelope-from leafy@chihiro.leafy.idv.tw) Received: from [210.64.32.187] (port=49562 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.14:2) id 19Le2C-000KI2-N6 for freebsd-current@freebsd.org; Fri, 30 May 2003 15:10:40 +0800 Received: from chihiro.leafy.idv.tw (nobody@localhost [127.0.0.1]) by chihiro.leafy.idv.tw (8.12.9/8.12.9) with ESMTP id h4U7AcF4023058 for ; Fri, 30 May 2003 15:10:39 +0800 (CST) (envelope-from leafy@chihiro.leafy.idv.tw) Received: (from leafy@localhost) by chihiro.leafy.idv.tw (8.12.9/8.12.9/Submit) id h4U7Acd8023057 for freebsd-current@freebsd.org; Fri, 30 May 2003 15:10:38 +0800 (CST) Date: Fri, 30 May 2003 15:10:37 +0800 From: leafy To: freebsd-current@freebsd.org Message-ID: <20030530071037.GA22809@chihiro.leafy.idv.tw> Mail-Followup-To: freebsd-current@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: libthr vs ports/net/linuxigd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 07:10:45 -0000 Using libthr for upnpd produces following backtrace when starting up #0 0x281f5b03 in _umtx_lock () from /usr/lib/libc.so.5 (gdb) backtrace #0 0x281f5b03 in _umtx_lock () from /usr/lib/libc.so.5 #1 0x280880e8 in _spinlock_pthread (pthread=0x4, lck=0x8054130) at umtx.h:62 #2 0x28088048 in _spinlock (lck=0xc2986ab0) at /usr/src/lib/libthr/thread/thr_spinlock.c:69 #3 0x2808446d in mutex_lock_common (mutex=0x280d8e0c, nonblock=0) at /usr/src/lib/libthr/thread/thr_mutex.c:357 #4 0x28084724 in __pthread_mutex_lock (mutex=0x280d8e0c) at /usr/src/lib/libthr/thread/thr_mutex.c:511 #5 0x280a927a in GetNextItemInQueue(ThreadArg*, PoolQueueItem&) () from /usr/local/lib/libupnp.so #6 0x280a938e in GetNextItemInQueue(ThreadArg*, PoolQueueItem&) () from /usr/local/lib/libupnp.so #7 0x2808214c in _thread_start () at /usr/src/lib/libthr/thread/thr_create.c:220 #8 0x282497a7 in _ctx_start () from /usr/lib/libc.so.5 Curiously, libkse works fine (but you can't do 'killall upnpd' with libkse though) Jiawei Ye -- "Without the userland, the kernel is useless." --inspired by The Tao of Programming