You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==2080==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 24 byte(s) in 1 object(s) allocated from:
#​0 0x562896ed770d in malloc _asan_rtl_
#​1 0x7f941ec7f821 in swift_slowAlloc ??:?
#​2 0x562897028c74 in globalinit_33_B8921876E18C3584C528F0F839697E3C_func0 /home/docker_user/src/lsp/indexstore-db/Tests/IndexStoreDBTests/LocationScannerTests.swift:19
#​3 0x7f941e66b826 in __pthread_once_slow ??:?
I'm unclear if this is a real leak in corelibs-foundation, or if it's a false positive, maybe related to the fact we don't have asan-ified foundation.so?
Environment
swift-DEVELOPMENT-SNAPSHOT-2020-04-06-a (nightly-bionic docker)
Additional Detail from JIRA
md5: aa4a32a4abe06a4e5b00ab8067024f9b
Issue Description:
When I try to test indexstore-db[0] with
-sanitize=address
on Linux, LeakSanitizer reports issues in Foundation code.[0] https://github.com/apple/indexstore-db
Leak 1:
URL(fileURLWithPath🙂
This code is just:
Leak 2:
Process.run()
This leak is reported on the call to "run":
Reproducing
To reproduce for sure:
1. On Linux, use nightly-bionic docker image
2. apt-get install ninja-build
3. git clone https://github.com/apple/indexstore-db.git
4. cd indexstore-db
5. swift test -Xcxx -I/usr/lib/swift -Xcc -I/usr/lib/swift/Block --sanitize=address
I tried reducing: This reproduces a leak with URL, but I'm not 100% certain if it's the same leak.
The text was updated successfully, but these errors were encountered: