Skip to content

Fix seg fault after memory is unmapped

Stan Hu requested to merge sh-fix-segfault-after-unmap into master

When memory is unmapped, there still may be RString values on the stack. A seg fault may occur if all strings in the ObjectSpace are inspected, as done during a heap dump.

To avoid this, we set the length of the strings to zero.

Relates to #41 (closed)

Edited by Stan Hu

Merge request reports