Last active
October 23, 2017 06:07
-
-
Save kodekarim/1a0d91bf6218d659e0112ee6cf85a54e to your computer and use it in GitHub Desktop.
Swift access race detected while downloading the image from Kingfisher
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
| SUMMARY: ThreadSanitizer: Swift access race ImageDownloader.swift:401 in _T010Kingfisher15ImageDownloaderC5cleany10Foundation3URLV3for_tFyycfU_ | |
| ================== | |
| ThreadSanitizer report breakpoint hit. Use 'thread info -s' to get extended information about the report. | |
| (lldb) thread info -s | |
| thread #24: tid = 0x1e72e, 0x000000010a45dfe0 libclang_rt.tsan_iossim_dynamic.dylib`__tsan_on_report, queue = 'com.onevcat.Kingfisher.ImageDownloader.Barrier.default', stop reason = Swift access race detected | |
| { | |
| "all_addresses_are_same" : true, | |
| "description" : "Swift access race", | |
| "instrumentation_class" : "ThreadSanitizer", | |
| "issue_type" : "swift-access-race", | |
| "location_description" : "Location is a 136-byte heap object at 0x7b2400047af0", | |
| "locs" : [ | |
| { | |
| "address" : 0, | |
| "file_descriptor" : 0, | |
| "index" : 0, | |
| "object_type" : "", | |
| "size" : 136, | |
| "start" : 135394549332720, | |
| "suppressable" : 0, | |
| "thread_id" : 1, | |
| "trace" : [ | |
| 4467235371, | |
| 4624489577, | |
| 4524784317, | |
| 4524784183, | |
| 4467356773, | |
| 4467357015, | |
| 4524784442, | |
| 4525080397, | |
| 4525077992, | |
| 4525077824, | |
| 4467356773, | |
| 4467357015, | |
| 4525078106, | |
| 4524996598, | |
| 4451353119, | |
| 4451632921, | |
| 4445975045, | |
| 4454848832, | |
| 4634268732, | |
| 4634779009 | |
| ], | |
| "type" : "heap" | |
| } | |
| ], | |
| "memory_address" : 135394549332848, | |
| "mops" : [ | |
| { | |
| "address" : 135394549332848, | |
| "index" : 0, | |
| "is_atomic" : false, | |
| "is_write" : true, | |
| "size" : 8, | |
| "thread_id" : 24, | |
| "trace" : [ | |
| 4524817468, | |
| 4524848793, | |
| 4524792231, | |
| 4524849008, | |
| 4628970396, | |
| 4634268732, | |
| 4628969741, | |
| 4524830757, | |
| 4524837326, | |
| 4524858561, | |
| 4524528013, | |
| 4467353596, | |
| 4634268732 | |
| ] | |
| }, | |
| { | |
| "address" : 135394549332848, | |
| "index" : 1, | |
| "is_atomic" : false, | |
| "is_write" : false, | |
| "size" : 8, | |
| "thread_id" : 22, | |
| "trace" : [ | |
| 4524783650, | |
| 4524830814, | |
| 4524837326, | |
| 4524858561, | |
| 4524528013, | |
| 4467353596, | |
| 4634268732 | |
| ] | |
| } | |
| ], | |
| "mutexes" : [ | |
| ], | |
| "report_count" : 0, | |
| "sleep_trace" : [ | |
| ], | |
| "stacks" : [ | |
| ], | |
| "stop_description" : "Swift access race detected", | |
| "summary" : "Swift access race in closure #1 () -> () in Kingfisher.ImageDownloader.clean(for: Foundation.URL) -> () at 0x7b2400047af0", | |
| "threads" : [ | |
| { | |
| "index" : 0, | |
| "name" : "", | |
| "parent_thread_id" : 0, | |
| "running" : 1, | |
| "thread_id" : 24, | |
| "thread_os_id" : 124718, | |
| "trace" : [ | |
| ] | |
| }, | |
| { | |
| "index" : 1, | |
| "name" : "", | |
| "parent_thread_id" : 0, | |
| "running" : 1, | |
| "thread_id" : 22, | |
| "thread_os_id" : 124579, | |
| "trace" : [ | |
| ] | |
| }, | |
| { | |
| "index" : 2, | |
| "name" : "", | |
| "parent_thread_id" : 1, | |
| "running" : 1, | |
| "thread_id" : 1, | |
| "thread_os_id" : 123215, | |
| "trace" : [ | |
| ] | |
| } | |
| ], | |
| "unique_tids" : [ | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment