Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize the XrdAccEntityInfo structure. #1179

Merged
merged 1 commit into from
Apr 23, 2020

Conversation

bbockelm
Copy link
Contributor

When one vorg is provided and no groups are provided, the grup data memeber may be uninitialized on use. This has resulted in periodic segfaults on the SciTokens ACC provider; I'm guessing that grup quite often has an initial value of nullptr, even when uninitialized.

I suspect this hasn't been observed for the VOMS provider because all VOMS server implementations create at least one group; hence this case is never hit.

@bbockelm
Copy link
Contributor Author

Once we resolve this, @simonmichal please consider for backport. This is an attempt to fix a periodic segfault observed in 4.11.3.

@simonmichal
Copy link
Contributor

@bbockelm : thanks a lot for the PR, could you please refactor the commit so the initialisation is done in the default constructors (XrdAccEntityInfo() and EntityAttr()), otherwise it won't build on SLC (GCC 4.4.7). I do know it's a pain! By any chance do you know if it's possible to use devtoolset with EPEL build?

When one vorg is provided and no groups are provided, the `grup`
data memeber may be uninitialized on use.  This has resulted in
periodic segfaults on the SciTokens ACC provider; I'm guessing that
`grup` quite often has an initial value of `nullptr`, even when
uninitialized.

I suspect this hasn't been observed for the VOMS provider because
all VOMS server implementations create at least one group; hence
this case is never hit.
@bbockelm
Copy link
Contributor Author

@simonmichal - update pushed. Back down to C++03 :(

For devtoolset: I found some references online about doing this in EPEL7. It's not clear whether that's an option for EPEL6. Here's what we do in OSG:

https://github.com/opensciencegrid/xrootd-lcmaps/blob/master/rpm/xrootd-lcmaps.spec

@bbockelm
Copy link
Contributor Author

@simonmichal - build failures look unrelated?

@simonmichal
Copy link
Contributor

@bbockelm : yes that was me (the build is fixed now), I gave it try and it compiles like a charm now, it's ready to be merged.

@simonmichal simonmichal merged commit 1b9c049 into xrootd:master Apr 23, 2020
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.

None yet

2 participants