Skip to content

Access violation on Windows on GHC 8.8.3, 8.8.4, 8.10.1 and 8.10.2 #4543

Closed

Description

@asr

The workflow using Windows and stack fails on GHC 8.8.3:

alex                > Building executable 'alex' for alex-3.2.5..
alex                > 
alex                > Access violation in generated code when writing 0x0
alex                > 
alex                >  Attempting to reconstruct a stack trace...

It seems a similar problem was reported in the GHC bug tracker: Issue 17926.

Versions used by the workflow:

  • Current runner version: '2.168.0'
  • Operating System
    Microsoft Windows Server 2019
    10.0.17763
    Datacenter
  • Virtual Environment
    Environment: windows-2019
    Version: 20200319.1

Activity

  1. added
    type: bug
    platform: windows
    on Mar 27, 2020
  2. added this to the 2.6.2 milestone on Mar 27, 2020
  3. added a commit that references this issue on Apr 7, 2020
    33c4db8
  4. self-assigned this
    on Apr 8, 2020
  5. added
    status: abandoned
    on Apr 14, 2020
  6. asr commented on Apr 14, 2020

    @asr
    MemberAuthor

    Now we are using GHC 8.10.1 in the test of Windows + stack. Since problem in the OP doens't happen with this version of GHC, I'm closing this issue.

  7. L-TChen commented on Apr 15, 2020

    @L-TChen
    Member

    The problem sadly persists even with GHC 8.10.1 on Windows + stack, see https://github.com/agda/agda/runs/587539489.

  8. changed the title [-]Access violation on Windows + stack + GHC 8.8.3[/-] [+]Access violation on Windows + stack + GHC 8.10.1[/+] on Apr 15, 2020
  9. removed
    status: abandoned
    on Apr 15, 2020
  10. 26 remaining items

  11. asr commented on Aug 23, 2020

    @asr
    MemberAuthor

    Note we have the problem only with Cabal.

  12. added 2 commits that reference this issue on Oct 8, 2020
    0601d59
    c25bd3f
  13. changed the title [-]Access violation on Windows on GHC 8.8.3, 8.8.4 and 8.10.1[/-] [+]Access violation on Windows on GHC 8.8.3, 8.8.4, 8.10.1 and 8.10.2[/+] on Oct 28, 2020
  14. asr commented on Oct 28, 2020

    @asr
    MemberAuthor
  15. added 2 commits that reference this issue on Dec 8, 2020
    ee40c68
    20c4cdf
  16. L-TChen commented on Dec 24, 2020

    @L-TChen
    Member

    I closed this issue accidentally instead of #4513. So, I am reopening this one and closed the other.

  17. L-TChen commented on Jan 7, 2021

    @L-TChen
    Member

    The problem seems going away as it usually failed at compiling VersionCommit, see the log.

    Yet, ghc 8.10.3 still fails at compiling TypeChecking.Rules.Term with a different error message

    [341 of 394] Compiling Agda.TypeChecking.Rules.Term ( src\full\Agda\TypeChecking\Rules\Term.hs, D:\a\agda\agda\dist-newstyle\build\x86_64-windows\ghc-8.10.3\Agda-2.6.2\build\Agda\TypeChecking\Rules\Term.o )
    C://ProgramData//chocolatey//lib//ghc.8.10.3//tools//ghc-8.10.3//mingw//bin/as.exe: out of memory allocating 4064 bytes
    `gcc.exe' failed in phase `Assembler'. (Exit code: 1)
    Warning: Attempt 1 failed. Reason: Child_process exited with error code 1
    

    This might be caused by something else, since ghc 8.10.2 sometimes fails randomly on the GitHub-hosted runner with the option --split-sections. Anyway, cabal manages to compile Agda. I will submit another issue if it fails reliably.

    @asr, should we add a clause in Agda.cabal to exclude 8.8.x and 8.10.1--8.10.2 on Windows?

  18. asr commented on Jan 7, 2021

    @asr
    MemberAuthor

    @asr, should we add a clause in Agda.cabal to exclude 8.8.x and 8.10.1--8.10.2 on Windows?

    No. If the user has a similar problem with cabal-install we can suggest: to use stack or to use GHC 8.10.3.

  19. asr commented on Jan 7, 2021

    @asr
    MemberAuthor

    It seems the problem was fixed in GHC 8.10.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ghc-8.10.1ghc-8.10.2ghc-8.8.3ghc-8.8.4platform: windowsstackagetype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions