From owner-freebsd-stable@FreeBSD.ORG Fri Apr 27 15:11:37 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 6EEEA16A402 for ; Fri, 27 Apr 2007 15:11:37 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from mx1.sitevalley.com (sitevalley.com [209.67.60.43]) by mx1.freebsd.org (Postfix) with SMTP id 0C7A913C45E for ; Fri, 27 Apr 2007 15:11:36 +0000 (UTC) (envelope-from quetzal@zone3000.net) Received: from zone3000.kharkov.ua (HELO localhost) (217.144.69.37) by 209.67.61.254 with SMTP; 27 Apr 2007 15:11:30 -0000 Date: Fri, 27 Apr 2007 18:11:03 +0300 From: Nikolay Pavlov To: Ganbold Message-ID: <20070427151102.GA3769@zone3000.net> Mail-Followup-To: Nikolay Pavlov , Ganbold , Thomas Quinot , FreeBSD Stable Mailing List References: <200704251327.l3PDRBvK019864@www.freebsd.org> <20070425215130.GA13949@melamine.cuivre.fr.eu.org> <46315483.3030307@micom.mng.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46315483.3030307@micom.mng.net> X-Operating-System: FreeBSD 6.1-RELEASE-p10 User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: FreeBSD Stable Mailing List , Thomas Quinot 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 15:11:37 -0000 On Friday, 27 April 2007 at 9:40:19 +0800, Ganbold wrote: > 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've tried your patch on recent current with all CAM options, but no luck. I am still having a reboot on my notebook while trying to run k3b. No errors... no panic... just a reboot. > > > > 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. > > > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- ====================================================================== - Best regards, Nikolay Pavlov. <<<----------------------------------- ======================================================================