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
Fix segfaults caused by modifying existing shared library (#295)
* Fix segfaults caused by modifying existing shared library
When the built shared library is copied to the correct location, it
actually *modifies* any existing shared library, which causes any
running process using it to segfault.
To fix this, we first delete any existing shared library (which is safe
to do) and then copy the newly built shared library to the correct
location as a new file.
Related to #257
* Use os.rename
* Use os.replace
* Update setuptools_rust/build.py
Co-authored-by: Adam Reichold <[email protected]>
* Update changelog
Co-authored-by: Adam Reichold <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,9 @@
1
1
# Changelog
2
2
3
+
## Unreleased
4
+
### Fixed
5
+
- Fix a bug where rebuilding the library would cause any running processes using it to segfault. [#295](https://github.com/PyO3/setuptools-rust/pull/295)
6
+
3
7
## 1.5.2 (2022-09-19)
4
8
### Fixed
5
9
- Fix regression in `dylib` build artifacts not being found since 1.5.0. [#290](https://github.com/PyO3/setuptools-rust/pull/290)
0 commit comments