From nobody@FreeBSD.org Thu Jan 10 13:19:37 2008 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A3D616A469 for ; Thu, 10 Jan 2008 13:19:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 00AF213C4D3 for ; Thu, 10 Jan 2008 13:19:37 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m0ADIU9N025830 for ; Thu, 10 Jan 2008 13:18:30 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m0ADIU11025829; Thu, 10 Jan 2008 13:18:30 GMT (envelope-from nobody) Message-Id: <200801101318.m0ADIU11025829@www.freebsd.org> Date: Thu, 10 Jan 2008 13:18:30 GMT From: Simeon To: freebsd-gnats-submit@FreeBSD.org Subject: Freezes when compiling code on mounter ext2fs partitions X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 119529 >Category: kern >Synopsis: [ext2fs] [patch] Freezes when compiling code on mounter ext2fs partitions >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-fs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 10 13:20:02 UTC 2008 >Closed-Date: Mon May 18 16:44:54 UTC 2009 >Last-Modified: Mon May 18 16:44:54 UTC 2009 >Originator: Simeon >Release: 7.0 RC1 everything default >Organization: Home >Environment: AMD64 >Description: Hello, I would like to report a strange behaviour of FreeBSD AMD64 ver. 7.0 RC1. I installed it on a Laptop with Intel Core 2 Duo CPU. Everything default. I have an ext2fs partition where I store all installed compilers and libraries. I changed directory to my ext3 (ext2fs) partition and I started compiling one of my libraries. The system Hanged. I repeated the same thing with several other libraries (ATLAS(BLAS), LAPACK, ...) and everytime the system hanged. Then I copied the sources to /usr and I compiled them there. No problem. Everything was fine there. Best, Simeon. >How-To-Repeat: It is very easy to repeat. Just mount an ext2fs partition copy some large source code and try to compile it there. >Fix: There was a similar problem in the past and it was supposed to be fixed in 6.2. Maybe now for some reason it came back to life. >Release-Note: >Audit-Trail: From: Jaakko Heinonen To: archwndas@yahoo.com Cc: bug-followup@FreeBSD.org Subject: Re: kern/119529: [ext2fs] Freezes when compiling code on mounter ext2fs partitions Date: Sun, 4 Jan 2009 12:55:12 +0200 Please see the following message and the patch below. http://lists.freebsd.org/pipermail/freebsd-fs/2009-January/005546.html --- patch begins here --- Index: sys/gnu/fs/ext2fs/ext2_bitops.h =================================================================== --- sys/gnu/fs/ext2fs/ext2_bitops.h (revision 186639) +++ sys/gnu/fs/ext2fs/ext2_bitops.h (working copy) @@ -84,7 +84,7 @@ find_next_zero_bit(void *data, size_t sz mask = ~0U << (ofs & 31); bit = *p | ~mask; if (bit != ~0U) - return (ffs(~bit) + ofs - 1); + return (ffs(~bit) + (ofs & ~31U) - 1); p++; ofs = (ofs + 31U) & ~31U; } --- patch ends here --- Does the patch fix the problem for you? -- Jaakko State-Changed-From-To: open->feedback State-Changed-By: vwe State-Changed-When: Sun Jan 18 22:53:50 UTC 2009 State-Changed-Why: Note that submitter has been asked for feedback. http://www.freebsd.org/cgi/query-pr.cgi?pr=119529 Responsible-Changed-From-To: freebsd-bugs->freebsd-fs Responsible-Changed-By: linimon Responsible-Changed-When: Mon May 18 04:31:44 UTC 2009 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=119529 State-Changed-From-To: feedback->closed State-Changed-By: kib State-Changed-When: Mon May 18 16:44:21 UTC 2009 State-Changed-Why: The patch in the trail log was committed. I believe it should fix the issue. http://www.freebsd.org/cgi/query-pr.cgi?pr=119529 >Unformatted: