Moab OS crash in internal_getent after call to MOSGetHostByAddr


Problem:

Moab crashes shortly after starting, and the core file gives a gdb backtrace similar to this:

  

#0 0x00002b227171b329 in raise () from /usr/local/lib/libc.so.6
#1 0x00002b227171c718 in abort () from /usr/local/lib/libc.so.6
#2 0x000000000064157e in MSysBacktraceHandler (Signo=11, Siginfo=0x2b22885f6db0) at MSysSignalHandling.c:341
#3 <signal handler called>
#4 0x00002b227662cb34 in internal_getent (result=0x2b22885f7830, buffer=0x2b22885f73d0 "", buflen=<value optimized out>, errnop=0x2b2288602690, herrnop=0x2b22885f7824, af=2, flags=0)
at nss_files/files-XXX.c:270
#5 0x00002b227662dcf8 in _nss_files_gethostbyaddr_r (addr=<value optimized out>, len=<value optimized out>, af=2, result=0x2b22885f7830, buffer=0x2b22885f73d0 "", buflen=1024,
errnop=0x2b2288602690, herrnop=0x2b22885f7824) at nss_files/files-hosts.c:361
#6 0x00002b22717e3ced in gethostbyaddr_r@@GLIBC_2.2.5 () from /usr/local/lib/libc.so.6
#7 0x00002b22717ebe96 in getnameinfo () from /usr/local/lib/libc.so.6
#8 0x00000000005376b2 in MOSGetHostByAddr (S=0x2b22885f8bf0, HostName=0x2b25835fcec0 "") at MOSInterface.c:224
#9 0x0000000000a13a72 in MSUAcceptClient (S=Unhandled dwarf expression opcode 0xf3
) at MSU.c:1767
#10 0x0000000000872ddb in MSysEnqueueSocket (EMsg=0x0) at MSysCommThread.c:507
#11 0x0000000000873dd4 in MSysCommThread () at MSysCommThread.c:687
#12 0x00002b227036caa1 in start_thread (arg=0x2b2288602700) at pthread_create.c:301
#13 0x00002b22717cde2d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

 

Solution:

This was reported in 2017 after upgrading from Moab version 7.2 to 9.x, but 9.x worked until a CentOS update (version 6.8, no details on what exactly changed).

The following steps resolved the issue:

 

1) Check the library by running:

file /usr/local/lib/libc.so.6

 

2) Run ldd on that file. Typically, it will be a symlink. Example:

# file /usr/local/lib/libc.so.6
/usr/local/lib/libc.so.6: symbolic link to ´/opt/lib/glibc-2.15/lib/libc.so.6
ldd /opt/lib/glibc-2.15/lib/libc.so.6
/opt/lib/glibc-2.15/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f43a2228000)
#

 

3) Update the symlink:

# ln -sf /lib64/libc.so.6 /usr/local/lib/libc.so.6
Last update:
2017-02-18 02:05
Author:
Rick McKay
Revision:
1.0
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.