[GHC] #14510: GHC.ExecutionStack.showStackTrace broken

GHC ghc-devs at haskell.org
Fri Sep 28 06:16:37 UTC 2018


#14510: GHC.ExecutionStack.showStackTrace broken
---------------------------------+--------------------------------------
        Reporter:  duog          |                Owner:  (none)
            Type:  bug           |               Status:  new
        Priority:  normal        |            Milestone:
       Component:  Compiler      |              Version:  8.2.1
      Resolution:                |             Keywords:
Operating System:  Linux         |         Architecture:  x86_64 (amd64)
 Type of failure:  None/Unknown  |            Test Case:
      Blocked By:                |             Blocking:
 Related Tickets:                |  Differential Rev(s):
       Wiki Page:                |
---------------------------------+--------------------------------------
Changes (by osa1):

 * cc: osa1 (added)


Comment:

 What is the expected output here? I just tried this with 8.2.2, 8.4.3 and
 8.6.1 on Ubuntu 18.04. I don't get any errors with 8.4.3 and 8.6.1 but
 `showStackTrace` returns `Nothing`. With 8.2.2 I get this compile error:

 {{{
 [1 of 1] Compiling Main             ( testdwarf.hs, testdwarf.o )
 /tmp/ghc28125_0/ghc_2.s: Assembler messages:

 /tmp/ghc28125_0/ghc_2.s:1059:0: error:
      Error: invalid operands (.debug_frame and .note.GNU-stack sections)
 for `-'
      |
 1059 |         .uleb128 1f-.-1
      | ^

 /tmp/ghc28125_0/ghc_2.s:1133:0: error:
      Error: invalid operands (.debug_frame and .note.GNU-stack sections)
 for `-'
      |
 1133 |         .uleb128 1f-.-1
      | ^

 /tmp/ghc28125_0/ghc_2.s:1162:0: error:
      Error: invalid operands (.debug_frame and .note.GNU-stack sections)
 for `-'
      |
 1162 |         .uleb128 1f-.-1
      | ^

 /tmp/ghc28125_0/ghc_2.s:1191:0: error:
      Error: invalid operands (.debug_frame and .note.GNU-stack sections)
 for `-'
      |
 1191 |         .uleb128 1f-.-1
      | ^
 `gcc' failed in phase `Assembler'. (Exit code: 1)
 }}}

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


More information about the ghc-tickets mailing list