Found the interrupt, virtualTimerExpired. And in the aborted poll call, the timeout (var to in millisec) is 4294967295. Hoping someone be familiar with ghc runtime could help here.
Hi Cdornan, I think this might be a problem related to "the environment", by which I mean the network, ldap server, whatsoever. Here at my place, same code, I failed on some certain ldap servers, not the others. But fine on all when using ghci or runhaskell. And see the above, I do find a certain place that leads to the problem. And the same library used by ldap-utils or other language bindings is just working fine.