Re: testing 6.12.2-pre

2010-04-15 Thread Matthias Kilian
On Wed, Apr 14, 2010 at 08:44:29PM +0200, Matthias Kilian wrote:
> module Main(main) where
> 
> import System.IO
> import System.Process
> 
> main = do
>   hin <- openBinaryFile "/dev/null" ReadMode
>   hp <- runProcess "/bin/ls" ["-l"] Nothing Nothing (Just hin) 
> Nothing Nothing
>   r <- waitForProcess hp
>   print r
> 
> 
> IF I run this on OpenBSD (amd64), I get
> 
> foo: /bin/ls: runProcess: unsupported operation (Operation not supported by 
> device)

I found it. I'll send a patch as soon as I've tested the fix. The
neat thing is that darcs send probably doesn't work without the fix

;-)

Ciao,
Kili
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: testing 6.12.2-pre

2010-04-14 Thread Matthias Kilian
On Fri, Apr 09, 2010 at 05:48:17PM +0400, Serge D. Mechveliani wrote:
> I have tested  ghc-6.12.1.20100330  on Debian Linux, i386-family,
> on the  DoCon test, without profilig.
> It looks all right.

Even if I reported to Ian that everything is fine on OpenBSD, I
just found some strangeness with openBinaryFile and runProcess when
testing darcs-2.4 built with the (still not really released)
ghc-6.12.2. Here's a small test program:


module Main(main) where

import System.IO
import System.Process

main = do
hin <- openBinaryFile "/dev/null" ReadMode
hp <- runProcess "/bin/ls" ["-l"] Nothing Nothing (Just hin) 
Nothing Nothing
r <- waitForProcess hp
print r


IF I run this on OpenBSD (amd64), I get

foo: /bin/ls: runProcess: unsupported operation (Operation not supported by 
device)

Tracing the process shows the following hints (File handle 0x6 is the
one from /dev/null):

 25151 foo  CALL  ioctl(0x6,TIOCGETA,0x7f7e1da0)
 25151 foo  RET   ioctl -1 errno 19 Operation not supported by device
 25151 foo  CALL  fcntl(0x6,0x4,0x4)
 25151 foo  RET   fcntl -1 errno 19 Operation not supported by device


I'm not sure about the ioctl call, but the fcntl tries to set the
handle to nonblocking mode. There's already some comment about this
(on FreeBSD) in the code, but I'm unsuere what exactly to do about
it.

I'd really like to see the result of this program on FreeBSD and/or
NetBSD, so we know wether it's specific to OpenBSD or wether it
happens on all BSD-like systems.

Ciao,
Kili

ps: GHC guys, please don't let this stop you from going on with the
ghc-6.12.2 release process. Problems like this can be easily fixed
by package maintainers.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: testing 6.12.2-pre

2010-04-09 Thread Ian Lynagh
On Fri, Apr 09, 2010 at 05:48:17PM +0400, Serge D. Mechveliani wrote:
> 
> I have tested  ghc-6.12.1.20100330  on Debian Linux, i386-family,
> on the  DoCon test, without profilig.
> It looks all right.

Thanks for the feedback!


Thanks
Ian

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


testing 6.12.2-pre

2010-04-09 Thread Serge D. Mechveliani
Dear GHC developers,

I have tested  ghc-6.12.1.20100330  on Debian Linux, i386-family,
on the  DoCon test, without profilig.
It looks all right.

-
Serge Mechveliani
mech...@botik.ru
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users