@abh3 I checked the value of that variable, but it is very confusing because it is strange. The buf value is NULL in the previous line, and it is very strange that the value is 0x0. I think it's because of the lack of GDB experience.
(gdb) f 5
#5 0x0000003407a093f1 in XrdFfsWcache_destroy (fd=<value optimized out>) at /usr/src/debug/xrootd/xrootd/src/XrdFfs/XrdFfsWcache.cc:139
139 free(XrdFfsWcacheFbufs[fd].buf);
(gdb) p XrdFfsWcacheFbufs[0]
$1 = {offset = 0, len = 0, buf = 0x0, mlock = 0x0}
(gdb) list
134 fd -= XrdFfsPosix_baseFD;
135
136 XrdFfsWcacheFbufs[fd].offset = 0;
137 XrdFfsWcacheFbufs[fd].len = 0;
138 if (XrdFfsWcacheFbufs[fd].buf != NULL)
139 free(XrdFfsWcacheFbufs[fd].buf);
140 XrdFfsWcacheFbufs[fd].buf = NULL;
141 if (XrdFfsWcacheFbufs[fd].mlock != NULL)
142 {
143 pthread_mutex_destroy(XrdFfsWcacheFbufs[fd].mlock);
(gdb) f 6
#6 0x0000003407a094ca in XrdFfsWcache_create (fd=0) at /usr/src/debug/xrootd/xrootd/src/XrdFfs/XrdFfsWcache.cc:114
114 XrdFfsWcache_destroy(fd);
(gdb) p XrdFfsWcacheFbufs[fd]
$4 = {offset = 0, len = 0, buf = 0x0, mlock = 0x0}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
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