[GHC] #13278: test 'debug' is timing out on OS X
#13278: test 'debug' is timing out on OS X ----------------------------------------+--------------------------------- Reporter: rwbarton | Owner: (none) Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 8.1 Keywords: | Operating System: MacOS X Architecture: Unknown/Multiple | Type of failure: None/Unknown Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ----------------------------------------+--------------------------------- All the builds I've seen are failing due to a timeout of the `debug` test, apparently while running the `./debug` executable. Strange since it looks like it ought to finish very quickly. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13278> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13278: test 'debug' is timing out on OS X ---------------------------------+---------------------------------------- Reporter: rwbarton | Owner: rwbarton Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by rwbarton): * owner: (none) => rwbarton -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13278#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13278: test 'debug' is timing out on OS X ---------------------------------+---------------------------------------- Reporter: rwbarton | Owner: rwbarton Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Comment (by bgamari): It seems to be stuck in a loop between 0x100001110 and 0x100001124, {{{ debug`ZCMain_main_info: 0x100001110 <+0>: leaq -0x10(%rbp), %rax 0x100001114 <+4>: cmpq %r15, %rax 0x100001117 <+7>: jb 0x100001126 0x10000111d: nop 0x10000111e: nop 0x10000111f: nop 0x100001120: nop 0x100001121: nop 0x100001122: nop 0x100001123: nop debug`n27q: 0x100001124 <+0>: jmpq *(%rbx) }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13278#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13278: test 'debug' is timing out on OS X ---------------------------------+---------------------------------------- Reporter: rwbarton | Owner: bgamari Type: bug | Status: new Priority: high | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ---------------------------------+---------------------------------------- Changes (by rwbarton): * owner: rwbarton => bgamari Comment: We're generating code like {{{ .globl _ZCMain_main_info _ZCMain_main_info: Lc27e: n27l: leaq -16(%rbp),%rax cmpq %r15,%rax jb Lc27f Lc27e_end: Lc27g: n27s: subq $8,%rsp n27u: movq %r13,%rax movq %rbx,%rsi movq %rax,%rdi ... }}} and the symbols `n27l`, `n27s` etc. are not local symbols, so the linker seems to think that `n27s` is the end of `_ZCMain_main_info` and is stripping out the "dead code". -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13278#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13278: test 'debug' is timing out on OS X ---------------------------------+---------------------------------------- Reporter: rwbarton | Owner: bgamari Type: bug | Status: patch Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3135 Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D3135 * milestone: => 8.2.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13278#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13278: test 'debug' is timing out on OS X ---------------------------------+---------------------------------------- Reporter: rwbarton | Owner: bgamari Type: bug | Status: closed Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3135 Wiki Page: | ---------------------------------+---------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13278#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#13278: test 'debug' is timing out on OS X ---------------------------------+---------------------------------------- Reporter: rwbarton | Owner: bgamari Type: bug | Status: closed Priority: high | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D3135 Wiki Page: | ---------------------------------+---------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"2d6e91eab9391210b8b816d9664407f246ef30e4/ghc" 2d6e91e/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="2d6e91eab9391210b8b816d9664407f246ef30e4" Debug: Use local symbols for unwind points (#13278) While this apparently didn't matter on Linux, the OS X toolchain seems to treat local and external symbols differently during linking. Namely, the linker assumes that an external symbol marks the beginning of a new, unused procedure, and consequently drops it. Fixes regression introduced in D2741. Test Plan: `debug` testcase on OS X Reviewers: austin, simonmar, rwbarton Reviewed By: rwbarton Subscribers: rwbarton, thomie Differential Revision: https://phabricator.haskell.org/D3135 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13278#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC