-
Notifications
You must be signed in to change notification settings - Fork 42
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
[pmp2sdp with duplicate poles] ERROR: AddressSanitizer: stack-buffer-overflow in operator_plus_set_Derivative_Term.cxx #194
Comments
Minimal example contains only five duplicate poles.
|
vasdommes
changed the title
pmp2sdp ERROR: AddressSanitizer: stack-buffer-overflow in operator_plus_set_Derivative_Term.cxx
[pmp2sdp with duplicate poles] ERROR: AddressSanitizer: stack-buffer-overflow in operator_plus_set_Derivative_Term.cxx
Feb 8, 2024
After adding some debug output:
|
The solution is simple:
instead of sdpb/src/pmp/convert/bilinear_basis/bilinear_form/operator_plus_set_Derivative_Term.cxx Line 10 in 82ec4cb
|
vasdommes
added a commit
that referenced
this issue
Feb 8, 2024
Fix #194 [pmp2sdp with duplicate poles] ERROR: AddressSanitizer: stack-buffer-overflow in operator_plus_set_Derivative_Term.cxx
bharathr98
pushed a commit
to bharathr98/sdpb
that referenced
this issue
Mar 1, 2024
…r: stack-buffer-overflow in operator_plus_set_Derivative_Term.cxx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
There might be an error in operator_plus_set_Derivative_Term.cxx, causing segfault mentioned in #192
This code is used in
pmp2sdp
to compute bilinear basis.Note that all integration tests still pass (if we set
ASAN_OPTIONS=detect_leaks=0
to avoid false positive memory leak errors in MPI).Repro
-fsanitize=address
. Also turn on optimization level-O1
,-O2
or-O3
(our wscript sets-O3
by default).This file has a prefactor with many poles (including duplicates), which may cause an error when computing bilinear bases.
Error
The text was updated successfully, but these errors were encountered: