Discussion:
[gentoo-user] repair of a seg-faulting bin-utils
(too old to reply)
Corbin
2022-10-26 16:20:01 UTC
Permalink
Help!

The last update I did built/installed bin-uitls. It is now producing
seg-faults. I forgot to make a quickpkg of the old bin-utils before
upgrading.

Added problem, dead optical drive. No cdrom/dvd or bluray.

How can I fix this without having to reinstall from scratch?
Grant Edwards
2022-10-26 16:30:01 UTC
Permalink
Post by Corbin
Help!
The last update I did built/installed bin-uitls. It is now producing
seg-faults. I forgot to make a quickpkg of the old bin-utils before
upgrading.
The first thing I would do is run a RAM test overnight. IME,
segfaulting binutils or gcc has usually been a hardware problem.

--
Grant
Rich Freeman
2022-10-26 18:40:01 UTC
Permalink
On Wed, Oct 26, 2022 at 12:24 PM Grant Edwards
Post by Grant Edwards
Post by Corbin
Help!
The last update I did built/installed bin-uitls. It is now producing
seg-faults. I forgot to make a quickpkg of the old bin-utils before
upgrading.
The first thing I would do is run a RAM test overnight. IME,
segfaulting binutils or gcc has usually been a hardware problem.
Bad disk is obviously another possible issue (saw that on a pi
sdcard), but I'd definitely be testing that RAM. Really if you suspect
bad RAM it is worth your trouble to just shut down ASAP and test that,
because every minute with bad RAM is potentially corrupted files on
your hard drive, and rework even if you have a good backup.

Another possible issue is bad -march settings. That usually is an
issue if you change your CPU and boot off of an existing hard drive.
If you're going to upgrade your CPU you should rebuild all of @system
(at least) with -march set to something very minimal. Don't assume
that a newer CPU does everything an existing one does - they sometimes
do drop instructions. You can set -mcpu to whatever you want, as a
bad -mcpu will only cause minor performance issues.
--
Rich
Matt Connell
2022-10-26 18:50:01 UTC
Permalink
Another possible issue is bad -march settings.  That usually is an
issue if you change your CPU and boot off of an existing hard drive.
(at least) with -march set to something very minimal.  Don't assume
that a newer CPU does everything an existing one does - they sometimes
do drop instructions.  You can set -mcpu to whatever you want, as a
bad -mcpu will only cause minor performance issues.
Further reading on this:

https://wiki.gentoo.org/wiki/Safe_CFLAGS

I've always used this as a reference for helping ensure make.conf is
not only going to be well optimized, but produce reliable binaries.
Loading...