~/talk

Explore invalid memory access

Talkat iOS Conf SG 2021 · 2021-01-20..01-21· [swift]
links:none on file
slides:none on file

Shows how crashes are traced to concrete causes: use of the Hopper disassembler to map crash-report offsets to ARM64 instructions, reading register state (x0, x1, x16) and exception addresses, and finding a use-after-free in objc message send via selector/requestIdMap offsets. Demonstrates a Swift case where concurrent appends cause an invalid address (array append race), and proves fixes: serialize via a dedicated queue or add a lock to eliminate the swift array race.

AI-written summary · about

  1. 0:00Intro
  2. 0:36Crashes by Invalid Memory Access
  3. 0:55IDENTIFY PATTERN
  4. 1:47HOW TO DEBUG?
  5. 3:13GET MORE FROM CRASH REPORT
  6. 5:26WHAT HAPPENED IN MESSAGE SEND FUNCTION
  7. 8:51CHECK REGISTER STATE
  8. 9:51ABOUT ISA
  9. 10:40WHO IS DEALLOCATED OBJECT?
  10. 11:48BASE ADDRESS + OFFSET
  11. 12:55TRACE ARGUMENTS
  12. 13:53TRACE THIS VARIABLE
  13. 19:59WRAP IT UP
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.