Print

Print


This can be reproduced by running (it can be timing related):

sudo eos
console
Segmentation fault

This is the stacktrace, and the problem here is that the chPoller is 0. The "eos console" command forks and the segmentation comes form the parent process while waiting for the child process to do some work. I've tried running also with XRD_RUNFORKHANDLERS enabled, but I get the same result.

[Switching to Thread 0x7f1adc591700 (LWP 12568)]                                                                                                                                                                                                                                  [7/1124]
0x00007f1ae25fdd32 in XrdSys::IOEvents::Poller::CbkXeq (this=this@entry=0x18924d0, cP=cP@entry=0x19a24a0, events=4, eNum=0, eTxt=0x0) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEvents.cc:655
655            retval = cP->chPoller->Modify(cP, eNum, 0, isLocked);
(gdb) bt
#0  0x00007f1ae25fdd32 in XrdSys::IOEvents::Poller::CbkXeq (this=this@entry=0x18924d0, cP=cP@entry=0x19a24a0, events=4, eNum=0, eTxt=0x0) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEvents.cc:655
#1  0x00007f1ae25ff2b9 in XrdSys::IOEvents::PollE::Dispatch (this=this@entry=0x18924d0, cP=0x19a24a0, pollEv=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEventsPollE.icc:270
#2  0x00007f1ae25ff4a1 in XrdSys::IOEvents::PollE::Begin (this=0x18924d0, syncsem=<optimized out>, retcode=<optimized out>, eTxt=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEventsPollE.icc:225
#3  0x00007f1ae25fbced in XrdSys::IOEvents::BootStrap::Start (parg=0x7ffc74a8edc0) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEvents.cc:131
#4  0x00007f1ae25f99c7 in XrdSysThread_Xeq (myargs=0x1890bc0) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysPthread.cc:86
#5  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#6  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6
(gdb) thread appl all bt

Thread 8 (Thread 0x7f1adcd92700 (LWP 12566)):
#0  0x00007f1ae0ec6a0b in do_futex_wait.constprop.1 () from /usr/lib64/libpthread.so.0
#1  0x00007f1ae0ec6a9f in __new_sem_wait_slow.constprop.0 () from /usr/lib64/libpthread.so.0
#2  0x00007f1ae0ec6b3b in sem_wait@@GLIBC_2.2.5 () from /usr/lib64/libpthread.so.0
#3  0x00007f1ae2871e9e in Wait (this=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysPthread.hh:345
#4  XrdPosixFile::DelayedDestroy (vpf=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdPosix/XrdPosixFile.cc:151
#5  0x00007f1ae25f99c7 in XrdSysThread_Xeq (myargs=0x1886470) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysPthread.cc:86
#6  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#7  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6

Thread 7 (Thread 0x7f1adc591700 (LWP 12568)):
#0  0x00007f1ae25fdd32 in XrdSys::IOEvents::Poller::CbkXeq (this=this@entry=0x18924d0, cP=cP@entry=0x19a24a0, events=4, eNum=0, eTxt=0x0) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEvents.cc:655
#1  0x00007f1ae25ff2b9 in XrdSys::IOEvents::PollE::Dispatch (this=this@entry=0x18924d0, cP=0x19a24a0, pollEv=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEventsPollE.icc:270
#2  0x00007f1ae25ff4a1 in XrdSys::IOEvents::PollE::Begin (this=0x18924d0, syncsem=<optimized out>, retcode=<optimized out>, eTxt=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEventsPollE.icc:225
#3  0x00007f1ae25fbced in XrdSys::IOEvents::BootStrap::Start (parg=0x7ffc74a8edc0) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysIOEvents.cc:131
#4  0x00007f1ae25f99c7 in XrdSysThread_Xeq (myargs=0x1890bc0) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysPthread.cc:86
#5  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#6  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6

Thread 6 (Thread 0x7f1adbd90700 (LWP 12569)):
#0  0x00007f1ae0ec7e4d in nanosleep () from /usr/lib64/libpthread.so.0
#1  0x00007f1ae25fa279 in XrdSysTimer::Wait (mills=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysTimer.cc:239
#2  0x00007f1ae2ae81ba in XrdCl::TaskManager::RunTasks (this=0x1888380) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClTaskManager.cc:244
#3  0x00007f1ae2ae8339 in RunRunnerThread (arg=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClTaskManager.cc:37
#4  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#5  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6

Thread 5 (Thread 0x7f1adb58f700 (LWP 12570)):
#0  0x00007f1ae0be87f9 in syscall () from /usr/lib64/libc.so.6
#1  0x00007f1ae2b41ca0 in Wait (this=0x1890510) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysLinuxSemaphore.hh:161
#2  Get (this=0x1888c18) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClSyncQueue.hh:67
#3  XrdCl::JobManager::RunJobs (this=0x1888c00) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClJobManager.cc:146
#4  0x00007f1ae2b41e39 in RunRunnerThread (arg=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClJobManager.cc:33
#5  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#6  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6

Thread 4 (Thread 0x7f1adad8e700 (LWP 12571)):
#0  0x00007f1ae0be87f9 in syscall () from /usr/lib64/libc.so.6
#1  0x00007f1ae2b41ca0 in Wait (this=0x1890510) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysLinuxSemaphore.hh:161
#2  Get (this=0x1888c18) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClSyncQueue.hh:67
#3  XrdCl::JobManager::RunJobs (this=0x1888c00) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClJobManager.cc:146
#4  0x00007f1ae2b41e39 in RunRunnerThread (arg=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClJobManager.cc:33
#5  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#6  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6

Thread 3 (Thread 0x7f1ada58d700 (LWP 12572)):
#0  0x00007f1ae0be87f9 in syscall () from /usr/lib64/libc.so.6
#1  0x00007f1ae2b41ca0 in Wait (this=0x1890510) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysLinuxSemaphore.hh:161
#2  Get (this=0x1888c18) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClSyncQueue.hh:67
#3  XrdCl::JobManager::RunJobs (this=0x1888c00) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClJobManager.cc:146
#4  0x00007f1ae2b41e39 in RunRunnerThread (arg=<optimized out>) at /usr/src/debug/xrootd-4.6.0/src/XrdCl/XrdClJobManager.cc:33
#5  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#6  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6

Thread 2 (Thread 0x7f1ad9567700 (LWP 12573)):
#0  0x00007f1ae0ec7e4d in nanosleep () from /usr/lib64/libpthread.so.0
#1  0x00007f1ae26429ea in XrdSecsssKTRefresh (Data=0x7f1ad40053f0) at /usr/src/debug/xrootd-4.6.0/src/XrdSecsss/XrdSecsssKT.cc:64
#2  0x00007f1ae25f99c7 in XrdSysThread_Xeq (myargs=0x7f1ad4002300) at /usr/src/debug/xrootd-4.6.0/src/XrdSys/XrdSysPthread.cc:86
#3  0x00007f1ae0ec0e25 in start_thread () from /usr/lib64/libpthread.so.0
#4  0x00007f1ae0bee34d in clone () from /usr/lib64/libc.so.6

Thread 1 (Thread 0x7f1ae3e928c0 (LWP 12565)):
#0  0x00007f1ae0ec8189 in waitpid () from /usr/lib64/libpthread.so.0
#1  0x0000000000446c37 in com_console (arg=<optimized out>) at ../console/commands/com_console.cc:161
#2  0x00000000004265a0 in execute_line (line=line@entry=0x18a4650 "console") at ../console/ConsoleMain.cc:1140
#3  0x000000000041f808 in main (argc=1, argv=0x7ffc74a94668) at ../console/ConsoleMain.cc:1048
```bash


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/xrootd/xrootd","title":"xrootd/xrootd","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/xrootd/xrootd"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"SEGV in XrdSys::IOEvents::Poller::CbkXeq (#600)"}],"action":{"name":"View Issue","url":"https://github.com/xrootd/xrootd/issues/600"}}}

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