Patch-ID# 100689-01 Keywords: malloc, malloc(), brk, brk(), hang, large, process, disk, wait Synopsis: SunOS 4.1.2;4.1.3: large processes hang in "disk wait" during malloc() Date: Jul/17/92 SunOS release: 4.1.2, 4.1.3, 4.1.3C Topic: processes appear to hang when doing malloc() BugId's fixed with this patch: 1087735 Architectures for which this patch is available: sun4(all) Patches which may conflict with this patch: Note: Obsoleted by: 4.1.3_U1 Problem Description: When a large (2 Gbyte) process malloc's memory it hangs for ever waiting to allocate memory. The problem is due to the fact that the kernel cannot allocate 2 Gb + 1 page worth of contiguous memory in order to grow the data segment of the process. INSTALL: 1) Login as "root". 2) Save current binary: mv /sys/`arch -k`/OBJ/seg_vn.o /sys/`arch-k`/OBJ/seg_vn.o.fcs 3) Install new binary: cp `arch-k`/seg_vn.o /sys/`arch -k`/OBJ/seg_vn.o 4) Re-run config and make on your kernel. Please refer to the System and Network administration manual for information on building and installing a custom kernel. ADDENDUM :