[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

#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