It's very hard to imagine it's something other than a buggy XS module.
In reply to Re^5: shared scalar freed early by ikegami in thread shared scalar freed early by chris212