Skip to content

Conversation

@osschar
Copy link
Contributor

@osschar osschar commented Mar 17, 2025

Implement the equivalent of strtok_r with reproducible beahavior across architectures. Previous implementation relied on undocumented behavior of the Linux implementation and was causing SEGVs on mac-OS.

This addresses #2450.

This PR also includes a prototype implementation of XrdPfcTests by @bbockelm and extends it to cover more use-cases, thus superseding the now closed #2451.

bbockelm and others added 2 commits March 15, 2025 18:03
Implement the equivalent of strtok_r with reproducible beahavior across
architectures. Previous implementation relied on undocumented behavior of the
Linux implementation and was causing SEGVs on mac-OS.

Extend initial implementation of XrdPfcTests by Brian Bockelman to cover more
use-cases.
Copy link
Member

@amadio amadio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I trust that the added test ensures that things work of course!

@amadio amadio linked an issue Mar 17, 2025 that may be closed by this pull request
@amadio amadio requested a review from abh3 March 17, 2025 19:48
Copy link
Member

@abh3 abh3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a lot of changes to just get rid of strtok_r() so I must not be seeing the whole picture here. Anyway, I didn't see anything glaring but given the changes I would certainly fully test this out.

@amadio amadio merged commit 5e8d9bd into xrootd:master Mar 18, 2025
11 checks passed
@osschar
Copy link
Contributor Author

osschar commented Mar 18, 2025

Thank you @amadio! @abh3, the majority of the PR is the introduction of a new testing unit for PFC. We should now extend this with real-life cache tests, like it's done for XrdCl :)

@osschar
Copy link
Contributor Author

osschar commented Mar 18, 2025

I'll run this (master) on a production cache at UCSD, building now.

@amadio
Copy link
Member

amadio commented Mar 18, 2025

Please try to play with number of streams per channel. I hope that the performance fix in the client can be seen in XCache (see my CHEP24 presentation for details).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[XrdPfc] segfault in new XrdPfc code

4 participants