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 |