Subject: bug#24846: error while loading shared libraries: libgmp.so.10: unexpected PLT reloc type 0x40

From: Pádraig Brady <[email-masked]>
Date: Tue, 1 Nov 2016 16:09:01 +0000

On 01/11/16 10:47, Yan Markman wrote:
> Sometimes coreutils commands fails
> and I'm looking a clue what could be root cause or where to debug

> 
> SETUP:
> 
> 1.       System Device is ROUTER
> 
> 2.       Silicone has 2 CPUs of ARM9
> 
> 3.       coreutils (GNU coreutils) 8.24  - 2015
> 
> 4.       File-System NFS over Ethernet/USB
> 
> 5.       High Ethernet traffic with high CPUs' loading (overloading)
> 
> 6.
> PROBLEM:
> Sometimes (hardly reproduced) coreutils commands (for example - "ls", "date")
> Stop to work and return the below error
> 
> /usr/bin/coreutils: error while loading shared libraries: /usr/lib/libgmp.so.10: unexpected PLT reloc type 0x40

I see you're using the single binary build.

Weird that the problem is intermittent.

Can you memtest your RAM?

Perhaps there are multiple gmp versions on the system and sometimes the wrong one is used?
(that's really stretching)

BTW it would be better to configure your coreutils build --without-gmp
That is done for the coreutils-single package in Fedora for example,
as the relatively large overhead of GMP for just factor and expr
is not a good tradeoff in the single binary use case.

cheers,
Pádraig.