Skip to content

ECM segfaults in Cygwin64 #21223

@embray

Description

@embray

Running ECM with almost any inputs results in a segfault on Cygwin64.

This is because any time it enters one of its hand-written assembly routines it needs to use the appropriate calling convention (Microsoft x64 convention on Windows), but it is only picking the correct Windows calling convention when compiling with mingw. It should do the same with Cygwin as well.

One possible workaround without patching would be to configure ECM with --disable-asm-redc to disable the custom assembly code entirely. But this is also overkill--the code works just fine as long as it's configured correctly for the platform.

Submitted upstream at https://gforge.inria.fr/tracker/index.php?func=detail&aid=20697&group_id=135&atid=623

Upstream: Fixed upstream, but not in a stable release.

CC: @jpflori @tscrim

Component: porting: Cygwin

Author: Erik Bray

Branch: a4adca5

Reviewer: Jeroen Demeyer

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions