Skip to content

Commit a49d07b

Browse files
authored
Merge pull request #75451 from swiftlang/lsan-failure-symbolication-doc
[docs] Improve documentation on LSAN failure symbolication
2 parents 3f64d99 + ac445d6 commit a49d07b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/LSANFailureSymbolication.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
### Create Ubuntu Container
44

5-
1. Clone (or pull) swift-docker: https://github.com/swiftlang/swift-docker
6-
2. Build the Ubuntu 18.04 container: `cd swift-ci/master/ubuntu/18.04; docker build .`
7-
3. `docker run -it --cpus <CPUs> --memory <Memory> -v ~/<path to your local sources>:/src-on-host:cached --name lsan-reproducer --cap-add=SYS_PTRACE --security-opt seccomp=unconfined <hash that docker build outputs> bash`
5+
1. Use an x86 machine. The following instructions currently don’t work on arm64. It might be easy to adjust them or not, I have not tried
6+
2. Clone (or pull) swift-docker: https://github.com/swiftlang/swift-docker
7+
3. Build the Ubuntu 22.04 container: `cd swift-ci/master/ubuntu/22.04; docker build .`
8+
4. `docker run -it --cpus <CPUs> --memory <Memory> -v ~/<path to your local sources>:/src-on-host:cached --name lsan-reproducer --cap-add=SYS_PTRACE --security-opt seccomp=unconfined <hash that docker build outputs> bash`
89
- The `-cap-add` and `-security-opt` arguments are needed to run LLDB inside the Docker container
9-
4. Copy the sources to inside the Docker container: `cp -r /src-on-host/* ~`
10+
5. Copy the sources to inside the Docker container: `cp -r /src-on-host/* ~`
1011
- We need to to this because the build needs a case-sensitive file system and your host machine probably has a case-insensitive file system
1112

1213
Build inside the Container

0 commit comments

Comments
 (0)