Skip to content

Instantly share code, notes, and snippets.

@matthewlehew
Created February 16, 2016 15:34
Show Gist options
  • Save matthewlehew/b62e111f86159cc96197 to your computer and use it in GitHub Desktop.
Save matthewlehew/b62e111f86159cc96197 to your computer and use it in GitHub Desktop.
Fault at scores.Accept step
RueRunner-mobile`GameData::writeScores:
0x10b0e8470 <+0>: pushq %rbp
0x10b0e8471 <+1>: movq %rsp, %rbp
0x10b0e8474 <+4>: subq $0x10180, %rsp
0x10b0e847b <+11>: movq 0x63ee16(%rip), %rax ; (void *)0x000000010f077070: __stack_chk_guard
0x10b0e8482 <+18>: movq (%rax), %rax
0x10b0e8485 <+21>: movq %rax, -0x8(%rbp)
0x10b0e8489 <+25>: movq %rdi, -0x10090(%rbp)
0x10b0e8490 <+32>: movq %rdi, -0x10148(%rbp)
0x10b0e8497 <+39>: callq 0x10b447154 ; cocos2d::FileUtils::getInstance()
0x10b0e849c <+44>: movq (%rax), %rdi
0x10b0e849f <+47>: movq 0x80(%rdi), %rdi
0x10b0e84a6 <+54>: leaq -0x100a8(%rbp), %rcx
0x10b0e84ad <+61>: movq %rdi, -0x10150(%rbp)
0x10b0e84b4 <+68>: movq %rcx, %rdi
0x10b0e84b7 <+71>: movq %rax, %rsi
0x10b0e84ba <+74>: movq -0x10150(%rbp), %rax
0x10b0e84c1 <+81>: movq %rcx, -0x10158(%rbp)
0x10b0e84c8 <+88>: callq *%rax
0x10b0e84ca <+90>: leaq 0x52d087(%rip), %rdx ; "scores.json"
0x10b0e84d1 <+97>: leaq -0x100c0(%rbp), %rdi
0x10b0e84d8 <+104>: movq -0x10158(%rbp), %rsi
0x10b0e84df <+111>: callq 0x10b251510 ; std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > std::__1::operator+<char, std::__1::char_traits<char>, std::__1::allocator<char> >(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*)
0x10b0e84e4 <+116>: jmp 0x10b0e84e9 ; <+121> at GameData.cpp:69
0x10b0e84e9 <+121>: leaq -0x100c0(%rbp), %rax
0x10b0e84f0 <+128>: movq %rax, -0x10088(%rbp)
0x10b0e84f7 <+135>: movq -0x10088(%rbp), %rax
0x10b0e84fe <+142>: movq %rax, -0x10080(%rbp)
0x10b0e8505 <+149>: movq -0x10080(%rbp), %rax
0x10b0e850c <+156>: movq %rax, -0x10078(%rbp)
0x10b0e8513 <+163>: movq -0x10078(%rbp), %rax
0x10b0e851a <+170>: movq %rax, -0x10070(%rbp)
0x10b0e8521 <+177>: movq -0x10070(%rbp), %rcx
0x10b0e8528 <+184>: movq %rcx, -0x10068(%rbp)
0x10b0e852f <+191>: movq -0x10068(%rbp), %rcx
0x10b0e8536 <+198>: movq %rcx, -0x10060(%rbp)
0x10b0e853d <+205>: movq -0x10060(%rbp), %rcx
0x10b0e8544 <+212>: movzbl (%rcx), %edx
0x10b0e8547 <+215>: andl $0x1, %edx
0x10b0e854d <+221>: cmpl $0x0, %edx
0x10b0e8553 <+227>: movq %rax, -0x10160(%rbp)
0x10b0e855a <+234>: je 0x10b0e85a1 ; <+305> [inlined] std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__get_pointer() const + 135 at string:1600
0x10b0e8560 <+240>: movq -0x10160(%rbp), %rax
0x10b0e8567 <+247>: movq %rax, -0x10030(%rbp)
0x10b0e856e <+254>: movq -0x10030(%rbp), %rcx
0x10b0e8575 <+261>: movq %rcx, -0x10028(%rbp)
0x10b0e857c <+268>: movq -0x10028(%rbp), %rcx
0x10b0e8583 <+275>: movq %rcx, -0x10020(%rbp)
0x10b0e858a <+282>: movq -0x10020(%rbp), %rcx
0x10b0e8591 <+289>: movq 0x10(%rcx), %rcx
0x10b0e8595 <+293>: movq %rcx, -0x10168(%rbp)
0x10b0e859c <+300>: jmp 0x10b0e85fc ; <+396> [inlined] std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__get_pointer() const + 226 at string:1600
0x10b0e85a1 <+305>: movq -0x10160(%rbp), %rax
0x10b0e85a8 <+312>: movq %rax, -0x10058(%rbp)
0x10b0e85af <+319>: movq -0x10058(%rbp), %rcx
0x10b0e85b6 <+326>: movq %rcx, -0x10050(%rbp)
0x10b0e85bd <+333>: movq -0x10050(%rbp), %rcx
0x10b0e85c4 <+340>: movq %rcx, -0x10048(%rbp)
0x10b0e85cb <+347>: movq -0x10048(%rbp), %rcx
0x10b0e85d2 <+354>: addq $0x1, %rcx
0x10b0e85d9 <+361>: movq %rcx, -0x10040(%rbp)
0x10b0e85e0 <+368>: movq -0x10040(%rbp), %rcx
0x10b0e85e7 <+375>: movq %rcx, -0x10038(%rbp)
0x10b0e85ee <+382>: movq -0x10038(%rbp), %rcx
0x10b0e85f5 <+389>: movq %rcx, -0x10168(%rbp)
0x10b0e85fc <+396>: movq -0x10168(%rbp), %rax
0x10b0e8603 <+403>: movq %rax, -0x10018(%rbp)
0x10b0e860a <+410>: movq %rax, -0x100d8(%rbp)
0x10b0e8611 <+417>: leaq 0x52cf59(%rip), %rsi ; "'w'"
0x10b0e8618 <+424>: movq %rax, %rdi
0x10b0e861b <+427>: callq 0x10b59eaac ; symbol stub for: fopen
0x10b0e8620 <+432>: movq %rax, -0x10170(%rbp)
0x10b0e8627 <+439>: jmp 0x10b0e862c ; <+444> at GameData.cpp:72
0x10b0e862c <+444>: movq -0x10170(%rbp), %rax
0x10b0e8633 <+451>: movq %rax, -0x100e0(%rbp)
0x10b0e863a <+458>: movl $0x10000, %ecx
0x10b0e863f <+463>: leaq -0x10100(%rbp), %rdi
0x10b0e8646 <+470>: leaq -0x10010(%rbp), %rdx
0x10b0e864d <+477>: movq %rax, %rsi
0x10b0e8650 <+480>: callq 0x10b59dec4 ; symbol stub for: rapidjson::FileWriteStream::FileWriteStream(__sFILE*, char*, unsigned long)
0x10b0e8655 <+485>: jmp 0x10b0e865a ; <+490> at GameData.cpp:76
0x10b0e865a <+490>: xorl %eax, %eax
0x10b0e865c <+492>: movl %eax, %edx
0x10b0e865e <+494>: movl $0x20, %eax
0x10b0e8663 <+499>: movl %eax, %ecx
0x10b0e8665 <+501>: leaq -0x10140(%rbp), %rdi
0x10b0e866c <+508>: leaq -0x10100(%rbp), %rsi
0x10b0e8673 <+515>: callq 0x10b59e044 ; symbol stub for: rapidjson::Writer<rapidjson::FileWriteStream, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::CrtAllocator, 0u>::Writer(rapidjson::FileWriteStream&, rapidjson::CrtAllocator*, unsigned long)
0x10b0e8678 <+520>: jmp 0x10b0e867d ; <+525> at GameData.cpp:77
0x10b0e867d <+525>: leaq -0x10140(%rbp), %rsi
0x10b0e8684 <+532>: movq -0x10148(%rbp), %rdi
0x10b0e868b <+539>: callq 0x10b59e1b2 ; symbol stub for: bool rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::Accept<rapidjson::Writer<rapidjson::FileWriteStream, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::CrtAllocator, 0u> >(rapidjson::Writer<rapidjson::FileWriteStream, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::CrtAllocator, 0u>&) const
-> 0x10b0e8690 <+544>: movb %al, -0x10171(%rbp) // Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
0x10b0e8696 <+550>: jmp 0x10b0e869b ; <+555> at GameData.cpp:79
0x10b0e869b <+555>: movq -0x100e0(%rbp), %rdi
0x10b0e86a2 <+562>: callq 0x10b59ea82 ; symbol stub for: fclose
0x10b0e86a7 <+567>: movl %eax, -0x10178(%rbp)
0x10b0e86ad <+573>: jmp 0x10b0e86b2 ; <+578> at GameData.cpp:79
0x10b0e86b2 <+578>: leaq -0x10140(%rbp), %rdi
0x10b0e86b9 <+585>: callq 0x10b59e050 ; symbol stub for: rapidjson::Writer<rapidjson::FileWriteStream, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::CrtAllocator, 0u>::~Writer()
0x10b0e86be <+590>: leaq -0x100c0(%rbp), %rdi
0x10b0e86c5 <+597>: callq 0x10b59e866 ; symbol stub for: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()
0x10b0e86ca <+602>: leaq -0x100a8(%rbp), %rdi
0x10b0e86d1 <+609>: callq 0x10b59e866 ; symbol stub for: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()
0x10b0e86d6 <+614>: movq 0x63ebbb(%rip), %rdi ; (void *)0x000000010f077070: __stack_chk_guard
0x10b0e86dd <+621>: movq (%rdi), %rdi
0x10b0e86e0 <+624>: cmpq -0x8(%rbp), %rdi
0x10b0e86e4 <+628>: jne 0x10b0e875a ; <+746> at GameData.cpp:81
0x10b0e86ea <+634>: addq $0x10180, %rsp
0x10b0e86f1 <+641>: popq %rbp
0x10b0e86f2 <+642>: retq
0x10b0e86f3 <+643>: movl %edx, %ecx
0x10b0e86f5 <+645>: movq %rax, -0x100c8(%rbp)
0x10b0e86fc <+652>: movl %ecx, -0x100cc(%rbp)
0x10b0e8702 <+658>: jmp 0x10b0e8742 ; <+722> at GameData.cpp:81
0x10b0e8707 <+663>: movl %edx, %ecx
0x10b0e8709 <+665>: movq %rax, -0x100c8(%rbp)
0x10b0e8710 <+672>: movl %ecx, -0x100cc(%rbp)
0x10b0e8716 <+678>: jmp 0x10b0e8736 ; <+710> at GameData.cpp:81
0x10b0e871b <+683>: leaq -0x10140(%rbp), %rdi
0x10b0e8722 <+690>: movl %edx, %ecx
0x10b0e8724 <+692>: movq %rax, -0x100c8(%rbp)
0x10b0e872b <+699>: movl %ecx, -0x100cc(%rbp)
0x10b0e8731 <+705>: callq 0x10b59e050 ; symbol stub for: rapidjson::Writer<rapidjson::FileWriteStream, rapidjson::UTF8<char>, rapidjson::UTF8<char>, rapidjson::CrtAllocator, 0u>::~Writer()
0x10b0e8736 <+710>: leaq -0x100c0(%rbp), %rdi
0x10b0e873d <+717>: callq 0x10b59e866 ; symbol stub for: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()
0x10b0e8742 <+722>: leaq -0x100a8(%rbp), %rdi
0x10b0e8749 <+729>: callq 0x10b59e866 ; symbol stub for: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()
0x10b0e874e <+734>: movq -0x100c8(%rbp), %rdi
0x10b0e8755 <+741>: callq 0x10b59e9aa ; symbol stub for: _Unwind_Resume
0x10b0e875a <+746>: callq 0x10b59e9da ; symbol stub for: __stack_chk_fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment