From owner-freebsd-emulation@FreeBSD.ORG Thu Jan 20 13:23:50 2011 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF55C1065672 for ; Thu, 20 Jan 2011 13:23:50 +0000 (UTC) (envelope-from infofarmer@FreeBSD.org) Received: from heka.cenkes.org (heka.cenkes.org [IPv6:2002:d056:e3f1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9A85E8FC08 for ; Thu, 20 Jan 2011 13:23:50 +0000 (UTC) Received: from [192.168.1.27] (unknown [82.179.192.158]) (Authenticated sender: sat) by heka.cenkes.org (Postfix) with ESMTPSA id 0E4442EF28; Thu, 20 Jan 2011 16:23:48 +0300 (MSK) From: Andrew Pantyukhin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 20 Jan 2011 16:23:46 +0300 Message-Id: <269E4CF4-7C22-49CC-A263-D3F3E48F5E18@FreeBSD.org> To: emulation@freebsd.org Mime-Version: 1.0 (Apple Message framework v1082) X-Mailer: Apple Mail (2.1082) Cc: zvqops Subject: linux futex deadlock X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2011 13:23:50 -0000 Hello! I've stumbled upon an easily reproducible problem, seemingly somewhere = around the linux_futex.c code. When genpuid (from port audio/linux-genpuid) is run in several copies = simultaneously, all the processes but the very first one end up in = states futex or nanslp. If a make linux futex calls a noop (commenting = out a few body functions), the processes work fine in parallel. You can reproduce this way: - install linux-genpuid - get a few mp3's, say 1.mp3, 2.mp3, 3.mp3 - run: for i in 1 2 3;do genpuid e4230822bede81ef71cde723db743e27 -xml -data -print rmd=3D2 = $i.mp3 & done Works fine under a recent ubuntu. Anyone interested to look at this?=