xrootd / xrootd-python

Python bindings for XRootD are now part of the main repository.
https://github.com/xrootd/xrootd
6 stars 8 forks source link

Segfault when giving a file name to dirlist #4

Closed chaen closed 10 years ago

chaen commented 10 years ago

Hi,

I know one should not give a file to dirlist, but it would be great if it could report an error instead of doing a segfault. Here is a snipet that reproduces the problem

from XRootD import client from XRootD.client.flags import DirListFlags

myclient = client.FileSystem('root://castorlhcb.cern.ch')

This works

myclient.dirlist("/castor/cern.ch/grid/lhcb/data/2011/RAW/FULL/LHCb/COLLISION11/88033/", DirListFlags.NONE)

This segfaults

myclient.dirlist("/castor/cern.ch/grid/lhcb/data/2011/RAW/FULL/LHCb/COLLISION11/88033/088033_0000000001.raw", DirListFlags.NONE)

This sefgfaults as well

myclient.dirlist("/castor/cern.ch/grid/lhcb/data/2011/RAW/FULL/LHCb/COLLISION11/88033/088033_0000000001.raw?svcClass=lhcbtape", DirListFlags.NONE)

Thanks, Chris

jlsalmon commented 10 years ago

@chaen, I think this is the same as issue #3 which was reported earlier. Can you check if the fix for that solves your problem?

Cheers, Justin

ljanyst commented 10 years ago

You can get the RPMs from TeamCity at: https://teamcity-dss.cern.ch:8443/viewType.html?buildTypeId=bt80

chaen commented 10 years ago

Hi,

it is indeed fixed, thanks a lot for the very quick reaction! :-)

Chris

ljanyst commented 10 years ago

We will soon build the xrootd-3.3.5 release and will release the python fixes together with it.