From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 01:40:28 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0141E16A401; Fri, 27 Apr 2007 01:40:28 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.freebsd.org (Postfix) with ESMTP id 401B013C459; Fri, 27 Apr 2007 01:40:27 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=daemon.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HhFRe-000MoM-Lk; Fri, 27 Apr 2007 10:40:23 +0900 Message-ID: <46315483.3030307@micom.mng.net> Date: Fri, 27 Apr 2007 09:40:19 +0800 From: Ganbold User-Agent: Thunderbird 2.0.0.0 (X11/20070425) MIME-Version: 1.0 To: Thomas Quinot References: <200704251327.l3PDRBvK019864@www.freebsd.org> <20070425215130.GA13949@melamine.cuivre.fr.eu.org> In-Reply-To: <20070425215130.GA13949@melamine.cuivre.fr.eu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Stable Mailing List , mjacob@FreeBSD.org, linimon@FreeBSD.org, bug-followup@freensd.org Subject: Re: kern/112119: system hangs when starts k3b on RELENG_6 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 01:40:28 -0000 Thomas Quinot wrote: > * Ganbold, 2007-04-25 : > > >>> Description: >>> >> With atapi-cam.c (rev 1.42.2.3) when running k3b application, system >> completely hangs on k3b splash screen and I had to use power button only >> to restart the machine. >> > > Extremely strange. I can't offer any definite solution at this point, > since I have no idea how this change could cause a system to hang. Here > are a few possible investigation ideas: > > * AFAIK k3b is just a front-end for command-line tools. You should > determine what exact commands are spawned by k3b to identify which of > these is causing the apparent hang; > > * it would also be useful to enable CAM debugging options (see > "man 4 cam", option CAMDEBUG, and flags CAM_DEBUG_TRACE and > CAM_DEBUG_SUBTRACE) and to capture all console output up to the hang > (for example using a serial console) > > * if Scott's hunch of an interrupt storm is correct, then this issue > might be related to the DMA problem described under PR 103602, so > it would be useful to try the last patch I sent on that PR: > http://www.freebsd.org/cgi/query-pr.cgi?pr=103602&getpatch=12 > > * if all else fails, please let me know if the attached patch, which > reverts part of rev. 1.42.2.3, changes anything. > I tried your attached patch and the problem is still the same. System hangs when starts k3b. With atapi-cam.c rev. 1.42.2.2, k3b starts fine, system doesn't hang. For your information I have k3b normal startup messages with atapi-cam.c rev. 1.42.2.2. It might help to find the problem. devil# k3b Only one line in dcopserver file !: DCOPClient::attachInternal. Attach failed networkIdsList argument is NULL Only one line in dcopserver file !: DCOPClient::attachInternal. Attach failed networkIdsList argument is NULL kbuildsycoca running... devil# kdecore (KAction): WARNING: KActionCollection::KActionCollection( QObject *parent, const char *name, KInstance *instance ) k3b: (K3bCdrecordProgram) could not start /opt/schily/bin k3b: (K3bMkisofsProgram) could not start /opt/schily/bin k3b: (K3bCdrecordProgram) could not start /root/bin k3b: (K3bMkisofsProgram) could not start /root/bin k3b: (K3bExternalBinManager) Cdrecord 2.1 features: gracetime, overburn, cdtext, clone, tao, cuefile, xamix, plain-atapi, hacked-atapi, audio-stdin, burnfree k3b: (K3bExternalBinManager) 2 1 -1 seems to be cdrecord version >= 1.11a02, using burnfree instead of burnproof k3b: (K3bExternalBinManager) seems to be cdrecord version >= 1.11a31, support for Just Link via burnfree driveroption (BSDDeviceScan) number of matches 10 (BSDDeviceScan) add device /dev/cd0:1:0:0 (K3bDevice::Device) /dev/cd0: init() (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 12, length: 6 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: CD Mastering (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: CD Track At Once (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: CD-RW Media Write Support (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: DVD Read (MMC5) (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: DVD+R (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: DVD+RW (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: DVD+R Double Layer (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: DVD-R/-RW Write (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::Device) /dev/cd0 feature: Rigid Restricted Overwrite (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::ScsiCommand) transport command 46, length: 10 (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 5a, length: 10 (K3bDevice::ScsiCommand) transport command 5a, length: 10 (K3bDevice::Device) /dev/cd0: dataLen: 60 (K3bDevice::Device) /dev/cd0: checking for TAO (K3bDevice::ScsiCommand) transport command 55, length: 10 (K3bDevice::Device) /dev/cd0: checking for SAO (K3bDevice::ScsiCommand) transport command 55, length: 10 (K3bDevice::Device) /dev/cd0: checking for SAO_R96P (K3bDevice::ScsiCommand) transport command 55, length: 10 (K3bDevice::Device) /dev/cd0: checking for SAO_R96R (K3bDevice::ScsiCommand) transport command 55, length: 10 (K3bDevice::Device) /dev/cd0: checking for RAW_R16 (K3bDevice::ScsiCommand) transport command 55, length: 10 (K3bDevice::Device) /dev/cd0: checking for RAW_R96P (K3bDevice::ScsiCommand) transport command 55, length: 10 (K3bDevice::Device) /dev/cd0: checking for RAW_R96R (K3bDevice::ScsiCommand) transport command 55, length: 10 (K3bDevice::ScsiCommand) transport command 5a, length: 10 (K3bDevice::ScsiCommand) transport command 5a, length: 10 (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 (K3bDevice::ScsiCommand) transport command ac, length: 12 (K3bDevice::ScsiCommand) transport command ac, length: 12 (K3bDevice::Device) /dev/cd0: Number of supported write speeds via GET PERFORMANCE: 1 (K3bDevice::Device) /dev/cd0 : 4234 KB/s (K3bDevice::DeviceManager) setting current write speed of device /dev/cd0 to 3324 k3b: [void K3bMediaCache::clearDeviceList()] (K3bDevice::DeviceManager) found config entry for devicetype: (K3bDevice::openDevice) open device SONY DVD+-RW DW-Q58A/dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 k3b: (K3bCdrecordProgram) could not start /opt/schily/bin k3b: (K3bMkisofsProgram) could not start /opt/schily/bin k3b: (K3bCdrecordProgram) could not start /root/bin k3b: (K3bMkisofsProgram) could not start /root/bin k3b: (K3bExternalBinManager) Cdrecord 2.1 features: gracetime, overburn, cdtext, clone, tao, cuefile, xamix, plain-atapi, hacked-atapi, audio-stdin, burnfree k3b: (K3bExternalBinManager) 2 1 -1 seems to be cdrecord version >= 1.11a02, using burnfree instead of burnproof k3b: (K3bExternalBinManager) seems to be cdrecord version >= 1.11a31, support for Just Link via burnfree driveroption Devices: ------------------------------ Blockdevice: /dev/cd0 Generic device: Vendor: SONY Description: DVD+-RW DW-Q58A Version: UDS1 Write speed: 4234 Profiles: DVD-ROM, DVD-R Sequential, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW Read Cap: DVD-ROM, DVD-R, DVD-R Sequential, DVD-R Dual Layer, DVD-R Dual Layer Sequential, DVD-R Dual Layer Jump, DVD-RW, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+RW Dual Layer, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW Write Cap: DVD-R, DVD-R Sequential, DVD-RW, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-R, CD-RW Writing modes: SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite Reader aliases: /dev/cd0 ------------------------------ kdecore (KAction): WARNING: KActionCollection::operator+=(): function is severely deprecated. (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 k3b: (K3bFileTreeView::addCdDeviceBranches) k3b: (K3bFileTreeView::addCdDeviceBranches) done k3b: (K3bFileTreeView::addCdDeviceBranches) k3b: (K3bFileTreeView::addCdDeviceBranches) done (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 k3b: (K3bCore) System problems: k3b: WARNING k3b: PROBLEM: Running K3b as root user k3b: DETAILS: It is not recommended to run K3b under the root user account. This introduces unnecessary security risks. k3b: SOLUTION: Run K3b from a proper user account and setup the device and external tool permissions appropriately. k3b: (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 (K3bDevice::openDevice) open device /dev/pass0 succeeded. (K3bDevice::ScsiCommand) transport command 0, length: 6 (K3bDevice::ScsiCommand) transport failed (4): 145920 k3b: [void K3bMediaCache::clearDeviceList()] k3b: [void K3bMediaCache::clearDeviceList()] waiting for info thread /dev/cd0 to finish k3b: Waiting for thread 0x829dfe0 k3b: Thread waiting done. k3b: [void K3bMediaCache::clearDeviceList()] devil# ------------------------------------------------------------------------------- thanks, Ganbold > Thomas. > >