use ktrace

Siegfried Levin <[email protected]> wrote:

> Hi,
> 
> I have a application run by a normal user communicating with the server with 
> UDP. It crashes very occasionally, like once per week, due to EACCES when 
> sending a UDP packet. According to the manpage 
> (https://man.openbsd.org/OpenBSD-6.9/sendmsg.2#EACCES), the reason might be 
> either being blocked by PF or sending to a broadcast address. I can confirm 
> the packet was not sent to a broadcast address. However, I cannot figure out 
> what rule could block the connection occasionally either. The application can 
> be brought back online without changing any configuration. Does anyone know 
> what might fix this? I can also rewrite the code to make it ignore the error 
> and keep trying but that might not be a proper solution. Running it as root 
> might not be a good idea, too.
> 
> It happens since OpenBSD 6.8. Now I’m running it on 6.9. The application is 
> written in Rust.
> 
> Siegfried
> [email protected]
> 
> 
> 
> 

Reply via email to