From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 5 16:49:25 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2CB341065678 for ; Sun, 5 Feb 2012 16:49:25 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7FBAB8FC1E for ; Sun, 5 Feb 2012 16:49:23 +0000 (UTC) Received: by werm13 with SMTP id m13so6072282wer.13 for ; Sun, 05 Feb 2012 08:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZjSyFtEQurqxppA0JOEca+njceqKpO5ZKd9teLjXhlg=; b=PFp6ifV8nKDPIBf1+9eWGvCMN3mwcFDdK/zjtfra/hdTGr2SqYjZTD71Q/4acuf283 oYKjrx2OIxZV5tRQGaE3+WQWYhUAIGVCwqHrU8VAvgdzcele/Tms20a+OyjqDh/ST/IA 3tdU1e6N6v5lGU4aco04QKhVRJKZ2Xlh+35ho= MIME-Version: 1.0 Received: by 10.216.137.219 with SMTP id y69mr5648560wei.51.1328460563222; Sun, 05 Feb 2012 08:49:23 -0800 (PST) Sender: asmrookie@gmail.com Received: by 10.216.177.73 with HTTP; Sun, 5 Feb 2012 08:49:23 -0800 (PST) In-Reply-To: References: <201201110806.30620.jhb@freebsd.org> <5D37298B-9D68-4F0F-8AAB-E8F2DBB9D9C3@transactionware.com> Date: Sun, 5 Feb 2012 17:49:23 +0100 X-Google-Sender-Auth: ZyyhwTeudYSAbHSs8t66zxiiI6E Message-ID: From: Attilio Rao To: Ivan Voras Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Garrett Cooper , freebsd-hackers@freebsd.org, Xin LI , davidxu@freebsd.org, Jan Mikkelsen Subject: Re: sem(4) lockup in python? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Feb 2012 16:49:25 -0000 2012/2/5 Ivan Voras : > On 5 February 2012 11:44, Garrett Cooper wrote: > >> >> =C2=A0 =C2=A0'make MAKE_JOBS_NUMBER=3D1' is the workground used right no= w.. > > David Xu suggested that it is a bug in Python - it doesn't set > process-shared attribute when it calls sem_init(), but i've tried > patching it (replacing the port patchfile file the one I've attached) > and I still get the hang. Guys, it would be valuable if you do the following: 1) recompile your kernel with INVARIANTS, WITNESS and without WITNESS_SKIPS= PIN 2a) If you have a serial console, please run the DDB stuff through it (go to point 3) 2b) If you don't have a serial console please run the DDB stuff in textdump (go to point 3) 3) Collect the following informations: - show allpcpu - show alllocks - ps - alltrace 3a) If you had the serial console (thus not textdump) please collect the coredump with: call doadump 4) reset your machine You will end up with the textdump or coredump + all the serial logs necessary to debug this. If you cannot reproduce your issue with WITNESS enabled, please remove from your kernel config and avoid to call 'show alllocks' when in DDB. But try to leave INVARIANTS on. Hope this helps, Attilio --=20 Peace can only be achieved by understanding - A. Einstein