Skip to content

PARI/GP segfault with XCode 11.4 on local-homebrew-macos-standard #29451

@mkoeppe

Description

@mkoeppe

First reported in https://groups.google.com/d/msg/sage-release/kU5M1QVuQQY/Zu10Q-CKAwAJ

PARI fails its testsuite with "bug in PARI/GP (Segmentation Fault), please report."

Consequently, also many sagelib doctest failures of this kind:

File "src/sage/arith/misc.py", line 5801, in sage.arith.misc.dedekind_sum
Failed example:
    dedekind_sum(3^54 - 1, 2^93 + 1, algorithm='pari')
Exception raised:
    Traceback (most recent call last):
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-nokegonly-python3_xcode/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 681, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-nokegonly-python3_xcode/local/lib/python3.7/site-packages/sage/doctest/forker.py", line 1123, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.arith.misc.dedekind_sum[6]>", line 1, in <module>
        dedekind_sum(Integer(3)**Integer(54) - Integer(1), Integer(2)**Integer(93) + Integer(1), algorithm='pari')
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-nokegonly-python3_xcode/local/lib/python3.7/site-packages/sage/arith/misc.py", line 5839, in dedekind_sum
        x = sage.interfaces.gp.gp('sumdedekind(%s,%s)' % (p, q))
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-nokegonly-python3_xcode/local/lib/python3.7/site-packages/sage/interfaces/interface.py", line 297, in __call__
        return cls(self, x, name=name)
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-nokegonly-python3_xcode/local/lib/python3.7/site-packages/sage/interfaces/expect.py", line 1471, in __init__
        self._name = parent._create(value, name=name)
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-nokegonly-python3_xcode/local/lib/python3.7/site-packages/sage/interfaces/interface.py", line 502, in _create
        self.set(name, value)
      File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/.tox/local-homebrew-macos-standard-nokegonly-python3_xcode/local/lib/python3.7/site-packages/sage/interfaces/gp.py", line 561, in set
        raise TypeError("Error executing code in GP:\nCODE:\n\t%s\nPARI/GP ERROR:\n%s"%(cmd, out))
    TypeError: Error executing code in GP:
    CODE:
    	sage[2]=sumdedekind(58149737003040059690390168,9903520314283042199192993793);
    PARI/GP ERROR:
      ***   bug in PARI/GP (Segmentation Fault), please report.
**********************************************************************

To reproduce (with #29417):

  • tox -e local-homebrew-macos-standard-nokegonly-python3_xcode -- SAGE_CHECK=yes pari
  • tox -e local-homebrew-macos-standard -- SAGE_CHECK=yes pari

CC: @jhpalmieri

Component: porting

Author: Matthias Koeppe

Branch/Commit: ef6ecf4

Reviewer: John Palmieri

Issue created by migration from https://trac.sagemath.org/ticket/29451

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions