[GHC] #12031: GHCi segfaults on Windows when compiling C code using extern-declared variable

GHC ghc-devs at haskell.org
Sun Aug 28 08:48:42 UTC 2016


#12031: GHCi segfaults on Windows when compiling C code using extern-declared
variable
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  Phyx-
            Type:  bug               |               Status:  merge
        Priority:  high              |            Milestone:  8.0.2
       Component:  Runtime System    |              Version:  8.0.1
  (Linker)                           |
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:  x86_64
                                     |  (amd64)
 Type of failure:  GHCi crash        |            Test Case:  T12031
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D2316
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Phyx-):

 @bgamari, With those changes above it works. Test doesn't pass because `
 TEST_HC_OPTS_INTERACTIVE` isn't defined in the teststuite of that version.

 If you want to make it pass, do:

 {{{
 diff --git a/testsuite/tests/rts/T12031/Makefile
 b/testsuite/tests/rts/T12031/Makefile
 index 0a94206..72b34cc 100644
 --- a/testsuite/tests/rts/T12031/Makefile
 +++ b/testsuite/tests/rts/T12031/Makefile
 @@ -5,4 +5,4 @@ include $(TOP)/mk/test.mk
  T12031:
         '$(TEST_HC)' -c bar.c -o bar.o
         '$(TEST_HC)' -c baz.c -o baz.o
 -       echo bar | '$(TEST_HC)' $(TEST_HC_OPTS_INTERACTIVE) bar.o baz.o
 ExternBug.hs
 +       echo bar | '$(TEST_HC)' $(TEST_HC_OPTS) --interactive -v0 -ignore-
 dot-ghci -fno-ghci-history bar.o baz.o ExternBug.hs
 }}}

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


More information about the ghc-tickets mailing list