[GHC] #13082: GHCi segfaults with the flag -llibopenal, but not with -lopenal

GHC ghc-devs at haskell.org
Sun Jan 15 13:07:57 UTC 2017


#13082: GHCi segfaults with the flag -llibopenal, but not with -lopenal
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  Phyx-
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.2.1
       Component:  Runtime System    |              Version:  8.0.2
  (Linker)                           |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  GHCi crash        |            Test Case:  T13082_good,
                                     |  T13082_fail
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2941
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Tamar Christina <tamar@…>):

 In [changeset:"331f88d0d878eae926b3c1c61a3ff344916b62ed/ghc"
 331f88d0/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="331f88d0d878eae926b3c1c61a3ff344916b62ed"
 Fix abort and import lib search on Windows

 Summary:
 Apparently `sysErrorBelch` doesn't terminate the program anymore making
 previously unreachable code now execute. If a dll is not found the error
 message we return needs to be a heap value.

 Secondly also allow the pattern `lib<name>` to be allowed for finding an
 import library with the name `lib<name>.dll.a`.

 Test Plan: ./validate, new tests T13082_good and T13082_fail

 Reviewers: austin, RyanGlScott, hvr, erikd, simonmar, bgamari

 Reviewed By: RyanGlScott, bgamari

 Subscribers: thomie, #ghc_windows_task_force

 Differential Revision: https://phabricator.haskell.org/D2941

 GHC Trac Issues: #13082
 }}}

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


More information about the ghc-tickets mailing list