Last active
August 29, 2015 14:20
-
-
Save 5HT/f05db016fc1fbf552bca to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bash-3.2$ lldb mad.img | |
(lldb) target create "mad.img" | |
Current executable set to 'mad.img' (x86_64). | |
(lldb) run | |
Process 21608 launched: '/Users/5HT/depot/synrc/mad/mad.img' (x86_64) | |
Process 21608 stopped | |
* thread #1: tid = 0x2626b2, 0x00000000000c0248 mad.img`mem_malloc(size=72) + 168 at mem.c:548, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8) | |
frame #0: 0x00000000000c0248 mad.img`mem_malloc(size=72) + 168 at mem.c:548 | |
545 } | |
546 #endif /* LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT */ | |
547 | |
-> 548 if ((!mem->used) && | |
549 (mem->next - (ptr + SIZEOF_STRUCT_MEM)) >= size) { | |
550 /* mem is not used and at least perfect fit is possible: | |
551 * mem->next - (ptr + SIZEOF_STRUCT_MEM) gives us the 'user data size' of mem */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment