public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Weird problem with new glibc
@ 2006-09-15 14:05 Bruno Lustosa
  0 siblings, 0 replies; only message in thread
From: Bruno Lustosa @ 2006-09-15 14:05 UTC (permalink / raw
  To: gentoo-user

Hi folks,

As soon as I upgraded my system to new gcc and glibc, I started to get
a very weird problem at boot time. I'm using libnss-mysql to
authenticate users, and my nsswitch.conf is set to check files first,
then mysql.
At boot time, /usr is not yet mounted, and as such, anything that
would need to connect to mysql would fail (because libmysqlclient is
in /usr/lib). However, the problem is that udevd is not starting
without /usr mounted. A simple 'ls' on root dir fails as well, even
though all files and dirs there are owned by root:root (and of course,
root is on passwd and groups). An strace indicates that both of them
are trying to access /usr/lib/libmysqlclient.so, and when they get the
"No such file or directory", they fail with this message:

Inconsistency detected by ld.so: dl-open.c: 604: _dl_open: Assertion
`_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT'
failed!

My workaround (and a kinda ugly one) was to edit /sbin/rc (the script
that calls udevd) and put there just before calling udevd:

mknod /dev/hda7 b 3 7
mount /usr   (my /usr is in /dev/hda7)

This makes it work, but I'm sure someone might have a better idea than
that, because I'll lose this as soon as the package that owns /sbin/rc
is updated.
This worked before the last update to glibc, I just don't know why it
tries to connect to mysql now (either it didn't before, or it did try
but would not fail like that).

Can anyone shed some light on this?

-- 
Bruno Lustosa <bruno@lustosa.net>
http://www.lustosa.net/
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-15 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 14:05 [gentoo-user] Weird problem with new glibc Bruno Lustosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox