Skip to content

Crash on gcd of polynomials over rings SIGABRT  #37317

@hellman

Description

@hellman

Steps To Reproduce

> sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.0, Release Date: 2023-05-20                    │
│ Using Python 3.10.11. Type "help()" for help.                      │
└────────────────────────────────────────────────────────────────────┘
sage: x = Zmod(10)['x'].gen()
sage: gcd(2*x, 2*x)
Flint exception (Impossible inverse):
    Cannot invert modulo 2*0
<crashes>

Expected Behavior

Does not crash

Actual Behavior

Crashes

Additional Information

Similar to #37169

Environment

- **OS**: Linux Mint 21.3
- **Sage Version**: 10.0 (from Conda)

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions