Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
glibc-2.25-r2 update broke system [FIXED, sort of]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5765

PostPosted: Sun Aug 13, 2017 8:17 pm    Post subject: glibc-2.25-r2 update broke system [FIXED, sort of] Reply with quote

This looks pretty bad. Everything was going fine on my amd64 boxes, then on this x86 one:
Code:
>>> Emerging (1 of 14) sys-libs/glibc-2.25-r2::gentoo
>>> Installing (1 of 14) sys-libs/glibc-2.25-r2::gentoo
>>> Failed to execute postinst for sys-libs/glibc-2.25-r2
>>> Emerging (2 of 14) sys-apps/baselayout-2.4.1-r1::gentoo
>>> Failed to emerge sys-apps/baselayout-2.4.1-r1, Log file:
>>>  '/var/tmp/portage/sys-apps/baselayout-2.4.1-r1/temp/build.log'
>>> Jobs: 1 of 14 complete, 1 failed                Load avg: 1.93, 1.91, 1.48

 * Messages for package sys-libs/glibc-2.24-r3:

 * The ebuild phase 'prerm' has exited unexpectedly. This type of behavior
 * is known to be triggered by things such as failed variable assignments
 * (bug #190128) or bad substitution errors (bug #200313). Normally, before
 * exiting, bash should have displayed an error message above. If bash did
 * not produce an error message above, it's possible that the ebuild has
 * called `exit` when it should have called `die` instead. This behavior
 * may also be triggered by a corrupt bash binary or a hardware problem
 * such as memory or cpu malfunction. If the problem is not reproducible or
 * it appears to occur randomly, then it is likely to be triggered by a
 * hardware problem. If you suspect a hardware problem then you should try
 * some basic hardware diagnostics such as memtest. Please do not report
 * this as a bug unless it is consistently reproducible and you are sure
 * that your bash binary and hardware are functioning properly.
 * ERROR: sys-libs/glibc-2.24-r3::gentoo failed (prerm phase):
 *   filter-bash-environment.py failed

(rest was garbled due to buggy interaction between mosh/tmux, but is in build.log below)

And now barely anything will run without segfaults. I have one root shell available, can't run bash or anything python related. I checked in /var/tmp/portage, there's a /var/tmp/portage/._unmerge_/sys-libs/glibc-2.24-r3/ directory that I almost missed, but it looks like all useful logs are gone already. Here's the build.log but it only seems to have cleanup phase stuff in it.

Any ideas, or am I going to have to unbrick this with sysresccd?

Edit: doesn't seem to be related to bug 627770; crashes still happen with a default nsswitch.conf.


Last edited by Ant P. on Sun Aug 13, 2017 11:48 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5765

PostPosted: Sun Aug 13, 2017 10:33 pm    Post subject: Reply with quote

Alright, so I know this is a pretty awful workaround, but I can at least run programs again now.
Code:
i686-pc-linux-gnu-emerge -1 --buildpkgonly '<glibc-2.25-r2'
scp /usr/i686-pc-linux-gnu/packages/sys-libs/glibc-2.24-r3.tbz2 root@broken:
ssh root@broken "tar -C / -xf glibc-2.24-r3.tbz2"

I tried the same with glibc-2.25 first but it still segfaulted, so I think something really is broken in that version.

Now I've got to work on cleaning up this mess...

Last edit:
Code:
# need package metadata to emerge it properly
rsync /usr/i686-pc-linux-gnu/packages/ root@broken:/var/cache/packages/

# extracting the raw tarball clobbered this, not having it configured makes reinstalling very slow
scp /etc/locale.gen root@broken:/etc/locale.gen

# need to fight with portage to trick it into installing an older glibc
ssh root@broken "
    emerge -1a --root=// --usepkgonly '=sys-libs/glibc-2.24-r3' && \
    echo '=sys-libs/glibc-2.25*' >> /etc/portage/package.mask/broken-packages.conf
"


Lesson learned... don't blindly trust the Gentoo glibc maintainers, especially given their reputation. I'll be using FEATURES=test next time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum