Re: [GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-05-15 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
--+-
Reporter:  tphyahoo   |Owner:  bos 
Type:  bug|   Status:  closed  
Priority:  normal |Milestone:  Not GHC 
   Component:  libraries/network  |  Version:  6.10.1  
Severity:  normal |   Resolution:  invalid 
Keywords:  ipv6   |   Difficulty:  Unknown 
Testcase: |   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |  
--+-
Comment (by tibbe):

 Correction, moved to http://trac.haskell.org/network/ticket/12

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-05-15 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
--+-
Reporter:  tphyahoo   |Owner:  bos 
Type:  bug|   Status:  closed  
Priority:  normal |Milestone:  Not GHC 
   Component:  libraries/network  |  Version:  6.10.1  
Severity:  normal |   Resolution:  invalid 
Keywords:  ipv6   |   Difficulty:  Unknown 
Testcase: |   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |  
--+-
Changes (by tibbe):

  * status:  assigned => closed
  * resolution:  => invalid

Comment:

 Moved to http://trac.haskell.org/network/ticket/11

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-02-02 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
--+-
Reporter:  tphyahoo   |Owner:  bos 
Type:  bug|   Status:  assigned
Priority:  normal |Milestone:  Not GHC 
   Component:  libraries/network  |  Version:  6.10.1  
Severity:  normal |   Resolution:  
Keywords:  ipv6   |   Difficulty:  Unknown 
Testcase: |   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |  
--+-
Changes (by igloo):

  * milestone:  => Not GHC

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-01-20 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
--+-
Reporter:  tphyahoo   |Owner:  bos 
Type:  bug|   Status:  assigned
Priority:  normal |Milestone:  
   Component:  libraries/network  |  Version:  6.10.1  
Severity:  normal |   Resolution:  
Keywords:  ipv6   |   Difficulty:  Unknown 
Testcase: |   Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |  
--+-
Changes (by igloo):

  * difficulty:  => Unknown

Comment:

 FWIW, I think `liftM fst` is clearer than `return . fst =<< `.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-01-19 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
---+
 Reporter:  tphyahoo   |  Owner:  bos 
 Type:  bug| Status:  assigned
 Priority:  normal |  Milestone:  
Component:  libraries/network  |Version:  6.10.1  
 Severity:  normal | Resolution:  
 Keywords:  ipv6   |   Testcase:  
   Os:  Unknown/Multiple   |   Architecture:  Unknown/Multiple
---+
Comment (by tphyahoo):

 Also, for what it's worth, a quick and dirty fix which at least keeps
 happs apps from dying is simply to turn off ipv6 support like so:

 {{{
 diff -rN old-network-2.2.0.1/Network.hs new-network-2.2.0.1/Network.hs
 22c22
 < #define IPV6_SOCKET_SUPPORT 1
 ---
 > # /* define IPV6_SOCKET_SUPPORT 1 */
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-01-19 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
---+
 Reporter:  tphyahoo   |  Owner:  bos 
 Type:  bug| Status:  assigned
 Priority:  normal |  Milestone:  
Component:  libraries/network  |Version:  6.10.1  
 Severity:  normal | Resolution:  
 Keywords:  ipv6   |   Testcase:  
   Os:  Unknown/Multiple   |   Architecture:  Unknown/Multiple
---+
Comment (by tphyahoo):

 Yes, not a very good patch I agree. I had an uncaught exception error a
 couple of days after I implemented.

 Anyway, here's a tweaked patch, which at least fixes that.


 {{{
 <  (Just peer, _) <- getNameInfo [] True False addr
 ---
 >  (Just peer) <-
 > catchIO ( return . fst =<< getNameInfo [] True False addr )
 > (\e -> case addr of
 >  SockAddrInet port haddr -> return . Just =<<
 inet_ntoa haddr
 >  SockAddrInet6 port flow haddr6 scope -> return .
 Just . show $ haddr6
 >  SockAddrUnix x -> return . Just $ x
 > )
 >
 }}}

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-01-08 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
---+
 Reporter:  tphyahoo   |  Owner:  bos 
 Type:  bug| Status:  assigned
 Priority:  normal |  Milestone:  
Component:  libraries/network  |Version:  6.10.1  
 Severity:  normal | Resolution:  
 Keywords:  ipv6   |   Testcase:  
   Os:  Unknown/Multiple   |   Architecture:  Unknown/Multiple
---+
Changes (by bos):

  * status:  new => assigned
  * owner:  => bos

Comment:

 The bug seems legitimate. Thanks for reporting it. The patch is a bit
 crufty, so I'll work something cleaner up.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #2927: Bug in network library, uncaught exception when dealing with ipv6 sockets

2009-01-08 Thread GHC
#2927: Bug in network library, uncaught exception when dealing with ipv6 sockets
-+--
Reporter:  tphyahoo  |  Owner:   
Type:  bug   | Status:  new  
Priority:  normal|  Component:  libraries/network
 Version:  6.10.1|   Severity:  normal   
Keywords:  ipv6  |   Testcase:   
  Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple 
-+--
 There is an uncaught exception in the network library which is causing
 my HAppS demo website

 http://happstutorial.com

 to crash every couple of days. This has affected other people using
 HAppS as well, as described on postings to the HAppS users list.

 The bug, and workarounds, is described at

 http://code.google.com/p/happs/issues/detail?id=40

 Initially reported patch at

 http://www.haskell.org/pipermail/libraries/2009-January/011103.html

 Patch is attached.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs