Skip to content

gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly#154244

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:socket-cmsg-trunc-bsd
Jul 20, 2026
Merged

gh-154240: Skip cmsg truncation socket tests on OpenBSD and DragonFly#154244
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:socket-cmsg-trunc-bsd

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 20, 2026

Copy link
Copy Markdown
Member

Skip the recvmsg() control-message truncation tests on OpenBSD and DragonFly, whose kernels fail recvmsg() with EMSGSIZE ("Message too long") when the ancillary-data buffer is too small for a cmsghdr, instead of returning the data with MSG_CTRUNC set. NetBSD, FreeBSD and Linux are unaffected.

This revives gh-64868 (bpo-20669), which reported the same failure on OpenBSD in 2014 and was closed in 2017 only for lack of an OpenBSD buildbot and reviewer. Verified on OpenBSD 7 and DragonFly 6 (skipped) and NetBSD 10 / Linux (still run).

🤖 Generated with Claude Code

…gonFly

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka merged commit eca3b26 into python:main Jul 20, 2026
48 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.15 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker eca3b26067a48bf18e59648695ee1a7bc36534fc 3.15

@miss-islington-app

Copy link
Copy Markdown

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker eca3b26067a48bf18e59648695ee1a7bc36534fc 3.14

@bedevere-app

bedevere-app Bot commented Jul 20, 2026

Copy link
Copy Markdown

GH-154270 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jul 20, 2026
@serhiy-storchaka
serhiy-storchaka deleted the socket-cmsg-trunc-bsd branch July 20, 2026 15:24
serhiy-storchaka added a commit that referenced this pull request Jul 20, 2026
…agonFly (GH-154244) (GH-154270)

(cherry picked from commit eca3b26)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@serhiy-storchaka serhiy-storchaka added needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes and removed needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Jul 20, 2026
@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Jul 20, 2026

Copy link
Copy Markdown

GH-154285 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jul 20, 2026
@serhiy-storchaka serhiy-storchaka removed their assignment Jul 20, 2026
@bedevere-app

bedevere-app Bot commented Jul 20, 2026

Copy link
Copy Markdown

GH-154286 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Jul 20, 2026
serhiy-storchaka added a commit that referenced this pull request Jul 20, 2026
…agonFly (GH-154244) (GH-154285)

(cherry picked from commit eca3b26)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
serhiy-storchaka added a commit that referenced this pull request Jul 20, 2026
…agonFly (GH-154244) (GH-154286)

(cherry picked from commit eca3b26)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant