This is what happens:
sage: s(libgap(1), libgap(2)) ## line 2483 ## 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: libgap.Sum(*rnd) print('This should have triggered a ValueError') print('because Sum needs a list as argument') except ValueError: pass ## line 2489 ## [-9, 0] [] [] [-5, -6, 2, -4, 8] [-1, -3, 5, 5, -3, -1, -9] [1, -2] [2, -9, 3, -5, 7, -3] [5, 4, -3, -9, 10] [2, -5, 10, -9] [-8, -9, -3, -6, 2, 2, -7] [9, 5, 5, -8, 0, 0, 0] [9, -6, -5, 7, -2, 8] [] [0, -4, 10, -8, 2] [-9] [] [5] [6, 9] [8, 5, -7, 5, 1, -1] [] [10, -7, 9] ------------------------------------------------------------------------ /home/jaap/sagemath/sage-10.3.rc2/local/var/lib/sage/venv-python3.12/lib64/python3.12/site-packages/cysignals/ signals.cpython-312-x86_64-linux-gnu.so(+0x9f1c)[0x7 f7dd89b0f1c] /home/jaap/sagemath/sage-10.3.rc2/local/var/lib/sage/venv-python3.12/lib64/python3.12/site-packages/cysignals/ signals.cpython-312-x86_64-linux-gnu.so(+0x9fb6)[0x7 f7dd89b0fb6] /home/jaap/sagemath/sage-10.3.rc2/local/var/lib/sage/venv-python3.12/lib64/python3.12/site-packages/cysignals/ signals.cpython-312-x86_64-linux-gnu.so(+0xc966)[0x7 f7dd89b3966] /lib64/libc.so.6(+0x3e9a0)[0x7f7de6c5c9a0] /home/jaap/sagemath/sage-10.3.rc2/src/sage/libs/gap/ element.cpython-312-x86_64-linux-gnu.so(+0x3923c)[0x7f7d869d623c] /home/jaap/sagemath/sage-10.3.rc2/src/sage/libs/gap/ element.cpython-312-x86_64-linux-gnu.so(+0x39ffb)[0x7f7d869d6ffb] /lib64/libpython3.12.so.1.0(_PyObject_Call+0x79)[0x7f7de7022149] /lib64/libpython3.12.so.1.0(+0x1101e4)[0x7f7de6f101e4] /lib64/libpython3.12.so.1.0(PyEval_EvalCode+0xb6)[0x7f7de708b316] /lib64/libpython3.12.so.1.0(+0x2a647c)[0x7f7de70a647c] /lib64/libpython3.12.so.1.0(+0x110c63)[0x7f7de6f10c63] /lib64/libpython3.12.so.1.0(_PyObject_FastCallDictTstate+0x11f)[0x7f7de6ff9aff] /lib64/libpython3.12.so.1.0(_PyObject_Call_Prepend+0x73)[0x7f7de701ea33] /lib64/libpython3.12.so.1.0(+0x2cb7c5)[0x7f7de70cb7c5] /lib64/libpython3.12.so.1.0(_PyObject_MakeTpCall+0x125)[0x7f7de6ff7435] /lib64/libpython3.12.so.1.0(+0x10f7c3)[0x7f7de6f0f7c3] /lib64/libpython3.12.so.1.0(_PyObject_FastCallDictTstate+0xa6)[0x7f7de6ff9a86] /lib64/libpython3.12.so.1.0(+0x21e842)[0x7f7de701e842] /lib64/libpython3.12.so.1.0(+0x1f75db)[0x7f7de6ff75db] /lib64/libpython3.12.so.1.0(_PyObject_MakeTpCall+0x76)[0x7f7de6ff7386] /lib64/libpython3.12.so.1.0(+0x10f7c3)[0x7f7de6f0f7c3] /lib64/libpython3.12.so.1.0(PyEval_EvalCode+0xb6)[0x7f7de708b316] /lib64/libpython3.12.so.1.0(+0x2ae05a)[0x7f7de70ae05a] /lib64/libpython3.12.so.1.0(+0x2a8f6e)[0x7f7de70a8f6e] /lib64/libpython3.12.so.1.0(+0x2c9a93)[0x7f7de70c9a93] /lib64/libpython3.12.so.1.0(_PyRun_SimpleFileObject+0x1ca)[0x7f7de70c912a] /lib64/libpython3.12.so.1.0(_PyRun_AnyFileObject+0x4f)[0x7f7de70c8c9f] /lib64/libpython3.12.so.1.0(Py_RunMain+0x352)[0x7f7de70b9922] /lib64/libpython3.12.so.1.0(Py_BytesMain+0x3c)[0x7f7de70750dc] /lib64/libc.so.6(+0x2814a)[0x7f7de6c4614a] /lib64/libc.so.6(__libc_start_main+0x8b)[0x7f7de6c4620b] python3(_start+0x25)[0x556e9f719095] ------------------------------------------------------------------------ Jaap On Mon, Mar 11, 2024 at 1:34 PM Dima Pasechnik <dimp...@gmail.com> wrote: > > > On Wed, Mar 6, 2024 at 12:02 PM Jaap Spies <jaapsp...@gmail.com> wrote: > >> Operating System: Fedora Linux 39 >> Kernel Version: 6.7.3-200.fc39.x86_64 (64-bit) >> Processors: 24 × 13th Gen Intel® Core™ i7-13700KF >> Memory: 31,2 GiB of RAM >> >> make ptestlong >> same error as expected: >> ---------------------------------------------------------------------- >> sage -t --long --warn-long 29.6 >> --random-seed=230234824358800765306206065889005137096 >> src/sage/libs/gap/element.pyx # Killed due to segmentation fault >> > > 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: > https://github.com/sagemath/sage/issues/37026 > https://github.com/sagemath/sage/issues/37289 > > Dima > > >> Jaap >> ---------------------------------------------------------------------- >> >> On Tue, Mar 5, 2024 at 7:08 PM Matthias Köppe <matthiaskoe...@gmail.com> >> wrote: >> >>> Thanks for the report! >>> https://github.com/sagemath/sage/pull/37543 adds the missing dependency >>> declaration. >>> >>> On Tuesday, March 5, 2024 at 1:10:30 AM UTC-8 furutaka....@gmail.com >>> wrote: >>> >>>> On a PC running Fedora-39 (x86_64): failed in building >>>> "sagemath_doc_html-none", >>>> needed to do `./sage -i graphs` and then make again to finish building. >>>> >>>> Procedure: >>>> 1. copy the git source. >>>> 2. `make configure && ./configure && dnf install <suggested packages> >>>> && make reconfigure`. >>>> 3. make -> stopped in building "sagemath_doc_html-none". >>>> 4. `./sage -i graphs && make` to finish the build. >>>> >>>> Kazuyoshi >>>> >>>> >>>> 2024年3月5日(火) 8:40 Volker Braun <vbrau...@gmail.com>: >>>> >>>>> As always, you can get the latest beta version from the "develop" git >>>>> branch. Alternatively, the self-contained source tarball is at >>>>> http://www.sagemath.org/download-latest.html >>>>> >>>>> >>>>> cb8e15b4769 (tag: 10.3.rc2, github/develop) Updated SageMath version >>>>> to 10.3.rc2 >>>>> 872ca39ec42 gh-37504: `cmake`, `ninja_build`: Reject installations in >>>>> inaccessible user schemes >>>>> fc0d3399a69 gh-37495: build/pkgs/flint: Reject FLINT >= 3.1.0 >>>>> 4ac7152b170 (tag: 10.3.rc1) Updated SageMath version to 10.3.rc1 >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "sage-release" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to sage-release...@googlegroups.com. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/sage-release/cc8e19ba-ee2a-49c9-b4c5-d3ed3b54e222n%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/sage-release/cc8e19ba-ee2a-49c9-b4c5-d3ed3b54e222n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> >>>> >>>> -- >>>> Kazuyoshi Furutaka >>>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "sage-release" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to sage-release+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/sage-release/a55493b6-cc3c-49f5-9e8b-d26d5f09942cn%40googlegroups.com >>> <https://groups.google.com/d/msgid/sage-release/a55493b6-cc3c-49f5-9e8b-d26d5f09942cn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-release" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-release+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-release/CAK0%3DbK11NHhRuiXrBkJ%2BiOgXFAbbFRWYmLJQJ70TT5Tgmye3-A%40mail.gmail.com >> <https://groups.google.com/d/msgid/sage-release/CAK0%3DbK11NHhRuiXrBkJ%2BiOgXFAbbFRWYmLJQJ70TT5Tgmye3-A%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > You received this message because you are subscribed to the Google Groups > "sage-release" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-release+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-release/CAAWYfq0Uf7Bmfks6S%3DmSTMb-xzvRYoPyCko3pJ_4ESovKZCMGQ%40mail.gmail.com > <https://groups.google.com/d/msgid/sage-release/CAAWYfq0Uf7Bmfks6S%3DmSTMb-xzvRYoPyCko3pJ_4ESovKZCMGQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/CAK0%3DbK2X1Xn7YhrVYsRUr0dkJS9YaDazR%2B_W%3DyKgS%3DTQtkxHAQ%40mail.gmail.com.