Bug 95673 - cdrecord cannot allocate memory
Summary: cdrecord cannot allocate memory
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-22 16:46 UTC by carlo cancellieri
Modified: 2006-09-11 08:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlo cancellieri 2004-12-22 16:46:26 UTC
Version:           0.11.17 (using KDE 3.3.1, Gentoo)
Compiler:          gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
OS:                Linux (i686) release 2.6.9-gentoo-r8

Probably buffer underrun occurred. (!!??)
Please choose a lower burning speed.
------------------------------------------
> My compilation is composed by mp3 files
> I've turned on my buffer underrun protection
> the speed is set to automatic but k3b (cdrecord) 
> set it in many different speeds (with the same cd)
> My DVDRECORDER is: MATSHITA-DVD-RAM UJ-820S
> I write with no problem dvd-r/dvd-rw/dvd+rw/dataCD
> I use autofs to mount my drive
> :-(

System
-----------------------
K3b Version:0.11.17 
KDE Version: 3.3.1
QT Version: 3.3.3

cdrecord
-----------------------
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 0 = CD-DA
Using libscg version 'schily-0.8'.
Driveropts: 'burnfree'
/usr/bin/cdrecord: Warning: Running on Linux-2.6.9-gentoo-r8
/usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer.
/usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
/usr/bin/cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
/usr/bin/cdrecord: Warning: SCSI transport does no longer work for suid root programs.
/usr/bin/cdrecord: Warning: if cdrecord fails, try to run it from a root account.
scsidev: '/dev/ide/host0/bus1/target0/lun0/cd'
devname: '/dev/ide/host0/bus1/target0/lun0/cd'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
SCSI buffer size: 64512
/usr/bin/cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.

cdrecord comand:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/ide/host0/bus1/target0/lun0/cd speed=8 -dao -dummy driveropts=burnfree -eject -useinfo -pad -shorttrack -audio /archivio_pub/tmp/k3b_audio_0_01.inf /archivio_pub/tmp/k3b_audio_0_02.inf /archivio_pub/tmp/k3b_audio_0_03.inf /archivio_pub/tmp/k3b_audio_0_04.inf /archivio_pub/tmp/k3b_audio_0_05.inf /archivio_pub/tmp/k3b_audio_0_06.inf /archivio_pub/tmp/k3b_audio_0_07.inf /archivio_pub/tmp/k3b_audio_0_08.inf /archivio_pub/tmp/k3b_audio_0_09.inf /archivio_pub/tmp/k3b_audio_0_10.inf /archivio_pub/tmp/k3b_audio_0_11.inf
Comment 1 Arent 2005-01-14 14:08:57 UTC
Same error message here:

/usr/bin/cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.

> Probably buffer underrun occurred. (!!??) 
> Please choose a lower burning speed. 
 
Don't think that's the reason. I decreased the writing speed down to the minimum (4x) but the error remained. Log follows.

System
-----------------------
K3b Version:0.11.18 
KDE Version: 3.3.2
QT Version: 3.3.3

cdrecord
-----------------------
/usr/bin/cdrecord: Warning: Running on Linux-2.6.8-rc4-mm1
/usr/bin/cdrecord: There are unsettled issues with Linux-2.5 and newer.
/usr/bin/cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
/usr/bin/cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
/usr/bin/cdrecord: Warning: SCSI transport does no longer work for suid root programs.
/usr/bin/cdrecord: Warning: if cdrecord fails, try to run it from a root account.
scsidev: '/dev/ide/host0/bus1/target0/lun0/cd'
devname: '/dev/ide/host0/bus1/target0/lun0/cd'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
SCSI buffer size: 64512
/usr/bin/cdrecord: Cannot allocate memory. Cannot get SCSI I/O buffer.
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.8'.
Driveropts: 'burnfree'

cdrecord comand:
-----------------------
/usr/bin/cdrecord -v gracetime=2 dev=/dev/ide/host0/bus1/target0/lun0/cd speed=10 -tao driveropts=burnfree -eject -data /tmp/install-x86-universal-2004.3-r1.iso 
Comment 2 Arent 2005-01-14 14:22:21 UTC
Definitively a permission problem. When k3b is started from a root shell, there are absolutely no problems. BTW: arson prints the same error message when started as non-root.
Comment 3 Christoph Burger-Scheidlin 2006-09-10 02:49:00 UTC
Could you please check if this bug still occurs with the recent version of k3b 
(0.12.17) and a current kernel?
Comment 4 Sebastian Trueg 2006-09-10 14:10:42 UTC
K3b should warn properly about the invalid permissions.
Comment 5 Jay Christnach 2006-09-11 02:09:21 UTC
k3b -v
Qt: 3.3.4
KDE: 3.3.1
K3b: 0.11.17

It's some time ago now since I submitted the bug report. k3b works now for me 
if I run it as root from a console (after a su login or sudo). I can't 
remember if I experimented with the suid bit. Perhaps I missed something with 
the permissions. K3B should warn about this as you suggested.


On Sunday 10 September 2006 14:10, Sebastian Trueg wrote:
[bugs.kde.org quoted mail]
Comment 6 Sebastian Trueg 2006-09-11 08:53:55 UTC
it does. use 0.12.17, please.