I upgraded (via source) a system from 7-stable to 8-stable and Samba now fails in a strange way. Starting the executable results in an immediate ABORT: ursaminor:/usr/local/sbin# ./smbd Abort And running ktrace on it results in an extremely short ktrace.out: ursaminor:/usr/local/sbin# ktrace ./smbd Abort ursaminor:/usr/local/sbin# ll ktrace.out -rw------- 1 root wheel 166 Oct 20 23:32 ktrace.out ursaminor:/usr/local/sbin# kdump -f ./ktrace.out 93873 ktrace RET ktrace 0 93873 ktrace CALL execve(0xbfbfed7f,0xbfbfec44,0xbfbfec4c) 93873 ktrace NAMI "./smbd" I have no idea how to interpret this dump. OTOH ldd says everything looks fine: ursaminor:/usr/local/sbin# ldd ./smbd ./smbd: libcrypt.so.5 => /lib/libcrypt.so.5 (0x281a1000) libpam.so.5 => /usr/lib/libpam.so.5 (0x281ba000) libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x281c1000) libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28845000) librt.so.1 => /usr/lib/librt.so.1 (0x281cc000) libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0x281da000) libc.so.7 => /lib/libc.so.7 (0x2808f000) libm.so.5 => /lib/libm.so.5 (0x281e3000) libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2893b000) Any suggestion where to dig further? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20091020/cb2f77a8/signature.pgp
Kostik Belousov
2009-Oct-20 21:44 UTC
Interesting problem updating samba after 7->8 transition
On Tue, Oct 20, 2009 at 11:35:39PM +0200, Ivan Voras wrote:> I upgraded (via source) a system from 7-stable to 8-stable and Samba now > fails in a strange way. Starting the executable results in an immediate > ABORT: > > ursaminor:/usr/local/sbin# ./smbd > Abort > > And running ktrace on it results in an extremely short ktrace.out: > > ursaminor:/usr/local/sbin# ktrace ./smbd > Abort > ursaminor:/usr/local/sbin# ll ktrace.out > -rw------- 1 root wheel 166 Oct 20 23:32 ktrace.out > ursaminor:/usr/local/sbin# kdump -f ./ktrace.out > 93873 ktrace RET ktrace 0 > 93873 ktrace CALL execve(0xbfbfed7f,0xbfbfec44,0xbfbfec4c) > 93873 ktrace NAMI "./smbd" > > I have no idea how to interpret this dump. > > OTOH ldd says everything looks fine: > > ursaminor:/usr/local/sbin# ldd ./smbd > ./smbd: > libcrypt.so.5 => /lib/libcrypt.so.5 (0x281a1000) > libpam.so.5 => /usr/lib/libpam.so.5 (0x281ba000) > libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x281c1000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28845000) > librt.so.1 => /usr/lib/librt.so.1 (0x281cc000) > libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0x281da000) > libc.so.7 => /lib/libc.so.7 (0x2808f000) > libm.so.5 => /lib/libm.so.5 (0x281e3000) > libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2893b000) > > Any suggestion where to dig further? > >Upgrade to at least r198284. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20091020/bb727841/attachment.pgp
Ronald Klop
2009-Oct-20 21:45 UTC
Interesting problem updating samba after 7->8 transition
On Tue, 20 Oct 2009 23:35:39 +0200, Ivan Voras <ivoras@freebsd.org> wrote:> I upgraded (via source) a system from 7-stable to 8-stable and Samba now > fails in a strange way. Starting the executable results in an immediate > ABORT: > > ursaminor:/usr/local/sbin# ./smbd > Abort > > And running ktrace on it results in an extremely short ktrace.out: > > ursaminor:/usr/local/sbin# ktrace ./smbd > Abort > ursaminor:/usr/local/sbin# ll ktrace.out > -rw------- 1 root wheel 166 Oct 20 23:32 ktrace.out > ursaminor:/usr/local/sbin# kdump -f ./ktrace.out > 93873 ktrace RET ktrace 0 > 93873 ktrace CALL execve(0xbfbfed7f,0xbfbfec44,0xbfbfec4c) > 93873 ktrace NAMI "./smbd" > > I have no idea how to interpret this dump. > > OTOH ldd says everything looks fine: > > ursaminor:/usr/local/sbin# ldd ./smbd > ./smbd: > libcrypt.so.5 => /lib/libcrypt.so.5 (0x281a1000) > libpam.so.5 => /usr/lib/libpam.so.5 (0x281ba000) > libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x281c1000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28845000) > librt.so.1 => /usr/lib/librt.so.1 (0x281cc000) > libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0x281da000) > libc.so.7 => /lib/libc.so.7 (0x2808f000) > libm.so.5 => /lib/libm.so.5 (0x281e3000) > libintl.so.8 => /usr/local/lib/libintl.so.8 (0x2893b000) > > Any suggestion where to dig further?Read about the latest ERRATA NOTICES's. There is something with PIE-library's (which are used by Samba) which defaults to doesn't-work in 8 and still works in 7. People are working on a real fix for 8. In the ERRATA NOTICES is a setting which you can set to does-work. http://security.freebsd.org/advisories/FreeBSD-EN-09:05.null.asc Ronald.