Skip to content
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

finalization segfaults when flint built against older NTL than M2 #2244

Open
d-torrance opened this issue Sep 25, 2021 · 0 comments
Open

finalization segfaults when flint built against older NTL than M2 #2244

d-torrance opened this issue Sep 25, 2021 · 0 comments
Labels
build issue platform specific issues involving compiling M2, generating examples, or running tests

Comments

@d-torrance
Copy link
Member

There's currently an interesting problem in Debian. NTL 11.5.0 was recently uploaded to Debian unstable, and the latest version of the Macaulay2 package was built against it. However, the flint (and factory) versions that are currently in Debian testing were built against NTL 11.4.3.

Mixing these NTL versions causes a segfault when finalizing after doing things with Galois fields, e.g.,:

i1 : GF 8

o1 = GF 8

o1 : GaloisField

i2 : exit
-- SIGSEGV
-* stack trace, pid: 3744399
 0# stack_trace(std::ostream&, bool) at ./M2/Macaulay2/d/main.cpp:124
 1# segv_handler at ./M2/Macaulay2/d/main.cpp:241
 2# 0x00007FB6B00DAEF0 in /lib/x86_64-linux-gnu/libc.so.6
 3# NTL::UniqueArray<NTL::UniquePtr<NTL::FFTPrimeInfo, NTL::DefaultDeleterPolicy> >::~UniqueArray() at ../include/NTL/SmartPtr.h:1593
 4# __cxa_finalize in /lib/x86_64-linux-gnu/libc.so.6
 5# 0x00007FB6AF9515B3 in /usr/lib/x86_64-linux-gnu/libntl.so.43
-- end stack trace *-

Everything works nicely in Debian unstable, where everything was built against the newer NTL, but this issue is blocking both NTL and and Macaulay2 from migrating to Debian testing. See https://bugs.debian.org/995020.

One band-aid fix would be to just skip the tests that are affected for now until everything migrates and is built against the newer NTL, but I wonder if this is revealing a deeper bug somewhere?

@mahrud mahrud added the build issue platform specific issues involving compiling M2, generating examples, or running tests label Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build issue platform specific issues involving compiling M2, generating examples, or running tests
Projects
None yet
Development

No branches or pull requests

2 participants