-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
memory corruption in braid centralizer #35529
Comments
I get a segfault, but it still is a bug. Close but slightly different things work. As far as I can tell, this is an upstream bug in libbraiding. |
I'm using Debian's libbraiding, version 1.0-1+b1 |
I just tried to update to libbrainding 1.2 (the latest), and am getting a segfault, too:
|
here is the patch to upgrade index bb76fa5b60..2d4afc78a2 100644
--- a/build/pkgs/libbraiding/checksums.ini
+++ b/build/pkgs/libbraiding/checksums.ini
@@ -1,5 +1,5 @@
tarball=libbraiding-VERSION.tar.gz
-sha1=06610e47eb243b27aea0ad399b41614fcdb179c9
-md5=5466605026b90bdca7ca20852f88b5c5
-cksum=704753563
-upstream_url=https://github.com/miguelmarco/libbraiding/releases/download/1.1/libbraiding-1.1.tar.gz
+sha1=b7e13778784fe1e36e7c0cbd7a4c234a090cd1b2
+md5=0513967c81b783ea66336b7ad0562534
+cksum=3619705925
+upstream_url=https://github.com/miguelmarco/libbraiding/releases/download/VERSION/libbraiding-VERSION.tar.gz
diff --git a/build/pkgs/libbraiding/package-version.txt b/build/pkgs/libbraiding/package-version.txt
index 9459d4ba2a..5625e59da8 100644
--- a/build/pkgs/libbraiding/package-version.txt
+++ b/build/pkgs/libbraiding/package-version.txt
@@ -1 +1 @@
-1.1
+1.2 |
@miguelmarco - can you have a look? |
It is curious that the same computation in |
For what it's worth, this works fine for me with OS X (and Sage's libbraiding):
|
quite different compiler, etc... |
Sure, I'm just adding a data point. |
I also get a segfault. It definitely comes from upstream (it segfaults also there). I will try to take a look, but it might be tricky to debug. |
I'd say that straight C++ code should be debuggable - valgrind etc to begin with. |
I have started looking around, and I think i found the exact line where it crashes: I think it is the same bug mentioned here : although we are hitting it in another place. It seems that it expects the braid to have factors, but it happens to be a power of Delta in disguise, so it has no factors. I have no clue why it is not a problem in different platforms. |
I am seeing the segfault on macOS Ventura with the binary release of SageMath 10.0. |
I applied https://github.com/jeanluct/cbraid/pull/6/files to
|
That patch gives an incorrect result: the centralizer of that braid is actually bigger (s0*s2 lives in it for example). Still haven't found the reason why it fails. I suspect the origin is somewhere else in the code, and that is just the place where it explodes. |
A hacky workaround could be something like this:
|
Is there an existing issue for this?
Did you read the documentation and troubleshoot guide?
Environment
Steps To Reproduce
Run
Expected Behavior
something reasonable
Actual Behavior
and the process hangs (with debian libbraiding 1.0), or segfauts (with libbraiding 1.1 and 1.2)
Additional Information
reported in https://groups.google.com/g/sage-support/c/TSowX4BXbXI/m/BHwHQaGDCAAJ
(also a problem in SageMath 8.2 until SageMath 9.8)
The text was updated successfully, but these errors were encountered: