Help: error 514 in select()
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Misha,
Quoted 4 lines · Misha Sushchik
1) I do not know when this problem first appeared (or, re-appeared, as I can see from searching the web). If we knew the latest version where this problem was not, we would consider just going back to that version, instead of waiting for the bug to be fixed.
It would be fairly easy to find out once you have (2) solved.
Quoted 4 lines
2) I do not have a sensible way of reproducing this error in a short time. It may take a few days of running our application in order for it to fail in this way. This is killing us (timewise) in testing possible solutions.
I would start with the following:
1. Do you know all signals sent to the process in question by itself or by other processes? Can you log them?
2. Have you tried the patch from my last mail?
This may help to understand how the problem can be reproduced. My current assumption is, your process calls select(2), a signal arrives, ERESTARTNOHAND is not replaced with EINTR and the former is leaked to the user space; you have to find out where the return value should be replaced, and make it happen. If there are many ERESTARTNOHANDs during the normal operation, printing the stack just before returning to user space could help further.
Quoted 1 line
The latest kernel we had this reproduced with was 2.6.17.
Good to know! I assume you haven't tried 2.6.17.10, right? Although, after a quick skimming through the changes since 2.6.17, I haven't seen anything that could be relevant.
With kind regards,
Baurzhan.