rapidjson 问题

rapidjson::Document doc;
doc.Parserapidjson::kParseDefaultFlags(fileData.c_str());
在安卓Release版情况下lua调用c++的函数中调用以上代码会崩溃以下是信息
Stack frame #00 pc 004af124 /data/app/lib/arm/libcocos2dlua.so (rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator::Malloc(unsigned int)+7): Routine rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator::Malloc(unsigned int) at frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/proj.android/…/…/…/…/external/json/allocators.h:181
Stack frame #01 pc 004af1c5 /data/app/xx/lib/arm/libcocos2dlua.so: Routine rapidjson::GenericValue<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator >::SetStringRaw(rapidjson::GenericStringRef, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator&) at frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/proj.android/…/…/…/…/external/json/document.h:1671
Stack frame #02 pc 004af21b /data/app/xx/lib/arm/libcocos2dlua.so (void rapidjson::GenericReader<rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseString<0u, rapidjson::GenericStringStream<rapidjson::UTF8 >, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream<rapidjson::UTF8 >&, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPool: Routine rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator>::String(char const*, unsigned int, bool) at /data/work/SNK/snk/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/proj.android/…/…/…/…/external/json/internal/stack.h:114
Stack frame #03 pc 004af303 /data/app/xx/lib/arm/libcocos2dlua.so (void rapidjson::GenericReader<rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseValue<0u, rapidjson::GenericStringStream<rapidjson::UTF8 >, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream<rapidjson::UTF8 >&, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolA: Routine void rapidjson::GenericReader<rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseValue<0u, rapidjson::GenericStringStream<rapidjson::UTF8 >, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream<rapidjson::UTF8 >&, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator>&) at frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/proj.android/…/…/…/…/external/json/reader.h:992
Stack frame #04 pc 004af351 /data/app/xx/lib/arm/libcocos2dlua.so (void rapidjson::GenericReader<rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseValue<0u, rapidjson::GenericStringStream<rapidjson::UTF8 >, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream<rapidjson::UTF8 >&, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolA: Routine void rapidjson::GenericReader<rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseObject<0u, rapidjson::GenericStringStream<rapidjson::UTF8 >, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream<rapidjson::UTF8 >&, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator>&) at /data/work/frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/proj.android/…/…/…/…/external/json/reader.h:497
Stack frame #05 pc 004af351 /data/app/xx/lib/arm/libcocos2dlua.so (void rapidjson::GenericReader<rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseValue<0u, rapidjson::GenericStringStream<rapidjson::UTF8 >, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream<rapidjson::UTF8 >&, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolA: Routine void rapidjson::GenericReader<rapidjson::UTF8, rapidjson::UTF8, rapidjson::CrtAllocator>::ParseObject<0u, rapidjson::GenericStringStream<rapidjson::UTF8 >, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator> >(rapidjson::GenericStringStream<rapidjson::UTF8 >&, rapidjson::GenericDocument<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator, rapidjson::CrtAllocator>&) at frameworks/runtime-src/proj.android/…/…/cocos2d-x/cocos//scripting/lua-bindings/proj.android/…/…/…/…/external/json/reader.h:497