[GHC] #8754: :set +s always says space usage is 0 bytes
#8754: :set +s always says space usage is 0 bytes ------------------------------------+--------------------------------- Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: Component: GHCi | Version: 7.8.1-rc1 Keywords: | Operating System: MacOS X Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+--------------------------------- :set +s always says space usage is 0 bytes {{{ ghci GHCi, version 7.8.20140130:... ... sumOfPrimes2 40000000 25 1677366278943 it :: Int (14.84 secs, 0 bytes) }}} setting to high as this is a regression -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by carter): i've also had this problem with my independent mac build. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by hvr): Replying to [ticket:8754 George]:
setting to high as this is a regression
...are you saying, this worked in 7.6.3? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by George): Right, a regression from 7.6.3 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by darchon): It is probably related to the fact that ghci is now dynamically linked: 7.8-RC1: {{{ GHCi, version 7.8.20140130: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> :set +s Prelude> sum [1,2,3,4] 10 (0.03 secs, 0 bytes) }}} Statically linked HEAD (`DYNAMIC_BY_DEFAULT = NO; DYNAMIC_GHC_PROGRAMS=NO; GhcLibWays = v p`): {{{ GHCi, version 7.9.20140207: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Prelude> :set +s Prelude> sum [1,2,3,4] 10 (0.05 secs, 8283104 bytes) }}} AFAIK, we can't have dynamic linking and profiling at the same time; so I don't know if this can be resolved before the release of 7.8.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by hvr): I wonder what's different on OSX, as on Linux `:set +s` works even with dynamic (non-profiling) libs -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by thoughtpolice): * milestone: => 7.8.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:"5023c91780e90947680fe0640f7564a4f6448bea/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="5023c91780e90947680fe0640f7564a4f6448bea" Fix #8754 in a round-about way. For some reason on OS X, it seems like -Bsymbolic (which we use for hooks into the RTS) isn't working, which results in #8754, where stats don't work because defaultHooks doesn't initialize the stats flag. This seems to work on Linux static/dynamically, but only on OS X statically. After talking with Simon, really, the entire hooks thing is a bit fragile. For now, we just work around it (since GHCi is dynamically linked) by calling into the defaultHooks ourselves when GHC starts. Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:7> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: merge Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by thoughtpolice): * status: new => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: merge Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:"b626c3d4ce0e66216705ba8355c914dc809e3fe7/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="b626c3d4ce0e66216705ba8355c914dc809e3fe7" Add comments explaining #8754 Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:9> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:10> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:"642bba349fda1508aa136f7169c0ba63fb00a6f9/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="642bba349fda1508aa136f7169c0ba63fb00a6f9" Revert "Add comments explaining #8754" This reverts commit b626c3d4ce0e66216705ba8355c914dc809e3fe7. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:11> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:"e789a4f51b6205160a696e3e6e13ecefb5ae16f7/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="e789a4f51b6205160a696e3e6e13ecefb5ae16f7" Revert "Fix #8754 in a round-about way." This reverts commit 5023c91780e90947680fe0640f7564a4f6448bea. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:12> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by hvr): * status: closed => new * resolution: fixed => Comment: re-opened (see also [http://permalink.gmane.org/gmane.comp.lang.haskell.ghc.devel/3761 ghc-dev post]) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:13> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:"c72e8898447b2a8e55f2d16594b5944c2ae13e24/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="c72e8898447b2a8e55f2d16594b5944c2ae13e24" Fix #8754 again. This time, we carefully initialize the GC stats only if they're not already initialized - this way the user can override them (e.g. `+RTS -t --machine-readable`). Signed-off-by: Austin Seipp <austin@well-typed.com> }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:14> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: merge Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by thoughtpolice): * status: new => merge Comment: Fixed in HEAD and in 7.8. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:15> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#8754: :set +s always says space usage is 0 bytes ---------------------------------+------------------------------------ Reporter: George | Owner: Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: GHCi | Version: 7.8.1-rc1 Resolution: fixed | Keywords: Operating System: MacOS X | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: ---------------------------------+------------------------------------ Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8754#comment:16> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC