Subject: lib/12810: malloc core-dumps on silly big numbers
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@paradox.demon.co.uk>
List: netbsd-bugs
Date: 05/02/2001 23:54:04
>Number:         12810
>Category:       lib
>Synopsis:       malloc core-dumps on silly big numbers
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 02 15:54:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        30-Apr-01
>Organization:
>Environment:
	
System: NetBSD pinky.paradox.demon.co.uk 1.5U NetBSD 1.5U (PINKY) #4: Tue Apr 17 10:23:08 BST 2001 chris@pinky.paradox.demon.co.uk:/usr/obj/kern/PINKY i386
Architecture: i386
Machine: i386
>Description:
malloc coredumps if you try to allocate 4095 MB.  This is what memtester does if you use the all option.  Occurs on i386 and arm32.
(memtester can be found:
http://www.qcc.sk.ca/~charlesc/software/memtester/experimental/
)
>How-To-Repeat:
The following test program core dumps (unless both my boxes have dodgey memory):
#include <stdio.h>
#include <stdlib.h>
 
int
main()
{
 
    void * ptr = malloc(4293918720U);
    exit(EXIT_SUCCESS);
}
>Fix:
	Unknown
>Release-Note:
>Audit-Trail:
>Unformatted: