-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIGBUS (Misaligned Address Error) #571
Comments
I have managed to get this pared down a bit further. First I apply the following diff: ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
modified: setup.py
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ setup.py:52 @ SMT 2.0 adds the capability to handle mixed-variable surrogate models \
and hierarchical variables.
"""
extra_compile_args = []
extra_compile_args = ['-fsanitize=address', '-fsanitize=undefined', '-g']
if not sys.platform.startswith("win"):
extra_compile_args.append("-std=c++11")
Testing the natural fix |
NAThompson
added a commit
to NAThompson/smt
that referenced
this issue
May 23, 2024
In Issue SMTorg#571, I encountered a bus error. Using AddressSanitizer, I traced the error to a negative memory index caused by a 32 bit signed integer overflowing the bounds and requesting memory from a negative index. Swap out `int` for `long` so that more total memory can be addressed and allow larger problem sizes.
relf
pushed a commit
that referenced
this issue
May 24, 2024
In Issue #571, I encountered a bus error. Using AddressSanitizer, I traced the error to a negative memory index caused by a 32 bit signed integer overflowing the bounds and requesting memory from a negative index. Swap out `int` for `long` so that more total memory can be addressed and allow larger problem sizes.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce:
Code:
The text was updated successfully, but these errors were encountered: