* cygheap.cc (cygheap_fixup_in_child): Don't consider a NULL bucket as a
candidate for deletion. It is actually the end of a linked list chain. * exceptions.cc (open_stackdumpfile): Default to "unknown" program name if myself->progname hasn't been filled out yet.
This commit is contained in:
@@ -136,7 +136,7 @@ cygheap_fixup_in_child (child_info *ci, bool execed)
|
||||
for (_cmalloc_entry *rvc = cygheap->chain; rvc; rvc = rvc->prev)
|
||||
{
|
||||
cygheap_entry *ce = (cygheap_entry *) rvc->data;
|
||||
if (rvc->b >= NBUCKETS || ce->type <= HEAP_1_START)
|
||||
if (!rvc->ptr || rvc->b >= NBUCKETS || ce->type <= HEAP_1_START)
|
||||
continue;
|
||||
else if (ce->type < HEAP_1_MAX)
|
||||
ce->type += HEAP_1_MAX; /* Mark for freeing after next exec */
|
||||
|
Reference in New Issue
Block a user