[GHC] #15292: ghc_ticker loops if permission denied on timerfd
#15292: ghc_ticker loops if permission denied on timerfd ---------------------------------------+---------------------------------- Reporter: jon.fairbairn@… | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Keywords: | Operating System: Linux Architecture: x86_64 (amd64) | Type of failure: Runtime crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: ---------------------------------------+---------------------------------- Using stack with lts-11.6 to compile a cgi programme, I got something that runs OK from the command line, but which goes into a busy loop when run from httpd. This is caused by selinux preventing read on the timer. Changing the selunix permissions solves the problems, but ghc-ticker ought to check whether the read succeeded and not try again if it fails. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15292> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15292: ghc_ticker loops if permission denied on timerfd ------------------------------------+-------------------------------------- Reporter: jon.fairbairn@… | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | ------------------------------------+-------------------------------------- Changes (by jon.fairbairn@…): * Attachment "al3" added. Three lines from selinux audit log (shows successive attempts to read timer within same millisecond) -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15292> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15292: ghc_ticker loops if permission denied on timerfd ------------------------------------+-------------------------------------- Reporter: jon.fairbairn@… | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4875 Wiki Page: | ------------------------------------+-------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D4875 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15292#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15292: ghc_ticker loops if permission denied on timerfd ------------------------------------+-------------------------------------- Reporter: jon.fairbairn@… | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4875 Wiki Page: | ------------------------------------+-------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"c7b1e93b47915a5276dfdb04f09030f5abaed290/ghc" c7b1e93/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="c7b1e93b47915a5276dfdb04f09030f5abaed290" rts: Abort if timerfd read fails Currently we belch some output to stderr but fail to abort, resulting in a busy loop. Fixes #15292. Test Plan: * Validate * try running program under environment without timerfd capabilities; ensure we don't busy-loop Reviewers: simonmar, erikd Reviewed By: simonmar Subscribers: rwbarton, thomie, carter GHC Trac Issues: #15929 Differential Revision: https://phabricator.haskell.org/D4875 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15292#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15292: ghc_ticker loops if permission denied on timerfd ------------------------------------+-------------------------------------- Reporter: jon.fairbairn@… | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.2.2 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86_64 (amd64) Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4875 Wiki Page: | ------------------------------------+-------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15292#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC