Print

Print


Program terminated with signal 11, Segmentation fault.
#0  0x00000032f9c9d258 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib64/libstdc++.so.6
#0  0x00000032f9c9d258 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) () from /usr/lib64/libstdc++.so.6
#1  0x000000330106bb94 in XrdCl::FileStateHandler::OnOpen(XrdCl::XRootDStatus const*, XrdCl::OpenInfo const*, std::vector<XrdCl::HostInfo, std::allocator<XrdCl::HostInfo> > const*) () from /usr/lib64/libXrdCl.so.2
#2  0x000000330106c641 in ?? () from /usr/lib64/libXrdCl.so.2
#3  0x0000003301059891 in XrdCl::XRootDMsgHandler::HandleResponse() () from /usr/lib64/libXrdCl.so.2
#4  0x000000330105aeb2 in XrdCl::XRootDMsgHandler::Process(XrdCl::Message*) () from /usr/lib64/libXrdCl.so.2
#5  0x0000003301044bde in XrdCl::Stream::HandleIncMsgJob::Run(void*) () from /usr/lib64/libXrdCl.so.2
#6  0x00000033010889cd in XrdCl::JobManager::RunJobs() () from /usr/lib64/libXrdCl.so.2
#7  0x0000003301088a49 in ?? () from /usr/lib64/libXrdCl.so.2
#8  0x00000032f8407a51 in start_thread () from /lib64/libpthread.so.0
#9  0x00000032f80e89ad in clone () from /lib64/libc.so.6


This can be reproduced using the following scenario:
- xrdcp localfile root://localhost//tmp/remotefile
- on the server side put a breakpoint in XrdOfsFile::write (1005)
- this will ensure that the file will be reopened (FileStateHandler::ReOpenFileAtServer)
- this in turn creates an OpenHandler object (FileStateHandler:1452) that is not synchronized (the userHandler is null)
- if the OpenHandler and the write operation timeout at the same time (this can be enforced using set in gdb) the FileStateHandler object is destroyed but concurrently the OpenHandler object is trying to call a method (XrdCl::FileStateHandler::OnOpen) on this object

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

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