From owner-freebsd-arm@FreeBSD.ORG Mon Nov 3 14:08:29 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E4DB609 for ; Mon, 3 Nov 2014 14:08:29 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 72FE8645 for ; Mon, 3 Nov 2014 14:08:28 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XlIJ1-000Nng-CA; Mon, 03 Nov 2014 14:08:27 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id sA3E8Pqc091990; Mon, 3 Nov 2014 07:08:25 -0700 (MST) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX18ORFfEyGFlen5G9h3NJ+B5 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: dd /dev/random hangs on RPI-B+ From: Ian Lepore To: sig6247 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Mon, 03 Nov 2014 07:08:24 -0700 Message-ID: <1415023704.1200.47.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2014 14:08:29 -0000 On Mon, 2014-11-03 at 15:31 +0300, sig6247 wrote: > Hi, > > I'm running r273923, just noticed dd hangs with /dev/random, > something like > > % dd if=/dev/random of=/dev/null bs=512K count=1 > > It never returns and takes all the CPU, and this process can't be > killed. I also tried dd if=/dev/zero or dd if=/dev/mmcsd0, they > both look fine. > > Any help would be appreciated. Please update to r273958 or later. /dev/random was briefly broken, it didn't get fully seeded before launching userland apps and they could get blocked waiting for more entropy. Making it a bit worse, it also didn't handle signals correctly so you couldn't cancel. Should be all fixed now. -- Ian