[GHC] #15340: Investigate using Ward on RTS

#15340: Investigate using Ward on RTS -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 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: -------------------------------------+------------------------------------- While debugging a locking issue a few weeks ago I found myself pining for static analysis tooling. Today I briefly looked at the options and one stood out: [[https://github.com/evincarofautumn/Ward|Ward]]. It sits in a very nice point in the design space, allowing the user to specify the universe of privileges and annotate functions using standard C attributes. I think this would be a very helpful tool for GHC. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15340 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15340: Investigate using Ward on RTS -------------------------------------+------------------------------------- Reporter: bgamari | Owner: (none) Type: task | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 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 bgamari): There are many many things which I would like to have statically checked that in principle Ward is capable of: * Verifying that callers into the GC have a valid `gc_thread` declaration in scope (since it may be a `register` variable) * `SM_LOCK` checking * `linker_lock` checking * Capability possession checking -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15340#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC