This fixes a segfault in situations where a child cage is forked and the parent immediately exists. Here the child program counter isnt properly adjusted and still points to the parents address space. Because the parent frees its address space, the program faults. It's pretty crazy that this one took this long to catch, but because of how NaCl is setup, as long as it enters the code correctly the addresses are then properly located after the point of entry which made this tricky to find.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
All test suites and applications
Checklist:
[x] My code follows the style guidelines of this project
Description
This fixes a segfault in situations where a child cage is forked and the parent immediately exists. Here the child program counter isnt properly adjusted and still points to the parents address space. Because the parent frees its address space, the program faults. It's pretty crazy that this one took this long to catch, but because of how NaCl is setup, as long as it enters the code correctly the addresses are then properly located after the point of entry which made this tricky to find.
Type of change
How Has This Been Tested?
All test suites and applications
Checklist: