Discussion:
Samba problems on 8.0-RC2
(too old to reply)
Jon Theil Nielsen
2009-11-08 13:55:49 UTC
Permalink
Hi

After running the latest upgrade for samba33, I cannot start it anymore. The
error message is:
*Starting smbd.
/libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR
/usr/local/etc/rc.d/samba: WARNING: failed to start smbd*
uname -a says:
*mflserver2.mydomain.dk 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Nov 8 02:37:45 CET
2009 ***@mydomain.dk:/usr/obj/usr/src/sys/SERVER2 i386*
I'm not sure if this problem is related to the system or to samba itself.

Best regards
Jon Theil Nielsen
Kostik Belousov
2009-11-08 14:33:48 UTC
Permalink
Post by Jon Theil Nielsen
Hi
After running the latest upgrade for samba33, I cannot start it anymore. The
*Starting smbd.
/libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR
/usr/local/etc/rc.d/samba: WARNING: failed to start smbd*
*mflserver2.mydomain.dk 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Nov 8 02:37:45 CET
I'm not sure if this problem is related to the system or to samba itself.
I think you have old rtld, i.e. it misses r197931, but new kernel.
Kernel maps PIE binaries at non-zero base address, that cannot be
properly handled by old rtld.
Timur I. Bakeyev
2009-11-08 22:36:56 UTC
Permalink
Kostik,

do I understand you correctly, that your patch in back-merged into the
8-STABLE and will be present in the final released version of FreeBSD
8?

With regards,
Timur.
Post by Kostik Belousov
Post by Jon Theil Nielsen
Hi
After running the latest upgrade for samba33, I cannot start it anymore. The
*Starting smbd.
/libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR
/usr/local/etc/rc.d/samba: WARNING: failed to start smbd*
*mflserver2.mydomain.dk 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Nov  8 02:37:45 CET
I'm not sure if this problem is related to the system or to samba itself.
I think you have old rtld, i.e. it misses r197931, but new kernel.
Kernel maps PIE binaries at non-zero base address, that cannot be
properly handled by old rtld.
Kostik Belousov
2009-11-09 12:00:54 UTC
Permalink
Post by Timur I. Bakeyev
Kostik,
do I understand you correctly, that your patch in back-merged into the
8-STABLE and will be present in the final released version of FreeBSD
8?
FreeBSD 8.0, yes. It is in 8.0 RC2 already.
Post by Timur I. Bakeyev
With regards,
Timur.
Post by Kostik Belousov
Post by Jon Theil Nielsen
Hi
After running the latest upgrade for samba33, I cannot start it anymore. The
*Starting smbd.
/libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR
/usr/local/etc/rc.d/samba: WARNING: failed to start smbd*
*mflserver2.mydomain.dk 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Nov š8 02:37:45 CET
I'm not sure if this problem is related to the system or to samba itself.
I think you have old rtld, i.e. it misses r197931, but new kernel.
Kernel maps PIE binaries at non-zero base address, that cannot be
properly handled by old rtld.
John Marshall
2009-11-08 23:30:53 UTC
Permalink
Post by Kostik Belousov
Post by Jon Theil Nielsen
Hi
After running the latest upgrade for samba33, I cannot start it anymore. The
*Starting smbd.
/libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR
/usr/local/etc/rc.d/samba: WARNING: failed to start smbd*
*mflserver2.mydomain.dk 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Nov 8 02:37:45 CET
I'm not sure if this problem is related to the system or to samba itself.
I think you have old rtld, i.e. it misses r197931, but new kernel.
Kernel maps PIE binaries at non-zero base address, that cannot be
properly handled by old rtld.
I have been running Samba 3.3.n on 8.0/i386 all the way through from
-BETA1 to -RC2 with no problems. After seeing your post I upgraded
Samba to 3.3.9 and everything still works.

I think Kostik is suggesting that perhaps you missed an installworld and
your world and kernel are out of synch.
--
John Marshall
pluknet
2010-04-06 08:37:11 UTC
Permalink
Post by Kostik Belousov
Post by Jon Theil Nielsen
Hi
After running the latest upgrade for samba33, I cannot start it anymore. The
*Starting smbd.
/libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR
/usr/local/etc/rc.d/samba: WARNING: failed to start smbd*
*mflserver2.mydomain.dk 8.0-RC2 FreeBSD 8.0-RC2 #0: Sun Nov  8 02:37:45 CET
I'm not sure if this problem is related to the system or to samba itself.
I think you have old rtld, i.e. it misses r197931, but new kernel.
Kernel maps PIE binaries at non-zero base address, that cannot be
properly handled by old rtld.
Hi. I faced this problem today on 7.3 kernel & 7.2 world.
quagga refused to start bgpd with error:
/libexec/ld-elf.so.1: /usr/local/sbin/bgpd: invalid PT_PHDR.
Issue fixed after cp'ing /libexec/ld-elf.so.1 from 7.3 world.

So I think the next entry probably needs to be (belatedly) added to
7'th UPDATING
and/or errata as (as far as I know) that brakes "newer kernel usually works with
older world" users expectation.

20100119:
PIE support has been improved. Kernel maps PIE binaries at non-zero
base address. Users need to rebuild rtld(1) to hook up with a new
kernel.
--
wbr,
pluknet
Loading...