#18337 closed bug (fixed)
SNDBUF/RCVBUF sockopt can trigger a deadlock with sendmsg/rcvmsg
Reported by: | korli | Owned by: | korli |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta5 |
Component: | Network & Internet/TCP | Version: | R1/beta4 |
Keywords: | r1beta4-fixes | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
This bug was met on vcmi 1.1.1, introduced in the following commit: https://github.com/vcmi/vcmi/commit/ac66fc7f42f50ad961cf8a0656be0d9b5415180d#diff-50f4f7bc8366ce0c1d4a06d1d63f15799e401333046e163942a600119a44e621
This is now worked around with a patch, which disables the setsockopt calls: https://github.com/haikuports/haikuports/blob/9649011e5f901f75de43d1f34ae941c7a5646693/games-strategy/vcmi/patches/vcmi-1.1.1.patchset#L103
I have a smaller reproducer, but it has to be run in a loop, as it doesn't always trigger.
Attachments (1)
Change History (6)
by , 20 months ago
Attachment: | haiku_sockopt_repro.c added |
---|
comment:1 by , 19 months ago
Description: | modified (diff) |
---|
comment:2 by , 19 months ago
comment:3 by , 19 months ago
Milestone: | Unscheduled → R1/beta5 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
It's a bit related. Proposed change: https://review.haiku-os.org/c/haiku/+/6359
comment:5 by , 19 months ago
Keywords: | r1beta4-fixes added |
---|
Note:
See TracTickets
for help on using tickets.
Without even having tried the testcase and looked at the stack trace, if this goes through TCP, is there some chance ambroff's proposed change in #18203 could be related?