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

[XrdCl] DeepLocate: AssignLBHandler preforms an operation on a dangling pointer #324

Closed
simonmichal opened this issue Jan 8, 2016 · 0 comments
Assignees

Comments

@simonmichal
Copy link
Contributor

While handling a deep locate response the following scenario may occur:

  • [XrdClFileSystem.cc : 154] in the HandleResponse method the FileSystem object gets allocated on the stack and calls asynchronous Locate
  • [XrdClFileSystem.cc : 328] in the Locate method the Send method gets called in turn
  • [XrdClFileSystem.cc : 1188] in the Send method a heap allocated AssignLBHandler is created and holds a pointer to the FileSystem object (stack allocated)
  • [XrdClFileSystem.cc : 295] in the async callback the AssignLBHandler invokes a method on the FileSystem object that most likely exited the scope
@simonmichal simonmichal changed the title [XrdCl] DeepLocate: AssignLBHandler preforms an operation a dangling pointer [XrdCl] DeepLocate: AssignLBHandler preforms an operation on a dangling pointer Jan 8, 2016
@simonmichal simonmichal self-assigned this Jan 8, 2016
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

No branches or pull requests

1 participant