Sudo cores are generated when the systems was idle

General support questions
Post Reply
nupurpriya
Posts: 86
Joined: 2016/10/14 12:07:18

Sudo cores are generated when the systems was idle

Post by nupurpriya » 2018/03/23 09:20:45

Below is the backtrace:

ontinue (y/n)?y
Reading symbols from /usr/bin/sudo...Reading symbols from /usr/bin/sudo...(no debugging symbols found).
(no debugging symbols found)...done.
[New LWP 17086]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `sudo /usr/local/cm/bin/cdpScript.sh cdp_tlv_duplex 1'.
Program terminated with signal 6, Aborted.
#0 0xf772a430 in __kernel_vsyscall ()

====================================
backtrace
===================================
#0 0xf772a430 in __kernel_vsyscall ()
#1 0xf752f1f7 in raise () from /usr/lib/libc.so.6
#2 0xf7530a33 in abort () from /usr/lib/libc.so.6
#3 0xf756e5e5 in __libc_message () from /usr/lib/libc.so.6
#4 0xf760fbc5 in __fortify_fail () from /usr/lib/libc.so.6
#5 0xf760dbfa in __chk_fail () from /usr/lib/libc.so.6
#6 0xf760fada in __fdelt_warn () from /usr/lib/libc.so.6
#7 0xf7752e22 in sudo_execute ()
#8 0xf775c36a in run_command ()
#9 0xf77510d4 in main ()
====================================
info registers
====================================
eax 0x0 0
ecx 0x42be 17086
edx 0x6 6
ebx 0x42be 17086
esp 0xffb283a4 0xffb283a4
ebp 0xffb28b28 0xffb28b28
esi 0x56d 1389
edi 0xf76bb000 -143937536
eip 0xf772a430 0xf772a430 <__kernel_vsyscall+16>
eflags 0x296 [ PF AF SF IF ]
cs 0x23 35
ss 0x2b 43
ds 0x2b 43
es 0x2b 43
fs 0x0 0
gs 0x63 99
====================================
info threads
====================================
Id Target Id Frame

1 Thread 0xf73b8780 (LWP 17086) 0xf772a430 in __kernel_vsyscall ()

nupurpriya
Posts: 86
Joined: 2016/10/14 12:07:18

Re: Sudo cores are generated when the systems was idle

Post by nupurpriya » 2018/03/28 07:05:51

After research, I found out, that the core is being generated as my CentOS box is running out of file descriptors. So my question here is, Is there any way to find out who (user/process) is polluting my server??
Please help

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Sudo cores are generated when the systems was idle

Post by hunter86_bg » 2018/03/28 14:33:49

/proc/pid/fd shows how many file descriptors has the process (pid has to be replaced by process id).
Just find the process with most of them and take any action needed.
A bash loop should do the trick.

nupurpriya
Posts: 86
Joined: 2016/10/14 12:07:18

Re: Sudo cores are generated when the systems was idle

Post by nupurpriya » 2018/04/04 10:50:36

Thanks for the response

Post Reply