You are not logged in.

#1 2019-12-06 00:00:21

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

[(Un)solved] ldconfig on anything gives Bus error (core dumped)

I think I need to rebuild my /etc/ld.so.cache from scratch.
Can I do it with a blank /etc/ld.so.conf? Or should I use a minimal

# cat /etc/ld.so.conf
/usr/lib32

The output of any one line from

/etc/ld.so.conf.d/*.conf

into

 ldconfig -nNX 

produces the same error. There are no trailing blanks in any line.

Alternatively, I could reinstall ldconfig. How do I use pacman to find out what package holds it? (I need this method for later....) I expect it is in the base group???

Last edited by OrigBitmancer (2020-03-09 20:02:57)

Offline

#2 2019-12-06 00:23:07

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2019-12-06 01:12:01

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,523
Website

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

Or just `pacman -Qo /bin/ldconfig` given that it's already installed.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2019-12-06 03:06:53

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

Thank you, Trilby and Slithery. I found ldconfig was a member of the glibc package.
My next step was to reinstall glibc. It had these results:

(1/1) reinstalling glibc          
Generating locales...
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
Generation complete.
/tmp/alpm_9Msspz/.INSTALL: line 1: 37367 Bus error               (core dumped) ldconfig -r .
error: command failed to execute correctly
error: command terminated by signal 7: Bus error
:: Running post-transaction hooks...
(1/7) Reloading system manager configuration...
(2/7) Creating temporary files...
error: command failed to execute correctly
(3/7) Arming ConditionNeedsUpdate...
...

The alpm error looks interesting, but it may be a side effect.

I have 2 e-cents. May I buy another clue?

Offline

#5 2019-12-06 03:20:16

loqs
Member
Registered: 2014-03-06
Posts: 19,087

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

error: command terminated by signal 7: Bus error

What is the output of dmesg after you reinstalled glibc?
Particularly relating to the storage device.

Last edited by loqs (2019-12-06 03:20:28)

Offline

#6 2019-12-06 03:25:55

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

Yikes! Thanks, loqs! Looks like something is wrong with my main 2TB disk!

[86857.894556] ata5.00: exception Emask 0x0 SAct 0x3000000c SErr 0x0 action 0x0
[86857.894562] ata5.00: irq_stat 0x40000008
[86857.894566] ata5.00: failed command: READ FPDMA QUEUED
[86857.894573] ata5.00: cmd 60/08:18:90:9c:90/00:00:01:00:00/40 tag 3 ncq dma 4096 in
                                        res 41/40:00:90:9c:90/00:00:01:00:00/40 Emask 0x409 (media error) <F>
[86857.894575] ata5.00: status: { DRDY ERR }
[86857.894577] ata5.00: error: { UNC }
[86857.895126] ata5.00: SB600 AHCI: limiting to 255 sectors per cmd
[86857.895666] ata5.00: SB600 AHCI: limiting to 255 sectors per cmd
[86857.895669] ata5.00: configured for UDMA/133
[86857.895713] sd 4:0:0:0: [sdc] tag#3 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[86857.895717] sd 4:0:0:0: [sdc] tag#3 Sense Key : Medium Error [current] 
[86857.895720] sd 4:0:0:0: [sdc] tag#3 Add. Sense: Unrecovered read error - auto reallocate failed
[86857.895724] sd 4:0:0:0: [sdc] tag#3 CDB: Read(10) 28 00 01 90 9c 90 00 00 08 00
[86857.895728] blk_update_request: I/O error, dev sdc, sector 26254480 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[86857.895782] ata5: EH complete

Is this the drive or the controller?

Offline

#7 2019-12-06 08:09:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,962

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

https://wiki.archlinux.org/index.php?title=SMART

smartctl -a /dev/sdc

Smells like the drive, though.

Offline

#8 2019-12-06 08:11:29

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

What am I looking for in the SMART results? I ran them several hours ago....

Offline

#9 2019-12-06 08:13:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,962

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

The status matrix of "smartctl -a /dev/sdc" - it's gonna report several values reg. crc errors, reallocations, pending sectors…

Offline

#10 2019-12-06 08:14:09

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

Ok. Will drop it in 12 hours or so.

Offline

#11 2020-03-09 20:00:19

OrigBitmancer
Member
Registered: 2019-01-22
Posts: 144

Re: [(Un)solved] ldconfig on anything gives Bus error (core dumped)

I can no longer research this topic as I have had to rebuild the system twice since then. Thanks to all for help.

Offline

Board footer

Powered by FluxBB