LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-05-2005, 09:26 AM   #1
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
HLFS: sed-4.1.4 & uClibc-0.9.28, Memory Exhausted.


After successful toolchain installation of sed, I then tried to use it in the
next program and got the following error:
sed -e: expression #1, char 35: Memory exhausted

My memory usage is was 170mb/512mb.

Looking into uclibc-0.9.28, I only noticed under: General Library Settings--->
Malloc returns live pointer for malloc(0) (NEW)
which is not set.

Looking into the sed sources, I found 3 files calling malloc and then returning
REF_ESPACE, which seems to be a macro that ends up printing the message I saw.
lib/regcomp.c
regexec.c
regex_internal.c

All of the comparisons I found, compare against NULL, as uClibc claims they
should.

I cannot seem to find the problem here.
 
Old 01-05-2006, 02:26 PM   #2
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Original Poster
Rep: Reputation: 15
By now, a patch has been made and the problem is resolved.
This is here in case for some reason somebody comes across this message again.
Check Linux From Scratch's website for the sed patch.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2.6.14 kernel + uClibc can't manage memory? Yerp Linux - Software 0 11-13-2005 05:51 PM
sed and escaping & in something like: echo $y | sed 's/&/_/g' prx Programming 7 02-03-2005 11:00 PM
Network setup with uClibc & Busybox lapique Linux - Networking 0 12-13-2004 06:39 AM
Insert character into a line with sed? & variables in sed? jago25_98 Programming 5 03-11-2004 06:12 AM
squirellmail, Fatal error: Allowed memory size exhausted illtbagu Linux - Software 6 11-08-2003 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration