0

The project enters the background, switches the wifi network, and enters the project to make a network request. The request process will report an error. The error message is as follows:

xxx(739,0x16ca7f000) malloc: Heap corruption detected, free list is damaged at 0x280c78fa0

*** Incorrect guard value: 206401777864449

xxx(739,0x16ca7f000) malloc: *** set a breakpoint in malloc_error_break to debug.

enter image description here

Arnab
  • 4,216
  • 2
  • 28
  • 50
Ljun
  • 31
  • 1
  • 2
  • "malloc: *** set a breakpoint in malloc_error_break to debug" So did you do that? – matt Sep 25 '18 at 12:36
  • https://stackoverflow.com/questions/14045208/how-to-set-a-breakpoint-in-malloc-error-break-to-debug – Arnab Sep 25 '18 at 13:04
  • Have you tried running with Address Sanitizer enabled? Here is a question about turning it on https://stackoverflow.com/questions/32150924/ – Mats Sep 25 '18 at 15:23
  • I have tried set a breakpoint in malloc_error_break to debug, but I have not got anything. – Ljun Sep 26 '18 at 06:10

1 Answers1

10
xcode10 -- Edit scheme -- Diagnostics -- select "Address Sanitizer"
scopchanov
  • 7,966
  • 10
  • 40
  • 68
Aracy
  • 101
  • 4