How do I figure out which library is causing ldconfig to segfault?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I downloaded the Ubuntu 16.04 distro for NanoPi Neo 2 and found something interesting.



Running ldconfig.real -i (ignoring auxiliary cache) ought to rebuild the library cache. Instead, the binary generates a segmentation fault.



This error is reproducible on the Xenial image but does not occur with the Armbian 5.34 (4.13 kernel) or the Armbian 5.35 (3.4 kernel) distro images.



All images were tested as they are, without updates or modifications.



I think the problem may lie in libc, but I'm not sure how to find out.



Any suggestions...? I’m considering recompiling all the libraries (one by one) with apt-src to see which one is broken.










share|improve this question





















  • Read man strace, and do something like strace -e trace=open,read ldconfig.real -i to see which file it's reading at the crash.
    – waltinator
    Jan 28 at 8:03






  • 1




    Tried verbose mode? ldconfig.real -iv?
    – Olorin
    Jan 28 at 8:04














up vote
0
down vote

favorite












I downloaded the Ubuntu 16.04 distro for NanoPi Neo 2 and found something interesting.



Running ldconfig.real -i (ignoring auxiliary cache) ought to rebuild the library cache. Instead, the binary generates a segmentation fault.



This error is reproducible on the Xenial image but does not occur with the Armbian 5.34 (4.13 kernel) or the Armbian 5.35 (3.4 kernel) distro images.



All images were tested as they are, without updates or modifications.



I think the problem may lie in libc, but I'm not sure how to find out.



Any suggestions...? I’m considering recompiling all the libraries (one by one) with apt-src to see which one is broken.










share|improve this question





















  • Read man strace, and do something like strace -e trace=open,read ldconfig.real -i to see which file it's reading at the crash.
    – waltinator
    Jan 28 at 8:03






  • 1




    Tried verbose mode? ldconfig.real -iv?
    – Olorin
    Jan 28 at 8:04












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I downloaded the Ubuntu 16.04 distro for NanoPi Neo 2 and found something interesting.



Running ldconfig.real -i (ignoring auxiliary cache) ought to rebuild the library cache. Instead, the binary generates a segmentation fault.



This error is reproducible on the Xenial image but does not occur with the Armbian 5.34 (4.13 kernel) or the Armbian 5.35 (3.4 kernel) distro images.



All images were tested as they are, without updates or modifications.



I think the problem may lie in libc, but I'm not sure how to find out.



Any suggestions...? I’m considering recompiling all the libraries (one by one) with apt-src to see which one is broken.










share|improve this question













I downloaded the Ubuntu 16.04 distro for NanoPi Neo 2 and found something interesting.



Running ldconfig.real -i (ignoring auxiliary cache) ought to rebuild the library cache. Instead, the binary generates a segmentation fault.



This error is reproducible on the Xenial image but does not occur with the Armbian 5.34 (4.13 kernel) or the Armbian 5.35 (3.4 kernel) distro images.



All images were tested as they are, without updates or modifications.



I think the problem may lie in libc, but I'm not sure how to find out.



Any suggestions...? I’m considering recompiling all the libraries (one by one) with apt-src to see which one is broken.







compiling libraries debugging derivatives






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 28 at 7:46









Hugo Rabson

1




1











  • Read man strace, and do something like strace -e trace=open,read ldconfig.real -i to see which file it's reading at the crash.
    – waltinator
    Jan 28 at 8:03






  • 1




    Tried verbose mode? ldconfig.real -iv?
    – Olorin
    Jan 28 at 8:04
















  • Read man strace, and do something like strace -e trace=open,read ldconfig.real -i to see which file it's reading at the crash.
    – waltinator
    Jan 28 at 8:03






  • 1




    Tried verbose mode? ldconfig.real -iv?
    – Olorin
    Jan 28 at 8:04















Read man strace, and do something like strace -e trace=open,read ldconfig.real -i to see which file it's reading at the crash.
– waltinator
Jan 28 at 8:03




Read man strace, and do something like strace -e trace=open,read ldconfig.real -i to see which file it's reading at the crash.
– waltinator
Jan 28 at 8:03




1




1




Tried verbose mode? ldconfig.real -iv?
– Olorin
Jan 28 at 8:04




Tried verbose mode? ldconfig.real -iv?
– Olorin
Jan 28 at 8:04















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000606%2fhow-do-i-figure-out-which-library-is-causing-ldconfig-to-segfault%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1000606%2fhow-do-i-figure-out-which-library-is-causing-ldconfig-to-segfault%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491