[prev in list] [next in list] [prev in thread] [next in thread]
List: uclinux-dev
Subject: [uClinux-dev] malloc() bug
From: Amit Shah <shahamit () gmx ! net>
Date: 2003-05-30 10:12:50
[Download RAW message or body]
Hi all,
I'm porting uClinux and uClibc to a new arch.. this is a system with 2MB memory.
When I keep doing some malloc()s from a userspace program, I get the following bug:
5: successfully allocated one chunk of size 65536
do_mmap:
Process blocks 1: 000060fc: 00000000 -> 000cb620: 000cb640 (131072 @00120000 #1)
-> 000cb5c0: 000cb5e0 (131072 @00140000 #1) -> 000cb560: 000cb580 (131072 @0016
0000 #1) -> 000cb500: 000cb520 (131072 @00180000 #1) -> 000cb4a0: 000cb4c0 (1310
72 @001a0000 #1) -> 000cb440: 000cb460 (4096 @00007000 #1) -> 000cb3e0: 000cb400
(131072 @001c0000 #1) -> 000cb380: 000cb3a0 (131072 @001e0000 #1) -> 000cb320:
000cb340 (32768 @000b0000 #1).
Kernel BUG in file buffer.c: function __put_unused_buffer_head: line 1142!
Kernel panic: BUG!
The system has already allocated 5*64k chunks.
If I increase the chunk size to 128 or 256, I don't see this bug (it is
reporducible with 64k size), the kernel doesn't allocate RAM, even if it
has free memory. A dump of such a situation is produced below:
Allocation of length 135168 from process 1 failed
Buffer memory: 12kB
Cache memory: 48kB
Free pages: 316kB ( 0kB HighMem)
Zone:DMA freepages: 0kB min: 0kB low: 0kB high: 0kB
Zone:Normal freepages: 316kB min: 80kB low: 160kB high: 240kB
Zone:HighMem freepages: 0kB min: 0kB low: 0kB high: 0kB
( Active: 15, inactive: 0, free: 79 )
= 0kB)
3*4kB 4*8kB 1*16kB 0*32kB 0*64kB 0*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB = 316
kB)
= 0kB)
Kernel panic: Out of memory and no killable processes...
(No killable process, 'cos this is my init)
Any suggestions to these problems?
Thanks,
Amit.
--
Amit Shah
http://amitshah.nav.to/
A: No.
Q: Should I include quotations after my reply?
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic