[GHC] #10994: Test failing with DYNAMIC_GHC_PROGRAMS = NO

#10994: Test failing with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Test Suite | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Current git HEAD has failing tests after Phab:D975 when compiling with `DYNAMIC_GHC_PROGRAMS = NO`. {{{ Unexpected failures: ghci.debugger/scripts break001 [bad exit code] (ghci) ghci.debugger/scripts break005 [bad exit code] (ghci) ghci.debugger/scripts break006 [bad exit code] (ghci) ghci.debugger/scripts break011 [bad exit code] (ghci) ghci.debugger/scripts break017 [bad exit code] (ghci) ghci.debugger/scripts dynbrk007 [bad exit code] (ghci) ghci.debugger/scripts hist001 [bad exit code] (ghci) ghci.debugger/scripts print001 [bad exit code] (ghci) ghci.debugger/scripts print002 [bad exit code] (ghci) ghci.debugger/scripts print003 [bad exit code] (ghci) ghci.debugger/scripts print004 [bad exit code] (ghci) ghci.debugger/scripts print005 [bad exit code] (ghci) ghci.debugger/scripts print006 [bad exit code] (ghci) ghci.debugger/scripts print008 [bad exit code] (ghci) ghci.debugger/scripts print010 [bad exit code] (ghci) ghci.debugger/scripts print011 [bad exit code] (ghci) ghci.debugger/scripts print012 [bad exit code] (ghci) ghci.debugger/scripts print013 [bad exit code] (ghci) ghci.debugger/scripts print016 [bad exit code] (ghci) ghci.debugger/scripts print017 [bad exit code] (ghci) ghci.debugger/scripts print019 [bad exit code] (ghci) ghci.debugger/scripts print020 [bad exit code] (ghci) ghci.debugger/scripts print023 [bad exit code] (ghci) ghci.debugger/scripts print024 [bad exit code] (ghci) ghci.debugger/scripts print026 [bad exit code] (ghci) ghci.debugger/scripts print028 [bad exit code] (ghci) ghci.debugger/scripts print031 [bad exit code] (ghci) ghci.debugger/scripts print032 [bad exit code] (ghci) ghci.debugger/scripts print034 [bad exit code] (ghci) ghci/scripts T2976 [bad exit code] (ghci) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: Test failing with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Test Suite | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by erikd): Minimal test case to reproduce this is: {{{ inplace/bin/ghc-stage2 -fno-ghci-history --interactive -v0 -ignore-dot- ghci \ +RTS -I0.1 -RTS < testsuite/tests/ghci/scripts/T2976.script }}} Dropping the `+RTS -I0.1 -RTS` part will cause the test to pass. This suggests that the segfault happens when the GC runs. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Test Suite | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Test Suite | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by erikd): Running it in GDB gave the usual useless backtrace. Just as a test I compiled GHC unregisterised to see if it still segfaults like that (which would give me a backtrace), but it doesn't segfault when compiled unregisterised. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.11 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by erikd): * cc: simonmar (added) * component: Test Suite => Runtime System (Linker) Comment: Adding @simonmar (hope thats ok). I've done a code review and the only thing I can find which is obvioulsy not what you intended is the function `getPageSize`. I think you meant something like: {{{ static StgWord getPageSize(void) { static StgWord pagesize = 0; if (pagesize == 0) { pagesize = sysconf(_SC_PAGESIZE); } return pagesize; } }}} I'm willing to do a lot of the legwork on getting this fixed but would appreciated nudge in the right direction. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.11 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by olsner): * cc: olsner (added) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.11 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonmar): Thanks, I'll look into this today. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: simonmar Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.11 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonmar): * owner: => simonmar -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: simonmar Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.11 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): D1346, D1345 Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonmar): * differential: => D1346, D1345 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: simonmar Type: bug | Status: new Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.11 (Linker) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1346, Wiki Page: | Phab:D1345 -------------------------------------+------------------------------------- Changes (by simonmar): * differential: D1346, D1345 => Phab:D1346, Phab:D1345 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO
-------------------------------------+-------------------------------------
Reporter: erikd | Owner: simonmar
Type: bug | Status: new
Priority: high | Milestone: 8.0.1
Component: Runtime System | Version: 7.11
(Linker) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1346,
Wiki Page: | Phab:D1345
-------------------------------------+-------------------------------------
Comment (by Simon Marlow

#10994: GHCi segfaults when built with DYNAMIC_GHC_PROGRAMS = NO -------------------------------------+------------------------------------- Reporter: erikd | Owner: simonmar Type: bug | Status: closed Priority: high | Milestone: 8.0.1 Component: Runtime System | Version: 7.11 (Linker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1346, Wiki Page: | Phab:D1345 -------------------------------------+------------------------------------- Changes (by simonmar): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10994#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC