David Laight wrote:
Memory faults in any malloc implementation are mostly due to bugs is the application (use after free, overwrite end/start allocated buffer, etc).
I've filled a bug report at ruby-lang.org and the developers came up with a patch for NetBSD: http://bugs.ruby-lang.org/issues/6341#note-21
r.