Opened 21 months ago

Last modified 20 months ago

#18337 closed bug

SNDBUF/RCVBUF sockopt can trigger a deadlock with sendmsg/rcvmsg — at Initial Version

Reported by: korli Owned by: axeld
Priority: normal Milestone: R1/beta5
Component: Network & Internet/TCP Version: R1/beta4
Keywords: r1beta4-fixes Cc:
Blocked By: Blocking:
Platform: All

Description

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 workaround 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.

Change History (1)

by korli, 21 months ago

Attachment: haiku_sockopt_repro.c added
Note: See TracTickets for help on using tickets.