[GHC] #15154: Segmentation fault of ghc-pkg.exe from 32-bit distribution of ghc-8.2.2 on Windows 7

GHC ghc-devs at haskell.org
Tue May 15 12:35:53 UTC 2018


#15154: Segmentation fault of ghc-pkg.exe from 32-bit distribution of ghc-8.2.2 on
Windows 7
-------------------------------------+-------------------------------------
           Reporter:  ki11men0w      |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  ghc-pkg        |           Version:  8.2.2
           Keywords:                 |  Operating System:  Windows
       Architecture:  x86            |   Type of failure:  Compile-time
                                     |  crash or panic
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 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
 {{{#!bash
 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:
 {{{#!bat
 > 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.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15154>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list