Print

Print


I should only comment after I carefully read the code. You indeed put the finalizer with the reference counter in the finalizer of the translation unit and not in the file or filesystem destructor. That should work if the problem was the static deinitialization fiasco.

The situation here is as follows:

1) The XRootD wrapper library is unloaded (`dlclosed`), your reference counter is zero at this point.
2) ROOT calls XRootD code from the unloaded library.

There is nothing random in this order. Your fix may still work if the memory has not been tainted.

---
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/338#issuecomment-229388540

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1