Here is a much simpler example ... incidentally if you comment out string_value (which is never called) from RL_JSON_STRUCTURE then it no longer crashes. This also crashes the same way on windows, and probably linux since that was where we first saw the problem.