kpeeters / cadabra2

A field-theory motivated approach to computer algebra.
https://cadabra.science/
GNU General Public License v3.0
226 stars 37 forks source link

Ctest fails with python3.6 at test 59b of canonicalise.cdb: free(): invalid pointer #292

Closed badshah400 closed 8 months ago

badshah400 commented 8 months ago

When running ctest as part of a build process for openSUSE 15.5, which uses GCC 7.5.0 + Python 3.6 by default, we find that the test suite fails at:

[  351s] 36/48 Test #39: canonicalise .....................Subprocess aborted***Exception:   1.15 sec
[  351s] free(): invalid pointer

Running the canonicalise.cdb file individually shows the following output:

...
Test 55 passed
Test 56 passed
Test 57 passed
Test 58 passed
Test 59a passed
free(): invalid pointer
Aborted

The abort happens right at Line 878 where canonicalise(ex) is attempted.

We see no such problems when building with a combination of GCC 13.2 + Python 3.11 on openSUSE Tumbleweed.

Based on cadabra2 version 2.4.5.4.

kpeeters commented 8 months ago

While I admire your courage, supporting GCC 7.5.0 + Python 3.6 with a one-man project like this is a bit too much ;-)

badshah400 commented 8 months ago

Oh, I agree. If there is a minimum version of GCC and Python you would recommend, I could set up my build configuration accordingly. Thanks for the great app.

kpeeters commented 8 months ago

Anything currently supported by upstream.