[GHC] #647: Socket bug on Mac OS X, with patch

GHC trac at galois.com
Tue Jan 17 05:14:23 EST 2006


#647: Socket bug on Mac OS X, with patch
----------------------------------+-----------------------------------------
  Reporter:  gwright at antiope.com  |          Owner:         
      Type:  bug                  |         Status:  new    
  Priority:  normal               |      Milestone:         
 Component:  libraries/network    |        Version:  6.4.1  
  Severity:  normal               |     Resolution:         
  Keywords:  "OS X" Sockets       |             Os:  MacOS X
Difficulty:  Easy (1 hr)          |   Architecture:  powerpc
----------------------------------+-----------------------------------------
Comment (by vs at foldr.org):

 Looking at sockaddr, sa_len looks like to be the culprit since it isn't
 initialized and thus a likely candidate to contain bogus values. The other
 members of the structure should all get initialized explicitly.
 Could you try initializing this field with the proper length?

 Other applications explicitly test the presence of sa_len, but I doubt
 that GHC runs no OSes that do not have this member anyway.

 Volker

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


More information about the Glasgow-haskell-bugs mailing list