kern/112119: system hangs when starts k3b on RELENG_6

Ganbold ganbold at micom.mng.net
Fri Apr 27 01:40:28 UTC 2007


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.
>
>   



More information about the freebsd-stable mailing list