8000 Segfault testing src/sage/libs/gap/element.pyx on python 3.12 · Issue #37026 · sagemath/sage · GitHub
[go: up one dir, main page]

Skip to content
Segfault testing src/sage/libs/gap/element.pyx on python 3.12 #37026
@tornaria

Description

@tornaria

Concerning the error in src/sage/libs/gap/element.pyx, it happens in line 2489:

for i in range(100):
        rnd = [ randint(-10,10) for i in range(randint(0,7)) ]
        # 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

getting Killed due to segmentation fault. Running this code in the terminal works, the error appears only in tests and with python 3.12.

Originally posted by @enriqueartal in #37011 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0