Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeated crash in XrdLink::Reset #532

Closed
apeters1971 opened this issue Jun 26, 2017 · 6 comments
Closed

Repeated crash in XrdLink::Reset #532

apeters1971 opened this issue Jun 26, 2017 · 6 comments

Comments

@apeters1971
Copy link
Contributor

We have seen a repeated crash in freeing an Etext variable in XrdLink::Reset.

Xrootd Version is xrootd-server-4.6.1-1

Thread 503 (Thread 0x7f92be6fe700 (LWP 31214)):

#########################################################################
#5
#6 0x00007f94ad902ca3 in free () from /usr/lib64/libjemalloc.so.1
#7 0x00000031b0e62fff in XrdLink::Reset (this=0x7f929215b258) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdLink.cc:159
#8 0x00000031b0e6440d in XrdLink::Alloc (peer=..., opts=0) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdLink.cc:229
#9 0x00000031b0e62cd8 in XrdInet::Accept (this=0x7f94ad043080, opts=0, timeout=-1, theSem=0x7ffe448bf9a0) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdInet.cc:103
#10 0x000000000040c775 in XrdMain::DoIt (this=0x7ffe448bfa70) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdMain.cc:97
#11 0x00000031b0e68f9b in XrdScheduler::Run (this=0x6103f8) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdScheduler.cc:357
#12 0x00000031b0e690e9 in XrdStartWorking (carg=) at /usr/src/debug/xrootd/xrootd/src/Xrd/XrdScheduler.cc:87
#13 0x00000031b0e29c4f in XrdSysThread_Xeq (myargs=0x7f93a0bd6ca0) at /usr/src/debug/xrootd/xrootd/src/XrdSys/XrdSysPthread.cc:86
#14 0x00000031aee07aa1 in start_thread () from /lib64/libpthread.so.0
#15 0x00000031aeae8bcd in clone () from /lib64/libc.so.6

@abh3
Copy link
Member

abh3 commented Jun 26, 2017

I'm looking at the code and don't see how that is possible unless accept is returning a duplicate FD, which should be impossible unless shutdown() works differently on your OS. Can I log in somewhere to look at a core file?

@apeters1971
Copy link
Contributor Author

We just had again the same crash. Unfortunately we cannot get a core dump. It is always exact the same stack trace, so I would not assume that this is accidental memory corruption. It is an SLC6 machine, in case that helps.

@abh3
Copy link
Member

abh3 commented Jun 28, 2017

We really need the core file. Your site is the only one that has ever experienced this problem. Does the log have any strange messages within a minute of the crash?

@abh3
Copy link
Member

abh3 commented Nov 13, 2017

Is this possibly a duplicate of the Reset() problem just patched?

@herver
Copy link

herver commented Nov 13, 2017

Hi,

I definitely think this is a duplicate of #607.
We witnessed this on the same instance as the one you used to fix the problem

Thanks !

@abh3
Copy link
Member

abh3 commented Nov 13, 2017

Closed as a duplicate.

@abh3 abh3 closed this as completed Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants