From owner-freebsd-geom@freebsd.org Sat Apr 8 13:40:59 2017 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CCD08D135A8 for ; Sat, 8 Apr 2017 13:40:59 +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 mx1.freebsd.org (Postfix) with ESMTPS id A2B06CA0 for ; Sat, 8 Apr 2017 13:40:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v38DexRc032319 for ; Sat, 8 Apr 2017 13:40:59 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-geom@FreeBSD.org Subject: [Bug 218337] panic: Journal overflow with g_journal_switcher waiting on wswbuf0 Date: Sat, 08 Apr 2017 13:40:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: longwitz@incore.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-geom@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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-geom@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Apr 2017 13:40:59 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218337 --- Comment #3 from longwitz@incore.de --- >From my kerneldump I see the backtrace for the g_journal_switcher: #4 0xffffffff80910c58 in getpbuf (pfreecnt=3D) at /usr/src/sys/vm/vm_pager.c:336 #5 0xffffffff8073f453 in cluster_wbuild (vp=3D0xfffff80b7e1acb10, size=3D3= 2768, start_lbn=3D, len=3D, gbflags=3D) at /usr/src/sys/kern/vfs_cluster.c:840 #6 0xffffffff808d8748 in ffs_syncvnode (vp=3D0xfffff80b7e1acb10, waitfor= =3D1, flags=3D) at /usr/src/sys/ufs/ffs/ffs_vnops.c:298 #7 0xffffffff808d5f6d in ffs_sync (mp=3D0xfffff8002ba4b000, waitfor=3DCann= ot access memory at address 0x1 ) at /usr/src/sys/ufs/ffs/ffs_vfsops.c:1591 #8 0xffffffff807618fc in vfs_write_suspend (mp=3D0xfffff8002ba4b000, flags=3D) at /usr/src/sys/kern/vfs_vnops.c:1877 #9 0xffffffff8112a3e4 in g_journal_switcher (arg=3D0xffffffff81132f28) In the source /usr/src/sys/ufs/ffs/ffs_vfsops.c on line 1591 I see the call= of ffs_syncvnode() as stated above (frame #7 --> frame #6). But in the source /usr/src/sys/ufs/ffs/ffs_vnops.c on line 298 I see a call of vfs_bio_awrite= () and not a call of cluster_wbuild() as stated above (frame #6 --> frame #5). Looking in the source /usr/src/sys/kern/vfs_bio.c line 1971 I see the funct= ion vfs_bio_awrite() which calls cluster_wbuild(). So I feel there is a missing frame in the backtrace give by kgdb for g_journal_switcher. In my ddb output - amd also in Peters ddb output - I see the same: getpbuf() at getpbuf+0xb8/frame 0xfffffe0c4e49c8b0 cluster_wbuild() at cluster_wbuild+0x83/frame 0xfffffe0c4e49c950 ffs_syncvnode() at ffs_syncvnode+0x308/frame 0xfffffe0c4e49c9e0 ffs_sync() at ffs_sync+0x1fd/frame 0xfffffe0c4e49ca90 vfs_write_suspend() at vfs_write_suspend+0x19c/frame 0xfffffe0c4e49cad0 g_journal_switcher() at g_journal_switcher+0x9a4/frame 0xfffffe0c4e49cbb0 Please can somebody explain to me what is going on here ? --=20 You are receiving this mail because: You are the assignee for the bug.=