Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure brk doesn't clobber existing mappings
This was causing the random node segfaults. Node does manual ASLR, so it would randomly pick an address for a memory mapping near the brk region, then later something would raise the brk and clobber that mapping, replacing it with zeroes. Shortly afterward something would crash on a null pointer. Took a lot of digging around in rr to find this. The crash is never directly connected to the brk call, of course. I set a watchpoint on the pointer that got clobbered and saw it had been zero since the page was mapped, but it took setting a watchpoint on the pointer to that pointer to find that when it was mapped before that and was valid at that point. At this point I'm ready to say node is fixed! #90
- Loading branch information