For that to occur would imply the X25 stuff generated a file handle with a
wrong usage count. Are you using threads in this application ?
> My bug occurs with x25 sockets. Unfortunately, I haven't seen any bug
> reports indicating a similar problem with other protocol family sockets.
> Maybe the X problem is one (af_x25 and af_unix share the same poll method
> datagram_poll() ).
I think its more likely x25_something-else freed a descriptor it shouldnt have
and then you got blown up in datagram_poll