DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd December 2017
johnR johnR is offline
Port Guard
 
Join Date: Nov 2017
Posts: 21
Default growisofs: Cannot allocate memory

Apologies if this is a stupid question. I've just recently switched my desktop PC to OpenBSD 6.2 after many years of using Debian. I've tried to burn a 1.8GB .iso to DVD using the following command as a normal user:
$ growisofs -dvd-compat -Z /dev/rcd0c=file.iso

It works fine if I run it as root, but when run as a user the following error message appears:
:-(unable to allocate 56 bytes: Cannot allocate memory

The user has 'staff' login class and I added /dev/rcd0c to the ttyC0 line in fbtab, so the user has permission to use the device. I can burn CDs with cdrecord as the same user. I suspect I'm running into a memory resource limit, but haven't been able to find where that limit is set (I've looked in login.conf). I tried adding the user to 'staff' group, but it made no difference. Is it possible to raise whatever limit is preventing this from working?
Reply With Quote
  #2   (View Single Post)  
Old 2nd December 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,293
Default

I'm able to recreate a similar problem in -current, due to the failure of the malloc(3) call at growisofs.c line 2959. I haven't been able to do any diagnostics yet, due to lack of time. It appears to happen while running as the super user, so it is not quite the same problem.
Reply With Quote
  #3   (View Single Post)  
Old 2nd December 2017
johnR johnR is offline
Port Guard
 
Join Date: Nov 2017
Posts: 21
Default

Quote:
Originally Posted by jggimi View Post
I'm able to recreate a similar problem in -current, due to the failure of the malloc(3) call at growisofs.c line 2959. I haven't been able to do any diagnostics yet, due to lack of time. It appears to happen while running as the super user, so it is not quite the same problem.
Thanks for the reply. A malloc failure makes sense. I did try a much smaller .iso and it produced the same error message as before. I'll try and make time to put a bug report together, but it'll take me a while as I'm still learning the system.
Reply With Quote
  #4   (View Single Post)  
Old 3rd December 2017
johnR johnR is offline
Port Guard
 
Join Date: Nov 2017
Posts: 21
Default

Strange. After a couple of reboots it's now working fine. Earlier the error was reliably reproducible. I'm now wondering if I actually did hit a memory limit, but I didn't have X or any other resource-hungry applications running at the time.
Code:
$ ulimit -a
time(cpu-seconds)    unlimited 
file(blocks)         unlimited
coredump(blocks)     unlimited
data(kbytes)         1572864
stack(kbytes)        4096
lockedmem(kbytes)    1262702
memory(kbytes)       3783848
nofiles(descriptors) 512
processes            256

Last edited by ocicat; 3rd December 2017 at 10:10 PM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
  #5   (View Single Post)  
Old 3rd December 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,293
Default

Glad the problem appears to be transient for you. Should it persist you may find the malloc.conf(5) man page helpful for further analysis.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot allocate X bytes of memory (of type "heap"). hanzer OpenBSD General 1 10th August 2017 11:58 AM
growisofs (dvd+rw-tools) in openbsd yezster OpenBSD Packages and Ports 1 24th August 2016 01:04 AM
free memory werwer OpenBSD General 12 8th July 2010 09:46 PM
K3b cannot find growisofs maxrussell FreeBSD General 5 26th April 2009 12:20 PM
dwindling memory chavez243 FreeBSD General 15 26th August 2008 04:06 PM


All times are GMT. The time now is 10:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick