https://github.com/virgesmith/segfault
https://github.com/virgesmith/segfault
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/virgesmith/segfault
- Owner: virgesmith
- Created: 2024-08-04T09:21:42.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T12:16:03.000Z (almost 2 years ago)
- Last Synced: 2024-11-05T05:42:44.346Z (over 1 year ago)
- Language: C++
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# segfault
So far unsuccessful ttempt to create a minimal reproducible example of a segfault [here](https://github.com/virgesmith/neworder/pull/87). Only occurs on Windows builds.
```sh
pip install pybind11 setuptools
python setup.py install
python test.py
```
NB Compiling in linux with address sanitiser enabled and running:
```sh
LD_PRELOAD=$(gcc --print-file-name=libasan.so) pytest -s test.py
```
detects:
```txt
test.py ==77651==AddressSanitizer CHECK failed: ../../../../src/libsanitizer/asan/asan_interceptors.cpp:335 "((__interception::real___cxa_throw)) != (0)" (0x0, 0x0)
#0 0x707481ebd9a8 in AsanCheckFailed ../../../../src/libsanitizer/asan/asan_rtl.cpp:74
#1 0x707481ede32e in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) ../../../../src/libsanitizer/sanitizer_common/sanitizer_termination.cpp:78
#2 0x707481e395a4 in __interceptor___cxa_throw ../../../../src/libsanitizer/asan/asan_interceptors.cpp:335
#3 0x70747dbbd823 in test_sqrt(double) [clone .cold] (/home/az/dev/segfault/.venv3.12-segfault/lib/python3.12/site-packages/segfault-0.0.0-py3.12-linux-x86_64.egg/example.cpython-312-x86_64-linux-gnu.so+0x9823)
```
but Win tests do not segfault. Perhaps a red herring?