[ghc5] (internal?) Bug in Socket.listen

Volker Stolz stolz at I2.Informatik.RWTH-Aachen.DE
Mon Apr 30 10:57:38 EDT 2001


Disclaimer: I noticed that Socket.lhs didn't change from 4.08.2.

However, while Socket.listen works on 4.08.2, it *blocks* with ghc5.
The listening socket isn't even visible by netstat -an!
A Linux-strace looks like this:

socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 4
fcntl(4, F_GETFL)                       = 0x2 (flags O_RDWR)
fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
--- SIGVTALRM (Virtual timer expired) ---
sigreturn()                             = ? (mask now [])
[SIGVTALRM ad libitum, nothing else happens]

Does somebody have any thoughts about what's happening here?
-- 
Abstrakte Syntaxträume.
Volker Stolz * stolz at i2.informatik.rwth-aachen.de * PGP + S/MIME




More information about the Glasgow-haskell-bugs mailing list