Spurious crashes #38

Closed
opened 2022-11-14 23:22:35 +00:00 by heartles · 2 comments
Owner

Periodically the program seems to crash with no warning or error message printed. It seems to happen only during processing of http requests, specifically at the end of the request.

Periodically the program seems to crash with no warning or error message printed. It seems to happen only during processing of http requests, specifically at the end of the request.
heartles added the
bug
label 2022-11-14 23:22:35 +00:00
Author
Owner

I've tracd it down to happening when connections are closed too quickly. Steps that I used to reproduce the issue on my machine:

  • Open up the index page in a web browser
  • Hold down F5 in the browser until it crashes

From running it under strace it appears that it gets sent SIGPIPE during a write syscall.

Looks related to this

I've tracd it down to happening when connections are closed too quickly. Steps that I used to reproduce the issue on my machine: - Open up the index page in a web browser - Hold down F5 in the browser until it crashes From running it under strace it appears that it gets sent SIGPIPE during a write syscall. Looks related to [this](https://github.com/ziglang/zig/issues/5614)
Author
Owner

After switching to using the send() syscall instead of write(), the crashes don't occur anymore. Still need to do some work to clean this fix up.

After switching to using the send() syscall instead of write(), the crashes don't occur anymore. Still need to do some work to clean this fix up.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: heartles/fediglam#38
No description provided.