Skip to content

Instantly share code, notes, and snippets.

@matthewlehew
Last active February 16, 2016 13:13
Show Gist options
  • Save matthewlehew/26dde2ac39d6dd07c738 to your computer and use it in GitHub Desktop.
Save matthewlehew/26dde2ac39d6dd07c738 to your computer and use it in GitHub Desktop.
Backtrace from GenericValue error
RueRunner-mobile`rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::GenericValue:
0x10e13e4a0 <+0>: pushq %rbp
0x10e13e4a1 <+1>: movq %rsp, %rbp
0x10e13e4a4 <+4>: subq $0x20, %rsp
0x10e13e4a8 <+8>: xorl %eax, %eax
0x10e13e4aa <+10>: movl $0x10, %ecx
0x10e13e4af <+15>: movl %ecx, %edx
0x10e13e4b1 <+17>: movq %rdi, -0x8(%rbp)
0x10e13e4b5 <+21>: movl %esi, -0xc(%rbp)
0x10e13e4b8 <+24>: movq -0x8(%rbp), %rdi
0x10e13e4bc <+28>: movq %rdi, %r8
0x10e13e4bf <+31>: movq %rdi, -0x18(%rbp)
0x10e13e4c3 <+35>: movq %r8, %rdi
0x10e13e4c6 <+38>: movl %eax, %esi
0x10e13e4c8 <+40>: callq 0x10e5ee2e0 ; symbol stub for: memset
-> 0x10e13e4cd <+45>: movq -0x18(%rbp), %rdx //Thread 1: EXC_BAD_ACCESS (code=1, address=0x8)
0x10e13e4d1 <+49>: movl $0x0, 0x10(%rdx)
0x10e13e4d8 <+56>: cmpl $0x6, -0xc(%rbp)
0x10e13e4df <+63>: setle %r9b
0x10e13e4e3 <+67>: xorb $0x1, %r9b
0x10e13e4e7 <+71>: testb $0x1, %r9b
0x10e13e4eb <+75>: jne 0x10e13e4f6 ; <+86> at document.h:463
0x10e13e4f1 <+81>: jmp 0x10e13e51a ; <+122> at document.h:463
0x10e13e4f6 <+86>: leaq 0x526a72(%rip), %rdi ; "GenericValue"
0x10e13e4fd <+93>: leaq 0x5267bc(%rip), %rsi ; "/Applications/Cocos/Cocos2d-x/cocos2d-x-3.10/external/json/document.h"
0x10e13e504 <+100>: leaq 0x526a71(%rip), %rcx ; "type <= kNumberType"
0x10e13e50b <+107>: movl $0x1cf, %edx
0x10e13e510 <+112>: callq 0x10e5ee112 ; symbol stub for: __assert_rtn
0x10e13e515 <+117>: jmp 0x10e13e51a ; <+122> at document.h:463
0x10e13e51a <+122>: jmp 0x10e13e51f ; <+127> at document.h:463
0x10e13e51f <+127>: movq 0x638d1a(%rip), %rax ; (void *)0x000000010e5efff0: rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::GenericValue(rapidjson::Type)::defaultFlags
0x10e13e526 <+134>: movl -0xc(%rbp), %ecx
0x10e13e529 <+137>: movl %ecx, %edx
0x10e13e52b <+139>: movl (%rax,%rdx,4), %ecx
0x10e13e52e <+142>: movq -0x18(%rbp), %rax
0x10e13e532 <+146>: movl %ecx, 0x10(%rax)
0x10e13e535 <+149>: cmpl $0x5, -0xc(%rbp)
0x10e13e53c <+156>: jne 0x10e13e557 ; <+183> at document.h:469
0x10e13e542 <+162>: xorl %esi, %esi
0x10e13e544 <+164>: movq -0x18(%rbp), %rdi
0x10e13e548 <+168>: callq 0x10e5ed4d6 ; symbol stub for: rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::ShortString::SetLength(unsigned int)
0x10e13e54d <+173>: jmp 0x10e13e552 ; <+178> at document.h:468
0x10e13e552 <+178>: jmp 0x10e13e557 ; <+183> at document.h:469
0x10e13e557 <+183>: addq $0x20, %rsp
0x10e13e55b <+187>: popq %rbp
0x10e13e55c <+188>: retq
0x10e13e55d <+189>: movl %edx, %ecx
0x10e13e55f <+191>: movq %rax, %rdi
0x10e13e562 <+194>: movl %ecx, -0x1c(%rbp)
0x10e13e565 <+197>: callq 0x10e133440 ; __clang_call_terminate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment