From owner-freebsd-arm@freebsd.org Sat Apr 7 20:12:47 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 835EBF816FB for ; Sat, 7 Apr 2018 20:12:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F248F78D9B for ; Sat, 7 Apr 2018 20:12:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3115E7C3E for ; Sat, 7 Apr 2018 20:12:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w37KCkGx036293 for ; Sat, 7 Apr 2018 20:12:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w37KCkEX036292 for freebsd-arm@FreeBSD.org; Sat, 7 Apr 2018 20:12:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 227352] 12-CURRENT (armv6) hangs on shutdown, often leaves file system not sync'd Date: Sat, 07 Apr 2018 20:12:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bobf@mrp3.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2018 20:12:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227352 Bug ID: 227352 Summary: 12-CURRENT (armv6) hangs on shutdown, often leaves file system not sync'd Product: Base System Version: CURRENT Hardware: arm OS: Any Status: New Severity: Affects Many People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: bobf@mrp3.com using FreeBSD-12.0-CURRENT-arm-armv6-RPI-B-20180329-r331740.img with serial console enabled observed shutdown in serial console, and it hung at this point: Syncing disks, vnodes remaining... 0 timed out after powering off [obviously hung] and fsck'ing the SD card, the following problem was noted: CANNOT READ BLK: 7693632 In a previous shutdown attempt, it did something similar, and I corrected t= he problems with fsck by booting to single-user mode, mostly unreferenced file pointers. With the image in the state described above, I booted into single user, did 'fsck -y /' and had to repeat it because of a lot of unreferenced file pointers. I did 'sync' followed by another 'poweroff' [from the serial console] and observed the following: "Syncing disks, vnodes remaining... 0 4 timed out" booted single user again, did 'fsck -y /' twice (as required, since the fir= st time didn't correct all of the problems), then did 'sync' followed by 'poweroff' and got the following: "Syncing disks, vnodes remaining... 0 0 0 0 0 0 0 0 done" and then the system hung. booted single user again, ran fsck - no problems with the file system. uname output: FreeBSD pi1c 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r331740: Thu Mar 29 23:19= :27 UTC 2018 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm.armv6/sys/RP= I-B=20 arm dmesg output (first part) KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r331740: Thu Mar 29 23:19:27 UTC 2018 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm.armv6/sys/RPI-B arm FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM 6.0.0) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. CPU: ARM ARM1176 r0p7 (ECO: 0x00000000) CPU Features:=20 Thumb, Security, VMSAv7 Optional instructions:=20 UMULL, SMULL, MLA, SIMD(ext) 16KB/32B 4-way instruction cache 16KB/32B 4-way WB data cache real memory =3D 469757952 (447 MB) avail memory =3D 444567552 (423 MB) I'll add more to this as I find it or on request --=20 You are receiving this mail because: You are the assignee for the bug.=