Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,274
    • Issues 4,274
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 412
    • Merge Requests 412
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #14496

Closed
Open
Opened Nov 21, 2017 by Ryan Scott@RyanGlScottMaintainer

Invoking GHC 8.2.1 executable anywhere results in access violation on Windows 10

This apparently started to happen somewhat recently, as I've been able to run GHC 8.2.1 on Windows before. (Perhaps it was a recent update that changed things?) In any case, any attempt to run GHC or GHCi 8.2.1 immediately results in an access violation, and always at the same memory location:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.1

$ ghc
Access violation in generated code when reading 000000001170399e

$ ghci
WARNING: GHCi invoked via 'ghci.exe' in MinTTY consoles (e.g., Cygwin or MSYS)
         doesn't handle Ctrl-C well; use the 'ghcii.sh' shell wrapper instead
GHCi, version 8.2.1: http://www.haskell.org/ghc/  :? for help
Access violation in generated code when reading 000000001170399e

Strangely enough, GHC 8.0.2 and older do not suffer from this issue, just 8.2.1.

In case it's useful, here's the strace output:

$ strace ghc
Access violation in generated code when reading 000000001170399e
create_child: ghc
--- Process 10324 created
--- Process 10324 loaded C:\Windows\System32\ntdll.dll at 00007ffa31280000
--- Process 10324 loaded C:\Windows\System32\kernel32.dll at 00007ffa31170000
--- Process 10324 loaded C:\Windows\System32\KernelBase.dll at 00007ffa2dd40000
--- Process 10324 loaded C:\Windows\System32\apphelp.dll at 00007ffa2b500000
--- Process 10324 loaded C:\Windows\System32\AcLayers.dll at 00007ffa03630000
--- Process 10324 loaded C:\Windows\System32\msvcrt.dll at 00007ffa30ab0000
--- Process 10324 loaded C:\Windows\System32\user32.dll at 00007ffa2e850000
--- Process 10324 loaded C:\Windows\System32\win32u.dll at 00007ffa2dba0000
--- Process 10324 loaded C:\Windows\System32\gdi32.dll at 00007ffa2ec30000
--- Process 10324 loaded C:\Windows\System32\gdi32full.dll at 00007ffa2da00000
--- Process 10324 loaded C:\Windows\System32\msvcp_win.dll at 00007ffa2d960000
--- Process 10324 loaded C:\Windows\System32\ucrtbase.dll at 00007ffa2dbc0000
--- Process 10324 loaded C:\Windows\System32\shlwapi.dll at 00007ffa2e7f0000
--- Process 10324 loaded C:\Windows\System32\combase.dll at 00007ffa30e50000
--- Process 10324 loaded C:\Windows\System32\rpcrt4.dll at 00007ffa2e9e0000
--- Process 10324 loaded C:\Windows\System32\bcryptprimitives.dll at 00007ffa2dcc0000
--- Process 10324 loaded C:\Windows\System32\sfc.dll at 0000000180000000
--- Process 10324 loaded C:\Windows\System32\winspool.drv at 00007ffa1db00000
--- Process 10324 loaded C:\Windows\System32\IPHLPAPI.DLL at 00007ffa2cb90000
--- Process 10324 loaded C:\Windows\System32\bcrypt.dll at 00007ffa2d0d0000
--- Process 10324 loaded C:\Windows\System32\sfc_os.dll at 00007ffa1c2e0000
--- Process 10324 loaded C:\Windows\System32\imm32.dll at 00007ffa31220000
--- Process 10324 loaded C:\Windows\System32\shell32.dll at 00007ffa2ef80000
--- Process 10324 loaded C:\Windows\System32\cfgmgr32.dll at 00007ffa2e700000
--- Process 10324 thread 3948 created
--- Process 10324 loaded C:\Windows\System32\SHCore.dll at 00007ffa30cf0000
--- Process 10324 loaded C:\Windows\System32\windows.storage.dll at 00007ffa2dfb0000
--- Process 10324 loaded C:\Windows\System32\advapi32.dll at 00007ffa30da0000
--- Process 10324 loaded C:\Windows\System32\sechost.dll at 00007ffa2eb00000
--- Process 10324 thread 4764 created
--- Process 10324 loaded C:\Windows\System32\kernel.appcore.dll at 00007ffa2d660000
--- Process 10324 loaded C:\Windows\System32\powrprof.dll at 00007ffa2d5f0000
--- Process 10324 loaded C:\Windows\System32\profapi.dll at 00007ffa2d5d0000
--- Process 10324 thread 3852 created
--- Process 10324 loaded C:\Windows\System32\wsock32.dll at 00007ffa1c2b0000
--- Process 10324 loaded C:\Windows\System32\ws2_32.dll at 00007ffa2ef10000
--- Process 10324 loaded C:\Windows\System32\ws2_32.dll at 0000000000150000
--- Process 10324 unloaded DLL at 0000000000150000
--- Process 10324 thread 4872 created
--- Process 10324 thread 5780 created
--- Process 10324 thread 8360 created
--- Process 10324, exception c0000005 at 00007ffa3129c12e
--- Process 10324 thread 8360 exited with status 0x1
--- Process 10324 thread 5780 exited with status 0x1
--- Process 10324 thread 4872 exited with status 0x1
--- Process 10324 thread 3852 exited with status 0x1
--- Process 10324 thread 4764 exited with status 0x1
--- Process 10324 thread 3948 exited with status 0x1
--- Process 10324 exited with status 0x1
Trac metadata
Trac field Value
Version 8.2.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC Phyx-
Operating system
Architecture
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#14496