NetBSD Problem Report #36030
From svs@grep.ru Sun Mar 18 15:04:59 2007
Return-Path: <svs@grep.ru>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id B32CD63B8C3
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Mar 2007 15:04:58 +0000 (UTC)
Message-Id: <E1HSw6h-0000De-Vr@mononoke.nyo>
Date: Sun, 18 Mar 2007 17:11:35 +0300
From: svs+pr@grep.ru
To: gnats-bugs@NetBSD.org
Subject: K3b panics the machine while verifying written disc
X-Send-Pr-Version: 3.95
>Number: 36030
>Category: kern
>Synopsis: K3b panics the machine while verifying written disc
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 18 15:05:00 +0000 2007
>Closed-Date: Sun Apr 14 19:56:17 +0000 2013
>Last-Modified: Sun Apr 14 19:56:17 +0000 2013
>Originator: "Sergey Svishchev" <svs+pr@grep.ru>
>Release: NetBSD 4.0_BETA2
>Organization:
>Environment:
System: NetBSD mononoke.nyo 4.0_BETA2 NetBSD 4.0_BETA2 (MONONOKE-$Revision: 1.2 $) #2: Sat Mar 10 23:00:34 MSK 2007 svs@mononoke.nyo:/vol/2/b/obj/kernel/i386.M i386
Architecture: i386
Machine: i386
>Description:
K3b sends a READ 10 command for 128 2048-byte sectors and 4.0_BETA2 instantly panics:
pmap_unwire: wiring for pmap 0xcce97004 va 0x836e000 didn't change!
cd1(piixide0:0:1): physio split the request.. cannot proceed
panic: kernel diagnostic assertion "(bp->b_flags & B_ERROR) == 0" failed: file "/vol/2/s/src-4-0/sys/kern/kern_physio.c", line 201
$NetBSD: kern_physio.c,v 1.76 2006/11/01 10:17:58 yamt Exp $
>How-To-Repeat:
Write a data CD in K3b, be sure to enable data verification.
>Fix:
Only a workaround for K3b:
--- libk3b/jobs/k3bdatatrackreader.cpp.orig 2007-02-08 14:14:53.000000000 +0000
+++ libk3b/jobs/k3bdatatrackreader.cpp
@@ -216,7 +216,11 @@ void K3bDataTrackReader::WorkThread::run
//
m_device->setSpeed( 0xffff, 0xffff );
+#ifdef __NetBSD__
+ s_bufferSizeSectors = 31;
+#else
s_bufferSizeSectors = 128;
+#endif
unsigned char* buffer = new unsigned char[m_usedSectorSize*s_bufferSizeSectors];
while( s_bufferSizeSectors > 0 && read( buffer, m_firstSector.lba(), s_bufferSizeSectors ) < 0 ) {
kdDebug() << "(K3bDataTrackReader) determine max read sectors: "
>Release-Note:
>Audit-Trail:
From: Mark Davies <markd@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36030 CVS commit: pkgsrc/sysutils/k3b
Date: Wed, 25 Jul 2007 02:33:04 +0000 (UTC)
Module Name: pkgsrc
Committed By: markd
Date: Wed Jul 25 02:33:03 UTC 2007
Modified Files:
pkgsrc/sysutils/k3b: Makefile PLIST distinfo
pkgsrc/sysutils/k3b/patches: patch-ad
Added Files:
pkgsrc/sysutils/k3b/patches: patch-ae
Log Message:
Update k3b to 1.0.3
pkgsrc change: include patch from PR kern/36030 to work around a problem
that can cause NetBSD to panic or just not read a CD.
1.0.3
=====
* Reverted to old behaviour of reloading medium before verification. Not
enough testing had been done before introducing this and some systems
fail to read the medium before reload.
* Do not crash when the currently playing audio project item is removed.
* Added desktop actions to handle empty media with K3b.
* Fixed read retry when reading data tracks
* K3b's dialogs now honor the global button layout setting
* Do not crash on mp3 files without tags if compiled with taglib support
* Do not allow to copy a rewritable media to itself.
* Fixed crash on startup with devices that return bogus GET PERFORMANCE
data
1.0.2
=====
* Properly determine the capacity of complete CD-R(W) media.
* Mark a data project as modified if files are renamed.
* Allow adding of all actions to the welcome window
* Added "NoDisplay=true" property to k3b-cue.desktop and k3b-iso.desktop
* Fixed supported write speed detection on some devices
* No reload before verification and between writing sessions (CD copy +
Mixed Mode CD) anymore
To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 pkgsrc/sysutils/k3b/Makefile
cvs rdiff -r1.6 -r1.7 pkgsrc/sysutils/k3b/PLIST
cvs rdiff -r1.13 -r1.14 pkgsrc/sysutils/k3b/distinfo
cvs rdiff -r1.3 -r1.4 pkgsrc/sysutils/k3b/patches/patch-ad
cvs rdiff -r0 -r1.3 pkgsrc/sysutils/k3b/patches/patch-ae
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/36030
Date: Wed, 26 Nov 2008 23:04:49 +0300
4.0 still crashes without k3b's workaround; 5.99.02 doesn't. Maybe kern_physio.c rev. 1.83
fixed the crash.
--
Sergey Svishchev
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 16 Dec 2012 17:51:24 +0000
State-Changed-Why:
Was it ever determined for certain if this affects anything later than
netbsd-4?
From: Sergey Svishchev <svs@ropnet.ru>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/36030 (K3b panics the machine while verifying written disc)
Date: Fri, 11 Jan 2013 00:17:24 +0400
Not by me...
--
Sergey Svishchev
State-Changed-From-To: feedback->closed
State-Changed-By: shattered@NetBSD.org
State-Changed-When: Sun, 14 Apr 2013 19:56:17 +0000
State-Changed-Why:
I believe this was fixed somtime before 5.99.02.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.