Print

Print


Hello,
I am testing a xrootd client plugin (xrootd 4.2.2) and have been using it with root v 5.34/34 .
(gcc 4.9.2)
While everything works as expected if i run any root Macro like this :

```
f=new TNetXNGFile("root://xrd-manager:1094://roottest/data/test.root");
    locfile->ls();
delete locfile;
.q
```
Unless I explicitly delete the file :
```
f=new TNetXNGFile("root://xrd-manager:1094://roottest/data/test.root");
    locfile->ls();
.q
```
I run into a segmentation violation in XrdCl::File:IsOpen. 
(After a Close() has been run on my plugin file, but before its destructor is called)
>#4  signal handler called
#5  0x00007f235290f5dc in XrdCl::File::IsOpen (this=0xf9faa0) at /tmp/xrootd-4.2.2/XrdClFile.cc:389
#6  0x00007f2352e1089e in TNetXNGFile::~TNetXNGFile() () from /lustre/nyx/rz/jknedre/root/5.34.34/lib/root/libNetxNG.so
#7  0x00007f2352e10be9 in TNetXNGFile::~TNetXNGFile() () from /lustre/nyx/rz/jknedre/root/5.34.34/lib/root/libNetxNG.so
#8  0x00007f2358e567e5 in TList::Delete(char const*) () from /lustre/nyx/rz/jknedle/root/5.34.34/lib/root/libCore.so
#9  0x00007f2358de03aa in TROOT::~TROOT (this=0x7f2359596400 <ROOT::GetROOT()::roohrg=<optimized out>) at /tmp/root/core/base/src/TROOT.cxx:506
#10 0x00007f235811ceaf in __cxa_finalize (d=0x7f2359592c80) at cxa_finalize.c:56
#11 0x00007f2358dcbf13 in __do_global_dtors_aux () from /lustre/nyx/rz/jknedlik/sot/5.34.34/lib/root/libCore.so
#12 0x00007fff1b797860 in ?? ()
#13 0x00007f23595dcfca in _dl_fini () at dl-fini.c:252

Am I missing something important?

Regards,
JK

---
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/338

########################################################################
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