Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2011 17:33:58 -0500
From:      michael butler <imb@protected-networks.net>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: rename on socket fails :-(
Message-ID:  <20110218223358.GB9549@mail.auburn.protected-networks.net>
In-Reply-To: <20110218221108.GB78089@deviant.kiev.zoral.com.ua>
References:  <20110218215330.GA9549@mail.auburn.protected-networks.net> <20110218221108.GB78089@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--Pd0ReVV5GZGQvF3a
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Feb 19, 2011 at 12:11:09AM +0200, Kostik Belousov wrote:
> On Fri, Feb 18, 2011 at 04:53:30PM -0500, michael butler wrote:
> > Just upgraded my mail-server to -current only to be greated by:
> >=20
> > Feb 18 16:26:00 mail authdaemond: modules=3D"authpam", daemons=3D5
> > Feb 18 16:26:00 mail authdaemond: Installing libauthpam
> > Feb 18 16:26:00 mail authdaemond: Installation complete: authpam
> > Feb 18 16:26:00 mail authdaemond: /var/run/authdaemond/socket: Cross-de=
vice
> > link
> >=20
> > Essentially, authdaemond creates /var/run/authdaemond/socket.tmp and th=
en
> > tries to rename it to the above. In releng7_4, this worked, on -current=
, it
> > doesn't. What broke it? This is on a normal UFS2 + soft-updates file-sy=
stem
> > :-(
>=20
> Are you sure that /var/run/authdaemond/socket.tmp is
> renamed to /var/run/authdaemond/socket ? Can you show the
> ktrace/kdump output ?

The relevant section of ktrace.out is:

 10905 authdaemond.bin CALL  unlink(0xbfbfeadc)
 10905 authdaemond.bin NAMI  "/var/run/authdaemond/socket.tmp"
 10905 authdaemond.bin RET   unlink 0
 10905 authdaemond.bin CALL  bind(0x5,0xbfbfeada,0x6a)
 10905 authdaemond.bin STRU  struct sockaddr { AF_LOCAL,
 /var/run/authdaemond/socket.tmp }
 10905 authdaemond.bin NAMI  "/var/run/authdaemond/socket.tmp"
 10905 authdaemond.bin RET   bind 0
 10905 authdaemond.bin CALL  listen(0x5,0x80)
 10905 authdaemond.bin RET   listen 0
 10905 authdaemond.bin CALL
 chmod(0xbfbfeadc,0x1ff<S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_I=
ROTH|S_IWOTH|S_IXOTH>)
 10905 authdaemond.bin NAMI  "/var/run/authdaemond/socket.tmp"
 10905 authdaemond.bin RET   chmod 0
 10905 authdaemond.bin CALL  rename(0xbfbfeadc,0x804b1c1)
 10905 authdaemond.bin NAMI  "/var/run/authdaemond/socket.tmp"
 10905 authdaemond.bin NAMI  "/var/run/authdaemond/socket"
 10905 authdaemond.bin RET   rename -1 errno 18 Cross-device link
=20
I also made sure that the relevant components were properly linked against
the -current shared libs ..

imb@mail:/usr/local/libexec/courier-authlib> ldd authdaemond
authdaemond:
        libltdl.so.7 =3D> /usr/local/lib/libltdl.so.7 (0x2809a000)
        libcourierauthcommon.so =3D>
/usr/local/lib/courier-authlib/libcourierauthcommon.so (0x280a2000)
        libcourierauth.so =3D>
/usr/local/lib/courier-authlib/libcourierauth.so (0x280a6000)
        libc.so.7 =3D> /lib/libc.so.7 (0x280b1000)
        libcrypt.so.5 =3D> /lib/libcrypt.so.5 (0x281cb000)

imb@mail:/usr/local/libexec/courier-authlib> ldd
/usr/local/lib/courier-authlib/libcourierauth.so
/usr/local/lib/courier-authlib/libcourierauth.so:
        libc.so.7 =3D> /lib/libc.so.7 (0x2809a000)

imb@mail:/usr/local/libexec/courier-authlib> ldd
/usr/local/lib/courier-authlib/libcourierauthcommon.so
/usr/local/lib/courier-authlib/libcourierauthcommon.so:
        libcourierauth.so =3D>
/usr/local/lib/courier-authlib/libcourierauth.so (0x281c5000)
        libcrypt.so.5 =3D> /lib/libcrypt.so.5 (0x281d0000)
        libc.so.7 =3D> /lib/libc.so.7 (0x2809a000)

imb@mail:/usr/local/libexec/courier-authlib> ldd /usr/local/lib/libltdl.so.7
/usr/local/lib/libltdl.so.7:
        libc.so.7 =3D> /lib/libc.so.7 (0x2809a000)

--Pd0ReVV5GZGQvF3a
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk1e89YACgkQQv9rrgRC1JK5GgCeLr4Lo8rdEy0qZxfqrDcSJDhC
+SYAn0edx4+PlKFK/9Ar7nlr1j6yCVT7
=MR8s
-----END PGP SIGNATURE-----

--Pd0ReVV5GZGQvF3a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110218223358.GB9549>