Skip to content

Commit eeab2e2

Browse files
Auditor: fix concurrent push bug (#1398)
1 parent 265442a commit eeab2e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Auditor.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,12 @@ function check_dynamic_linkage(oh, prefix, bin_files;
411411
# Look at every dynamic link, and see if we should do anything about that link...
412412
libs = find_libraries(oh)
413413
ignored_libraries = String[]
414+
ignored_libraries_lock = Threads.ReentrantLock()
414415
Threads.@threads for libname in collect(keys(libs))
415416
if should_ignore_lib(libname, oh, platform)
416-
push!(ignored_libraries, libname)
417+
lock(ignored_libraries_lock) do
418+
push!(ignored_libraries, libname)
419+
end
417420
continue
418421
end
419422

0 commit comments

Comments
 (0)