Skip to content

Instantly share code, notes, and snippets.

@habnabit
Created March 2, 2016 03:02
Show Gist options
  • Save habnabit/dc6a402b416a01d4b5f5 to your computer and use it in GitHub Desktop.
Save habnabit/dc6a402b416a01d4b5f5 to your computer and use it in GitHub Desktop.
[19:02:19] call_internal.c:36> syscall failure! 0x20017d28..0x20017d38 is not in app space.
(gdb) disassemble $pc,+4
Dump of assembler code from 0x2001b5b0 to 0x2001b5b4:
=> 0x2001b5b0: bl 0x2001c19c ### this is app_log
End of assembler dump.
(gdb) info registers
r0 0x1 1
r1 0x2001c22d 536986157
r2 0x1 1
r3 0x2001c231 536986161
r4 0x1 1
r5 0x1 1
r6 0x20017dd8 536968664
r7 0xa5a5a5a5 -1515870811
r8 0xa5a5a5a5 -1515870811
r9 0xa5a5a5a5 -1515870811
r10 0xa5a5a5a5 -1515870811
r11 0xa5a5a5a5 -1515870811
r12 0x8046b99 134507417
sp 0x20017dc0 0x20017dc0
lr 0x2001b4c5 536982725
pc 0x2001b5b0 0x2001b5b0
cpsr 0x20000173 536871283
(gdb) p (char*)$r1
$3 = 0x2001c22d "why"
(gdb) p (char*)$r3
$4 = 0x2001c231 "wh %s yyyyy"
(gdb) p *(char**)$sp
$8 = 0x2001c23d "different"
(gdb) p (char**)$sp
$9 = (char **) 0x20017dc0
external::app_log(1, b"why\0".as_ptr(), 1, b"wh %s yyyyy\0".as_ptr(), b"different\0".as_ptr());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment