Known Bugs and Workarounds
The following is a list of known bugs in LD 1.0 and workarounds:
- 3/5/96: The LD code uses the Standard C library functions
malloc
and calloc
to allocate temporary
memory for some of the internal data structures. This temporary memory
may (correctly) be of size 0 under certain circumstances. The SunOS
versions of malloc
and calloc
will still
return a non-NULL pointer (that should not be dereferenced and must be
freed as well). LD uses this feature of SunOS to avoid special-casing
data structures of size 0. The standard C library of other operating
systems (notably Linux) may not correctly implement this memory
allocation feature. A simple workaround is to add a constant to these
memory allocations (line 458 in disk.c
and line 555 in
recovery.c
). Thanks to Todd Rudick for bringing this
problem to our attention.
Back to LD.
Back to PDOS.
Last updated by Robert Grimm on 5 March 1996.