About this list Date view Thread view Subject view Author view Attachment view

From: Enrico Scholz (enrico.scholz_at_sigma-chemnitz.de)
Date: Fri 08 Jul 2005 - 09:03:47 BST


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


_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 08 Jul 2005 - 09:04:25 BST by hypermail 2.1.3