Print

Print


The python bindings fail while doing some stat on some files. Eventhough the files exist they do not fail on open, the stat fails in segmantation fault. Here is the code I used to test it:

Both client and server are 4.2.1. Just ran this script several times against a server and it will output:

Segmentation fault (core dumped)

```python
#!/usr/bin/env python                                                                                                                                         
from XRootD import client
from XRootD.client.flags import OpenFlags
from XRootD.client.responses import XRootDStatus
import random
import sys

xrootd_server = '169.228.130.107'


def main():
   fileNumber = random.choice(range(1,40))
   filename = 'random' + str(fileNumber) + '.root'
   fileLocation = 'root://' + xrootd_server + ':1094//' + '/data/testdata/' + filename
   print 'File to be opened: ' + fileLocation

   with client.File() as f:
      openOut = f.open(fileLocation, OpenFlags.READ)
      status, response = f.stat()
      f.close()
   sys.exit(0);



if __name__ == "__main__":
        main()

```

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

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