onnxruntime/tools/ci_build/github/linux/docker
Changming Sun 0e8d4c3d21
Enable Address Sanitizer in CI (#19073)
### Description
1. Add two build jobs for enabling Address Sanitizer in CI. One for
Windows CPU, One for Linux CPU.
2. Set default compiler flags/linker flags in build.py for normal
Windows/Linux/MacOS build. This can help control compiler flags in a
more centralized way.
3. All Windows binaries in our official packages will be built with
"/PROFILE" flag. Symbols of onnxruntime.dll can be found at [Microsoft
public symbol
server](https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/microsoft-public-symbols).

Limitations:
1. On Linux Address Sanitizer ignores RPATH settings in ELF binaries.
Therefore once Address Sanitizer is enabled, before running tests we
need to manually set LD_LIBRARY_PATH properly otherwise
libonnxruntime.so may not be able to find custom ops and shared EPs.
4. On Linux we also need to set LD_PRELOAD before running some tests(if
the main executable, like python, is not built with address sanitizer.
On Windows we do not need to.
5. On Windows before running python tests we should manually copy
address sanitizer DLL to the onnxruntime/capi directory, because python
3.8 and above has enabled "Safe DLL Search Mode" that wouldn't use the
information provided by PATH env.
6. On Linux Address Sanitizer found a lot of memory leaks from our
python binding code. Therefore right now we cannot enable Address
Sanitizer when building ONNX Runtime with python binding.
7. Address Sanitizer itself uses a lot of memory address space and
delays memory deallocations, which is easy to cause OOM issues in 32-bit
applications. We cannot run all the tests in onnxruntime_test_all in
32-bit mode with Address Sanitizer due to this reason. However, we still
can run individual tests in such a way. We just cannot run all of them
in one process.

### Motivation and Context
To catch memory issues.
2024-01-12 07:24:40 -08:00
..
inference Enable Address Sanitizer in CI (#19073) 2024-01-12 07:24:40 -08:00
scripts Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
Dockerfile.manylinux2_28_cpu Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
Dockerfile.manylinux2_28_cuda Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
Dockerfile.manylinux2_28_rocm Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
Dockerfile.manylinux2_28_training_cuda11_8 Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
Dockerfile.manylinux2_28_training_cuda12_2 Adding python3.12 support to ORT (#18814) 2024-01-11 08:34:28 -08:00
Dockerfile.manylinux2014_aten_cpu ATen Fallback for Inference (#11597) 2022-06-09 16:07:30 +08:00
Dockerfile.manylinux2014_lort_cpu Make ORT callable from various Pytorch compilers (LazyTensor, TorchDynamo, etc) (#10460) 2022-08-22 09:40:40 -07:00
Dockerfile.package_ubi8_cuda11_8_tensorrt8_6 Create a new Nuget Package pipeline for CUDA 12 (#18135) 2023-11-28 09:03:46 -08:00
Dockerfile.package_ubuntu_2004_gpu Create a new Nuget Package pipeline for CUDA 12 (#18135) 2023-11-28 09:03:46 -08:00
Dockerfile.ubuntu_cuda11_6_tensorrt8_4 Update onnx python package and setuptools (#17709) 2023-09-27 07:54:48 -07:00
Dockerfile.ubuntu_cuda11_8_tensorrt8_5 Update onnx python package and setuptools (#17709) 2023-09-27 07:54:48 -07:00
Dockerfile.ubuntu_cuda11_8_tensorrt8_6 [EP Perf] Display percentage of cuda/trt ops in cuda/trt ep on EP Perf Dashboard (#18868) 2023-12-20 22:11:47 -08:00
Dockerfile.ubuntu_gpu_training Add support for cuda 11.8 and python 3.11 for training (#15548) 2023-04-20 12:56:45 -07:00
Dockerfile.ubuntu_openvino Update cmake to 3.27 and upgrade Linux CUDA docker files from CentOS7 to UBI8 (#16856) 2023-09-05 18:12:10 -07:00
Dockerfile.ubuntu_tensorrt_bin Update onnx python package and setuptools (#17709) 2023-09-27 07:54:48 -07:00
Dockerfile_manylinux2014_openvino_multipython Gradle clean up (#14973) 2023-03-10 10:50:32 -08:00
manylinux.patch Enable Address Sanitizer in CI (#19073) 2024-01-12 07:24:40 -08:00
migraphx-ci-pipeline-env.Dockerfile [ROCm] fix security warning (#19017) 2024-01-05 10:05:34 -08:00