[GHC] #5060: iteratee: epollControl: permission denied (Operation not permitted)

GHC cvs-ghc at haskell.org
Thu Mar 31 22:08:42 CEST 2011


#5060: iteratee: epollControl: permission denied (Operation not permitted)
-------------------------------+--------------------------------------------
    Reporter:  pacak           |       Owner:                             
        Type:  bug             |      Status:  new                        
    Priority:  normal          |   Component:  GHCi                       
     Version:  7.0.3           |    Keywords:                             
    Testcase:                  |   Blockedby:                             
          Os:  Linux           |    Blocking:                             
Architecture:  x86_64 (amd64)  |     Failure:  Incorrect result at runtime
-------------------------------+--------------------------------------------

Comment(by tibbe):

 Replying to [comment:4 pacak]:
 > strace shows that compiled version uses select
 > {{{
 > open("/etc/passwd", O_RDONLY)           = 3
 > select(4, [3], [], NULL, {134, 217727}) = 1 (in [3], left {134, 217725})
 > }}}
 >
 > while ghci version uses epoll
 >
 > {{{
 > open("/etc/passwd", O_RDONLY) = 7
 > epoll_ctl(3, EPOLL_CTL_ADD, 7, {EPOLLIN, {u32=7,
 u64=12117878556374073351}}) = -1 EPERM (Operation not permitted)
 > }}}

 That's odd. The I/O manager should be using `epoll` on Linux.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5060#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list