Skip to content

SelfLoader: try harder to not confuse PERLIO=stdio#24409

Open
tonycoz wants to merge 1 commit into
Perl:bleadfrom
tonycoz:selfloader-mixed-io-again
Open

SelfLoader: try harder to not confuse PERLIO=stdio#24409
tonycoz wants to merge 1 commit into
Perl:bleadfrom
tonycoz:selfloader-mixed-io-again

Conversation

@tonycoz
Copy link
Copy Markdown
Contributor

@tonycoz tonycoz commented May 6, 2026

The previous change was failing on some FreeBSD and Linux.

Fixes #24407

The two smokers that started failing are

freebsd 14.3-RELEASE-p8
FAIL in blead https://perl.develop-help.com/db/5530532
SUCCESS in branch https://perl.develop-help.com/db/5530604

linux 6.12.74+deb13+1-amd64 [Debian GNU/Linux 13.4 (trixie)]
FAIL in blead https://perl.develop-help.com/db/5530533
SUCCESS in branch https://perl.develop-help.com/db/5530606

The only other failures post 7a6d188 in blead or in the selfloader-mixed-io-again branch are:

https://perl.develop-help.com/db/5530547 - tib testing skiptest

https://perl.develop-help.com/db/5530603 - this smoker seems to be a bit flaky or here for a more comprehensive list


  • This set of changes does not require a perldelta entry.

Edit: update perldev links now /similar is live, and perldev is down to discourage the bots

@tonycoz
Copy link
Copy Markdown
Contributor Author

tonycoz commented May 7, 2026

The MSVC workflow failure seems likely to be caused by actions/runner-images#14004

@ap ap added the defer-next-dev This PR should not be merged yet, but await the next development cycle label May 11, 2026
@ap
Copy link
Copy Markdown
Contributor

ap commented May 11, 2026

The revert has been merged so this PR will need to include the original fix when it is applied, obviously.

The previous change was failing on some FreeBSD and Linux, possibly
because it assumed that a stdio level seek would result in an fd level
seek, but a libc could optimize to just reposition within the buffer
if the seeked to position has already been read in.

So split this into two, first test that the handle is seekable without
a net change in position, then only reposition the duplicated handle,
which *should* have no buffered content.
@tonycoz tonycoz force-pushed the selfloader-mixed-io-again branch from 0962d7a to 2294b1a Compare May 11, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

defer-next-dev This PR should not be merged yet, but await the next development cycle

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7a6d188450d generates new test failures on FreeBSD and Linux

2 participants