getting back to this error:
So running something like
./sage -tp 24 --long --random-seed=230234824358800765306206065889005137096 src/sage/libs/gap/element.pyx
still leads to the segfault, right?
If so, could you add "print(rnd)" after "rnd = [...]" in the test in question
and re-run the above command?
(The idea is to print the actual value of rnd that causes the segfault)
--- a/src/sage/libs/gap/element.pyx
+++ b/src/sage/libs/gap/element.pyx
@@ -2488,6 +2488,7 @@ cdef class GapElement_Function(GapElement):
sage: for i in range(100):
....: rnd = [ randint(-10,10) for i in range(randint(0,7)) ]
+ ....: print(rnd)
....: # compute the sum in GAP
....: _ = libgap.Sum(rnd)
....: try:
It's most probably related to the fact that you're apparently using Python 3.12, installed on your OS,
to build and run sage (judging from
libpython3.12.so mentioned in the log you posted few days ago, for an earllier rc or beta).
I tried reproducing this by using a built from source Python 3.12 on Fedora 38, but all is good there.
Officially we still only support Python 3.11.
We have similar issues open:
Dima