#63 closed defect (fixed)
Testpoint 450 (TPOutOfMemory) fails
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | sys | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
This testpoint passed on mithrandir and poiserver0, but failed on nkfb0, which
is a x86-64 machine with a good deal of memory (4017024k total). It seems that
the memory wasn't being completely chewed up with a single call to psAlloc.
Suggest calling:
mem1 = (int*) psAlloc(SIZE_MAX);
multiple times in order to force malloc to come back NULL.
Change History (3)
comment:1 by , 22 years ago
| Owner: | changed from to |
|---|
comment:2 by , 22 years ago
| op_sys: | Linux → All |
|---|---|
| rep_platform: | PC → All |
| Resolution: | → fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Made the necessary fix to tst_psMemory in the main trunk of CVS.
I now repeatedly (up to 10 times) allocate SIZE_MAX-1000 bytes of memory (the
-1000 is to allow for the addition of psMemBlock to not overflow the value in
psAlloc).
-rdd