Print

Print


@wyang007 Hello, I found that the glibc and glibc debuginfo version was different. Here is gdb message after installing.
```bash
(gdb) where
#0  XrdFfsWcache_destroy (fd=<value optimized out>) at /usr/src/debug/xrootd/xrootd/src/XrdFfs/XrdFfsWcache.cc:138
#1  0x0000003de3c094ca in XrdFfsWcache_create (fd=0) at /usr/src/debug/xrootd/xrootd/src/XrdFfs/XrdFfsWcache.cc:114
#2  0x0000000000403ed1 in xrootdfs_create (
    path=0x7fb4a0000b20 "/store/user/jhchoi/Latino/HWWNano/Fall2017_102X_nAODv5_Full2017v6/MCl1loose2017v6__MCCorr2017v6/nanoLatino_TTToSemiLeptonic_PSweights__part34.root", mode=<value optimized out>, fi=0x7fb5c99bede0) at /usr/src/debug/xrootd/xrootd/src/XrdFfs/XrdFfsXrootdfs.cc:444
#3  0x0000003743c08c2f in fuse_fs_create (fs=0x1227a10, 
    path=0x7fb4a0000b20 "/store/user/jhchoi/Latino/HWWNano/Fall2017_102X_nAODv5_Full2017v6/MCl1loose2017v6__MCCorr2017v6/nanoLatino_TTToSemiLeptonic_PSweights__part34.root", mode=33188, fi=0x7fb5c99bede0) at fuse.c:1428
#4  0x0000003743c1090a in fuse_lib_create (req=0x7fb4a0006ee0, parent=46516, name=0x7fb53804b0c8 "nanoLatino_TTToSemiLeptonic_PSweights__part34.root", 
    mode=33188, fi=0x7fb5c99bede0) at fuse.c:2407
#5  0x0000003743c146f3 in do_create (req=<value optimized out>, nodeid=<value optimized out>, inarg=<value optimized out>) at fuse_lowlevel.c:705
#6  0x0000003743c120ef in fuse_do_work (data=0x7fb538071c40) at fuse_loop_mt.c:107
#7  0x0000003742007aa1 in start_thread (arg=0x7fb5c99bf700) at pthread_create.c:301
#8  0x0000003741ce8c4d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
```
I think that the **xrootdfs_create** function on **XrdFfsXrootdfs** has a bug due to a lack of the return value checking.

On https://github.com/xrootd/xrootd/blob/master/src/XrdFfs/XrdFfsXrootdfs.cc#L442,
the **res** did not be checked after calling of **xrootdfs_do_create**. If xrootdfs_do_create is failed, fd can be 0.





-- 
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1116#issuecomment-579540171

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