Skip to content

Commit

Permalink
TESTING: dump out mmaps if fixup_mmaps_after_fork fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyd2019 committed Jan 30, 2025
1 parent 02238d2 commit 6d75587
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions winsup/cygwin/mm/mmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1826,6 +1826,17 @@ fixup_mmaps_after_fork (HANDLE parent)
system_printf ("Warning: Fixup mapping beyond EOF failed");
continue;
}
LIST_FOREACH (map_list, &mmapped_areas.lists, ml_next)
{
LIST_FOREACH (rec, &map_list->recs, mr_next)
{
system_printf ("fd %d, h %p, address %p, len %ly, prot: %y, "
"flags: %y, offset %Y",
rec->get_fd (), rec->get_handle (), rec->get_address (),
rec->get_len (), rec->get_prot (), rec->get_flags (),
rec->get_offset ());
}
}
return -1;
}

Expand Down

0 comments on commit 6d75587

Please sign in to comment.