[GHC] #8458: T5435_dyn_asm fails on x86_64 Linux

#8458: T5435_dyn_asm fails on x86_64 Linux --------------------------+------------------------------------------------ Reporter: | Owner: simonmar jstolarek | Status: new Type: bug | Milestone: Priority: normal | Version: 7.7 Component: | Operating System: Linux Runtime System | Type of failure: Incorrect result at runtime Keywords: | Test Case: Architecture: x86_64 | Blocking: (amd64) | Difficulty: | Unknown | Blocked By: | Related Tickets: | --------------------------+------------------------------------------------ I keep getting failure from `T5435_dyn_asm` test: {{{ make WAY=normal TEST=T5435_dyn_asm =====> T5435_dyn_asm(normal) 2622 of 3829 [0, 0, 0] cd ./rts && $MAKE -s --no-print-directory T5435_dyn_asm
T5435_dyn_asm.run.stdout 2>T5435_dyn_asm.run.stderr Actual stdout output differs from expected: --- ./rts/T5435_dyn_asm.stdout 2013-10-16 09:49:22.236712001 +0200 +++ ./rts/T5435_dyn_asm.run.stdout 2013-10-18 19:26:11.076223002 +0200 @@ -1,5 +1,5 @@ -initArray1 -initArray2 ctors1 ctors2 +initArray1 +initArray2 success *** unexpected failure for T5435_dyn_asm(normal) }}}
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8458 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8458: T5435_dyn_asm fails on x86_64 Linux ------------------------------------------------+-------------------------- Reporter: jstolarek | Owner: Type: bug | simonmar Priority: normal | Status: new Component: Runtime System | Milestone: Resolution: | Version: 7.7 Operating System: Linux | Keywords: Type of failure: Incorrect result at runtime | Architecture: x86_64 Test Case: | (amd64) Blocking: | Difficulty: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Comment (by rwbarton): I get this too on my old-stable Debian systems. I think it's because the system dlopen runs the sections in a different order than modern dlopen (which is the order the test expects). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8458#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8458: T5435_dyn_asm fails on x86_64 Linux ------------------------------------------------+-------------------------- Reporter: jstolarek | Owner: ezyang Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Incorrect result at runtime | (amd64) Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by simonmar): * owner: simonmar => ezyang Comment: Edward, can we do anything about this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8458#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8458: T5435_dyn_asm fails on x86_64 Linux ------------------------------------------------+-------------------------- Reporter: jstolarek | Owner: ezyang Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Incorrect result at runtime | (amd64) Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Comment (by ezyang): Well, that is quite annoying, but good to know (that's why I put this in the test). I suppose there are a few things we could do. Probably the easiest thing to do is relax the test and warn users that GHCi's static loading behavior may differ from the dynamic loading behavior on certain platforms (code with both ctors and init_array ought to be quite rare). Could be a nasty gotcha if it does matter, though. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8458#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8458: T5435_dyn_asm fails on x86_64 Linux
------------------------------------------------+--------------------------
Reporter: jstolarek | Owner: ezyang
Type: bug | Status: merge
Priority: normal | Milestone:
Component: Runtime System | Version: 7.7
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64
Type of failure: Incorrect result at runtime | (amd64)
Test Case: | Difficulty:
Blocking: | Unknown
| Blocked By:
| Related Tickets:
------------------------------------------------+--------------------------
Changes (by ezyang):
* status: new => merge
Comment:
{{{
commit f8e12e2b396e0c475e1403ab8ac3fc4d63c1681e
Author: Edward Z. Yang

#8458: T5435_dyn_asm fails on x86_64 Linux ------------------------------------------------+-------------------------- Reporter: jstolarek | Owner: ezyang Type: bug | Status: closed Priority: normal | Milestone: Component: Runtime System | Version: 7.7 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86_64 Type of failure: Incorrect result at runtime | (amd64) Test Case: | Difficulty: Blocking: | Unknown | Blocked By: | Related Tickets: ------------------------------------------------+-------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: I'm not particularly inclined to merge this, FWIW, so I'm marking as closed unless someone else feels differently. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8458#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC