* [gentoo-amd64] ldconfig breaks my system
@ 2005-07-15 12:31 Alex Bennee
2005-07-15 16:13 ` Zac Medico
0 siblings, 1 reply; 7+ messages in thread
From: Alex Bennee @ 2005-07-15 12:31 UTC (permalink / raw
To: Gentoo AMD64, Gentoo Users
Hi,
Applogies for the cross-post. I'm unsure if this is and amd64 specific
problem or a more general b0rkage.
I've posted about my failing glibc emerges before:
http://thread.gmane.org/gmane.linux.gentoo.user/114627
I think I've narrowed it down to ldconfig running during the emerge. In
fact at the moment any time I run ldconfig it breaks the system so that
I cannot spawn any new shells (they segfault straight away). I can
restore my system by untaring a rescue glibc binary.
Can anyone give me any hints on how to diagnose the problem with
ldconfig and why things stop working when its done?
I'm currently building a parallel world on a second partition (in a
chrooted environment) to see if there are any differences between the
two setups (i.e a subtle breakage occured and was never picked up).
--
Alex, homepage: http://www.bennee.com/~alex/
It destroys one's nerves to be amiable every day to the same human
being. -- Benjamin Disraeli
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-amd64] ldconfig breaks my system
2005-07-15 12:31 [gentoo-amd64] ldconfig breaks my system Alex Bennee
@ 2005-07-15 16:13 ` Zac Medico
2005-07-17 18:14 ` Alex Bennee
0 siblings, 1 reply; 7+ messages in thread
From: Zac Medico @ 2005-07-15 16:13 UTC (permalink / raw
To: gentoo-amd64
Alex Bennee wrote:
> Hi,
>
> Applogies for the cross-post. I'm unsure if this is and amd64 specific
> problem or a more general b0rkage.
>
> I've posted about my failing glibc emerges before:
>
> http://thread.gmane.org/gmane.linux.gentoo.user/114627
>
> I think I've narrowed it down to ldconfig running during the emerge. In
> fact at the moment any time I run ldconfig it breaks the system so that
> I cannot spawn any new shells (they segfault straight away). I can
> restore my system by untaring a rescue glibc binary.
>
> Can anyone give me any hints on how to diagnose the problem with
> ldconfig and why things stop working when its done?
>
> I'm currently building a parallel world on a second partition (in a
> chrooted environment) to see if there are any differences between the
> two setups (i.e a subtle breakage occured and was never picked up).
>
> --
> Alex, homepage: http://www.bennee.com/~alex/
> It destroys one's nerves to be amiable every day to the same human
> being. -- Benjamin Disraeli
>
I had a similar problem (actually with plain x86) a couple months ago. That was with glibc-2.3.4.20040808-r1. Lately I've been using glibc-2.3.5 with no problems. What version do you have?
Zac
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-amd64] ldconfig breaks my system
2005-07-15 16:13 ` Zac Medico
@ 2005-07-17 18:14 ` Alex Bennee
2005-07-17 20:38 ` [gentoo-amd64] " Duncan
2005-07-18 1:59 ` [gentoo-amd64] " Zac Medico
0 siblings, 2 replies; 7+ messages in thread
From: Alex Bennee @ 2005-07-17 18:14 UTC (permalink / raw
To: gentoo-amd64
On Fri, 2005-07-15 at 09:13 -0700, Zac Medico wrote:
> I had a similar problem (actually with plain x86) a couple months ago.
> That was with glibc-2.3.4.20040808-r1.
Yes that one. I've been unable to succesfully upgrade to 2.3.5 without
hitting the failure. However I left my system building a fresh partition
from scratch over the weekend - it managed to upgrade to 2.3.5 without a
problem.
Something has obviously broken on my main partition that is preventing
the update. Perhaps the difference in ld.so.conf explain things?
malory linux-2.6.12.2 # diff
-ub /etc/ld.so.conf /mnt/sda1/etc/ld.so.conf
--- /etc/ld.so.conf 2005-07-17 13:48:21.000000000 +0000
+++ /mnt/sda1/etc/ld.so.conf 2005-07-14 22:10:29.000000000 +0000
@@ -10,12 +10,14 @@
/usr/lib32
/usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib
-/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3
-/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2
-/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/32
-/usr//lib/MozillaFirefox
+/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/.
+/usr/lib/MozillaFirefox
/usr/lib/mozilla
/usr/lib
+/opt/blackdown-jdk-1.4.2.02/jre/lib/amd64/
+/opt/blackdown-jdk-1.4.2.02/jre/lib/amd64/native_threads/
+/opt/blackdown-jdk-1.4.2.02/jre/lib/amd64/classic/
+/opt/blackdown-jdk-1.4.2.02/jre/lib/amd64/server/
/emul/linux/x86/lib
/emul/linux/x86/usr/lib
/usr/qt/3/lib
> Lately I've been using glibc-2.3.5 with no problems. What version do you have?
>
> Zac
--
Alex, homepage: http://www.bennee.com/~alex/
Dungeons and Dragons is just a lot of Saxon Violence.
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-amd64] Re: ldconfig breaks my system
2005-07-17 18:14 ` Alex Bennee
@ 2005-07-17 20:38 ` Duncan
2005-07-18 1:59 ` [gentoo-amd64] " Zac Medico
1 sibling, 0 replies; 7+ messages in thread
From: Duncan @ 2005-07-17 20:38 UTC (permalink / raw
To: gentoo-amd64
Alex Bennee posted <1121624098.9429.5.camel@malory>, excerpted below, on
Sun, 17 Jul 2005 18:14:57 +0000:
> On Fri, 2005-07-15 at 09:13 -0700, Zac Medico wrote:
>
>> I had a similar problem (actually with plain x86) a couple months ago.
>> That was with glibc-2.3.4.20040808-r1.
>
> Yes that one. I've been unable to succesfully upgrade to 2.3.5 without
> hitting the failure. However I left my system building a fresh partition
> from scratch over the weekend - it managed to upgrade to 2.3.5 without a
> problem.
>
> Something has obviously broken on my main partition that is preventing the
> update. Perhaps the difference in ld.so.conf explain things?
I've been running glibc-2.3.5 fine since April, save for the time I was
running 2.3.5-20050421, the snapshot with gcc-4.x fixes. (The snapshot
worked in amd64 mode, compiled with gcc4 of course, but the x86 ABI
version failed, causing further gcc/glibc/sandbox emerge failures because
they have multilib elements and failed during the 32-bit configure step
due to being unable to load a library, presumably glibc, when testing for
a working (32-bit) gcc-compiler. After I figured out that was the
problem, I simply returned to the normal 2.3.5 version, compiled with
gcc-3.4.x since it didn't have the gcc4 patches applied.)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman in
http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-amd64] ldconfig breaks my system
2005-07-17 18:14 ` Alex Bennee
2005-07-17 20:38 ` [gentoo-amd64] " Duncan
@ 2005-07-18 1:59 ` Zac Medico
2005-07-18 7:24 ` Alex Bennee
1 sibling, 1 reply; 7+ messages in thread
From: Zac Medico @ 2005-07-18 1:59 UTC (permalink / raw
To: gentoo-amd64
Alex Bennee wrote:
>
> Yes that one. I've been unable to succesfully upgrade to 2.3.5 without
> hitting the failure. However I left my system building a fresh partition
> from scratch over the weekend - it managed to upgrade to 2.3.5 without a
> problem.
>
> Something has obviously broken on my main partition that is preventing
> the update. Perhaps the difference in ld.so.conf explain things?
>
So, your system is still broken? You can use quickpkg to make a binary package from the glibc that you built on the fresh partition. Try to install that binary package. If that doesn't work then you can do it by brute force: untar the binary package directly onto your broken system and run ldconfig.
Zac
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-amd64] ldconfig breaks my system
2005-07-18 1:59 ` [gentoo-amd64] " Zac Medico
@ 2005-07-18 7:24 ` Alex Bennee
2005-07-18 7:48 ` Zac Medico
0 siblings, 1 reply; 7+ messages in thread
From: Alex Bennee @ 2005-07-18 7:24 UTC (permalink / raw
To: gentoo-amd64
On Sun, 2005-07-17 at 18:59 -0700, Zac Medico wrote:
> Alex Bennee wrote:
> >
> > Yes that one. I've been unable to succesfully upgrade to 2.3.5 without
> > hitting the failure. However I left my system building a fresh partition
> > from scratch over the weekend - it managed to upgrade to 2.3.5 without a
> > problem.
> >
> > Something has obviously broken on my main partition that is preventing
> > the update. Perhaps the difference in ld.so.conf explain things?
> >
>
> So, your system is still broken? You can use quickpkg to make a binary package
> from the glibc that you built on the fresh partition. Try to install that binary package.
> If that doesn't work then you can do it by brute force: untar the binary package directly
> onto your broken system and run ldconfig.
I wasn't able to install the binary package properly (as ldconfig is
called during the emerge process). However as I was stracing the
ldconfig output to compare with the working setup I realised I wasn't
logging stderr so hit Ctrl-C and restarted ldconfig.
This seems to of "unstuck" the ldconfig failure and I have been able to
run ldconfig without breaking things since. I've done a proper src
emerge of glibc on a chrooted in my original partiton and everything
seems to be working ok now.
The config has been updated during the env-update so I wonder if it was
a subtle breakage in the config that was causing the failure?
malory etc # diff -ub ld.so.conf ldconfig.backup/ld.so.conf
--- ld.so.conf 2005-07-17 22:41:47.000000000 +0100
+++ ldconfig.backup/ld.so.conf 2005-06-19 23:31:13.000000000 +0100
@@ -10,9 +10,7 @@
/usr/lib32
/usr/local/lib32
/usr/x86_64-pc-linux-gnu/lib
-/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3
-/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2
-/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/32
+/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/.
/usr/lib/MozillaFirefox
/usr/lib/mozilla
/usr/lib
--
Alex, homepage: http://www.bennee.com/~alex/
If you had better tools, you could more effectively demonstrate your
total incompetence.
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-amd64] ldconfig breaks my system
2005-07-18 7:24 ` Alex Bennee
@ 2005-07-18 7:48 ` Zac Medico
0 siblings, 0 replies; 7+ messages in thread
From: Zac Medico @ 2005-07-18 7:48 UTC (permalink / raw
To: gentoo-amd64
Alex Bennee wrote:
> On Sun, 2005-07-17 at 18:59 -0700, Zac Medico wrote:
>
>>Alex Bennee wrote:
>>
>>>Yes that one. I've been unable to succesfully upgrade to 2.3.5 without
>>>hitting the failure. However I left my system building a fresh partition
>>>from scratch over the weekend - it managed to upgrade to 2.3.5 without a
>>>problem.
>>>
>>>Something has obviously broken on my main partition that is preventing
>>>the update. Perhaps the difference in ld.so.conf explain things?
>>>
>>
>>So, your system is still broken? You can use quickpkg to make a binary package
>>from the glibc that you built on the fresh partition. Try to install that binary package.
>>If that doesn't work then you can do it by brute force: untar the binary package directly
>> onto your broken system and run ldconfig.
>
>
> I wasn't able to install the binary package properly (as ldconfig is
> called during the emerge process). However as I was stracing the
> ldconfig output to compare with the working setup I realised I wasn't
> logging stderr so hit Ctrl-C and restarted ldconfig.
>
> This seems to of "unstuck" the ldconfig failure and I have been able to
> run ldconfig without breaking things since. I've done a proper src
> emerge of glibc on a chrooted in my original partiton and everything
> seems to be working ok now.
>
> The config has been updated during the env-update so I wonder if it was
> a subtle breakage in the config that was causing the failure?
>
> malory etc # diff -ub ld.so.conf ldconfig.backup/ld.so.conf
> --- ld.so.conf 2005-07-17 22:41:47.000000000 +0100
> +++ ldconfig.backup/ld.so.conf 2005-06-19 23:31:13.000000000 +0100
> @@ -10,9 +10,7 @@
> /usr/lib32
> /usr/local/lib32
> /usr/x86_64-pc-linux-gnu/lib
> -/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3
> -/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2
> -/usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.2/32
> +/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/.
> /usr/lib/MozillaFirefox
> /usr/lib/mozilla
> /usr/lib
>
>
I don't know. See if you can break it again, then we'll know for sure 8-).
Zac
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-07-18 7:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 12:31 [gentoo-amd64] ldconfig breaks my system Alex Bennee
2005-07-15 16:13 ` Zac Medico
2005-07-17 18:14 ` Alex Bennee
2005-07-17 20:38 ` [gentoo-amd64] " Duncan
2005-07-18 1:59 ` [gentoo-amd64] " Zac Medico
2005-07-18 7:24 ` Alex Bennee
2005-07-18 7:48 ` Zac Medico
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox