Hi,

just to exclude possible failure-sources (I do not have time to
test a real vanilla 2.6.12.2 kernel, but at least a RH kernel is
fine), does somebody see why code like

| #include <stdlib.h>
| int main()
| {
|         char *p = malloc(3000);
|         realloc(p, 5000);
| }

fails on 2.6.12.2 + patch-2.6.12.2-vs2.0-rc5 in context 0 with

| $ diet gcc x.c
| $ strace ./a.out 
| execve("./a.out", ["./a.out"], [/* 41 vars */]) = 0
| old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 
= 0x97f47000
| mremap(0x97f47000, 4096, 8192, MREMAP_MAYMOVE) = -1 ENOMEM (Cannot allocate 
memory)
                                                   ~~~~~~~~~



Enrico

Attachment: pgprBmZFUgEMy.pgp
Description: PGP signature

_______________________________________________
Vserver mailing list
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to