Re: [Haskell-cafe] Iteratee, ghc 6.12/7.0 strange behaviour - epollControl: permission denied (Operation not permitted)

2011-03-31 Thread John Lato


 Message: 15
 Date: Mon, 28 Mar 2011 21:31:39 +0400
 From: Michael A Baikov pa...@bk.ru
 Subject: [Haskell-cafe] Iteratee, ghc 6.12/7.0 strange behaviour -
epollControl: permission denied (Operation not permitted)
 To: haskell-cafe@haskell.org
 Message-ID: e1q4ghz-00077e-00.pacak-bk...@f146.mail.ru
 Content-Type: text/plain; charset=koi8-r



 I am still playing with lastest iteratee and i think i found something
 strange.


 let's suppose we have a file test.hs like this:

 import Data.Iteratee
 import Data.Iteratee.IO
 import Data.Iteratee.Char

 main = fileDriver printLines /etc/passwd

 It works fine when executed via runhaskell / ghci in ghc 6.12. Compiled
 version in ghc 7
 also works, but when i am trying to execute it via runhaskell / ghci i am
 getting this error:

 iter.hs: epollControl: permission denied (Operation not permitted)

 Any ideas?


Apologies, I won't have time to look at this for a few days.  However, could
you try a test using the functions from Data.Iteratee.IO.Posix directly?
 That would help narrow down the issue.  I suspect it's either a bug in
ghc's IO, or the semantics of some IO functions changed without my noticing.

John L.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Iteratee, ghc 6.12/7.0 strange behaviour -epollControl: permission denied (Operation not permitted)

2011-03-29 Thread Michael A Baikov

I tried with both 7.0.2 and 7.0.3

-Original Message-

 On Mon, Mar 28, 2011 at 7:31 PM, Michael A Baikov pa...@bk.ru wrote:
 
 
  I am still playing with lastest iteratee and i think i found something 
  strange.
 
 
  let's suppose we have a file test.hs like this:
 
  import Data.Iteratee
  import Data.Iteratee.IO
  import Data.Iteratee.Char
 
  main = fileDriver printLines /etc/passwd
 
  It works fine when executed via runhaskell / ghci in ghc 6.12. Compiled 
  version in ghc 7
  also works, but when i am trying to execute it via runhaskell / ghci i am 
  getting this error:
 
  iter.hs: epollControl: permission denied (Operation not permitted)
 
  Any ideas?
 
 Make sure you have at least GHC 7.0.2. There were some I/O manager
 bugs in 7.0.1.
 
 Johan
 

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Iteratee, ghc 6.12/7.0 strange behaviour -epollControl: permission denied (Operation not permitted)

2011-03-29 Thread Johan Tibell
Could you please file a bug at

http://hackage.haskell.org/trac/ghc/

Give an as small reproducible test case as possible and as much
information about your system as possible.

Thanks!

Johan

2011/3/29 Michael A Baikov pa...@bk.ru:

 I tried with both 7.0.2 and 7.0.3

 -Original Message-

 On Mon, Mar 28, 2011 at 7:31 PM, Michael A Baikov pa...@bk.ru wrote:
 
 
  I am still playing with lastest iteratee and i think i found something 
  strange.
 
 
  let's suppose we have a file test.hs like this:
 
  import Data.Iteratee
  import Data.Iteratee.IO
  import Data.Iteratee.Char
 
  main = fileDriver printLines /etc/passwd
 
  It works fine when executed via runhaskell / ghci in ghc 6.12. Compiled 
  version in ghc 7
  also works, but when i am trying to execute it via runhaskell / ghci i am 
  getting this error:
 
  iter.hs: epollControl: permission denied (Operation not permitted)
 
  Any ideas?

 Make sure you have at least GHC 7.0.2. There were some I/O manager
 bugs in 7.0.1.

 Johan



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Iteratee, ghc 6.12/7.0 strange behaviour - epollControl: permission denied (Operation not permitted)

2011-03-28 Thread Michael A Baikov


I am still playing with lastest iteratee and i think i found something strange.


let's suppose we have a file test.hs like this:

import Data.Iteratee
import Data.Iteratee.IO
import Data.Iteratee.Char

main = fileDriver printLines /etc/passwd

It works fine when executed via runhaskell / ghci in ghc 6.12. Compiled version 
in ghc 7
also works, but when i am trying to execute it via runhaskell / ghci i am 
getting this error:

iter.hs: epollControl: permission denied (Operation not permitted)

Any ideas?

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Iteratee, ghc 6.12/7.0 strange behaviour - epollControl: permission denied (Operation not permitted)

2011-03-28 Thread Johan Tibell
On Mon, Mar 28, 2011 at 7:31 PM, Michael A Baikov pa...@bk.ru wrote:


 I am still playing with lastest iteratee and i think i found something 
 strange.


 let's suppose we have a file test.hs like this:

 import Data.Iteratee
 import Data.Iteratee.IO
 import Data.Iteratee.Char

 main = fileDriver printLines /etc/passwd

 It works fine when executed via runhaskell / ghci in ghc 6.12. Compiled 
 version in ghc 7
 also works, but when i am trying to execute it via runhaskell / ghci i am 
 getting this error:

 iter.hs: epollControl: permission denied (Operation not permitted)

 Any ideas?

Make sure you have at least GHC 7.0.2. There were some I/O manager
bugs in 7.0.1.

Johan

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe