Spurious crashes #38
Labels
No labels
backend
beginner-friendly
bug
build
db
endpoint
federation
http
low-priority
tests
waiting for zig 0.11
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: heartles/fediglam#38
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
I've tracd it down to happening when connections are closed too quickly. Steps that I used to reproduce the issue on my machine:
From running it under strace it appears that it gets sent SIGPIPE during a write syscall.
Looks related to this
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.