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,388
    • Issues 4,388
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 374
    • Merge Requests 374
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #15154

Closed
Open
Opened May 15, 2018 by ki11men0w@trac-ki11men0w

Segmentation fault of ghc-pkg.exe from 32-bit distribution of ghc-8.2.2 on Windows 7

On Windows 7 call of ghc-pkg utility from 32-bit ghc-8.2.2 distribution is always ended with Segmentation fault error.

With use of Cygwin the error can be reproduced this way: run cmd.exe and in the appeared console window execute the following commands

c:\Users\user.name\wrk> bash
$ mkdir ghc-pkg-check
$ cd ghc-pkg-check
$ curl https://downloads.haskell.org/~ghc/8.2.2/ghc-8.2.2-i386-unknown-mingw32.tar.xz > ghc-8.2.2-i386-unknown-mingw32.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload   Upload  Total   Spent    Left  Speed
100  163M  100  163M    0     0  3669k      0  0:00:45  0:00:45 --:--:-- 4776k

$ xz -dc ghc-8.2.2-i386-unknown-mingw32.tar.xz | tar -xf -
$ cd ghc-8.2.2/bin/
$ ./ghc-pkg.exe --version
GHC package manager version 8.2.2
Segmentation fault

The error arises irrespective of how and with what arguments to call ghc-pkg utility. For example, firstly I has faced the problem using stack from Windows console:

> stack build --arch=i386 --resolver=11.9

I checked another distributions of GHC for presence of this bug on Windows 7. 64-bit version of ghc-8.2.2, 32-bit and 64-bit versions of ghc-8.0.2 and ghc-8.4.2 are free of the problem. I **did not check** the problem **on another versions** of MS Windows.

Trac metadata
Trac field Value
Version 8.2.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component ghc-pkg
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
8.6.1
Milestone
8.6.1 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#15154