Hi,
I wonder what may have caused this and how should I debug it to find the
source? I Installed samba 3.3.7 on a clean 8.0-RC1 and I upgraded then my
system to the latest RELENG_8.
Since I've not the time searching much longer for the error I'll just go
to upgrade to 3.3.8 (recompile it...) tomorrow but I'm curious what it
may have caused and how I would have been able to find the cause....
root@nudel samba33> /usr/local/sbin/smbd
Abort
Exit 134
root@nudel samba33> gdb
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-marcel-freebsd".
(gdb) exec /usr/local/sbin/smbd
(gdb) run
Starting program: /usr/local/sbin/smbd
Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
You can't do that without a process to debug.
(gdb) q
root@nudel samba33> ktrace /usr/local/sbin/smbd
Abort
Exit 134
root@nudel samba33> kdump
2605 ktrace RET ktrace 0
2605 ktrace CALL execve(0xbfbfed83,0xbfbfec50,0xbfbfec58)
2605 ktrace NAMI "/usr/local/sbin/smbd"
root@nudel samba33> mount -t procfs /dev/null /proc
root@nudel samba33> truss -fad /usr/local/sbin/smbd
truss: can not get etype: No such process
Exit 2
root@nudel samba33> dmesg | tail -1
fxp0: Microcode loaded, int_delay: 1000 usec bundle_max: 6
root@nudel samba33> ldd /usr/local/sbin/smbd
/usr/local/sbin/smbd:
libcrypt.so.5 => /lib/libcrypt.so.5 (0x281aa000)
libpam.so.5 => /usr/lib/libpam.so.5 (0x281c3000)
libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x281cb000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x288d2000)
libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0x281d6000)
libc.so.7 => /lib/libc.so.7 (0x28091000)
libm.so.5 => /lib/libm.so.5 (0x281df000)
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x289d1000)
root@nudel samba33> ls -l /lib/libcrypt.so.5 /usr/lib/libpam.so.5
/usr/local/lib/libexecinfo.so.1 /usr/local/lib/libiconv.so.3
/usr/local/lib/libpopt.so.0 /lib/libc.so.7 /lib/libm.so.5
/usr/local/lib/libintl.so.8
-r--r--r-- 1 root wheel 1144500 Oct 5 16:40 /lib/libc.so.7
-r--r--r-- 1 root wheel 32060 Oct 5 16:41 /lib/libcrypt.so.5
-r--r--r-- 1 root wheel 119372 Oct 5 16:41 /lib/libm.so.5
-r--r--r-- 1 root wheel 28424 Oct 5 16:42 /usr/lib/libpam.so.5
-r--r--r-- 1 root wheel 40636 Oct 4 19:59 /usr/local/lib/libexecinfo.so.1
-r--r--r-- 1 root wheel 1050349 Oct 4 19:41 /usr/local/lib/libiconv.so.3
-r--r--r-- 1 root wheel 39876 Oct 4 19:52 /usr/local/lib/libintl.so.8
-rwxr-xr-x 1 root wheel 39623 Oct 4 20:00 /usr/local/lib/libpopt.so.0*
root@nudel samba33> ls -l /usr/local/sbin/smbd
-rwxr-xr-x 1 root wheel 6698391 Oct 4 20:30 /usr/local/sbin/smbd*
root@nudel samba33> file /usr/local/sbin/smbd
/usr/local/sbin/smbd: ELF 32-bit LSB shared object, Intel 80386, version 1
(FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), not
stripped
root@nudel samba33>
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
On Wed, 7 Oct 2009 20:09 +0200, lehmann@ wrote:> Hi, > > I wonder what may have caused this and how should I debug it to find the > source? I Installed samba 3.3.7 on a clean 8.0-RC1 and I upgraded then my > system to the latest RELENG_8. > Since I've not the time searching much longer for the error I'll just go > to upgrade to 3.3.8 (recompile it...) tomorrow but I'm curious what it > may have caused and how I would have been able to find the cause.... > > > root@nudel samba33> /usr/local/sbin/smbd > Abort > Exit 134 > > > root@nudel samba33> gdb > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd". > (gdb) exec /usr/local/sbin/smbd > (gdb) run > Starting program: /usr/local/sbin/smbd > > Program terminated with signal SIGABRT, Aborted. > The program no longer exists. > You can't do that without a process to debug. > (gdb) q > root@nudel samba33> ktrace /usr/local/sbin/smbd > Abort > Exit 134 > root@nudel samba33> kdump > 2605 ktrace RET ktrace 0 > 2605 ktrace CALL execve(0xbfbfed83,0xbfbfec50,0xbfbfec58) > 2605 ktrace NAMI "/usr/local/sbin/smbd" > root@nudel samba33> mount -t procfs /dev/null /proc > root@nudel samba33> truss -fad /usr/local/sbin/smbd > truss: can not get etype: No such process > Exit 2 > root@nudel samba33> dmesg | tail -1 > fxp0: Microcode loaded, int_delay: 1000 usec bundle_max: 6 > root@nudel samba33> ldd /usr/local/sbin/smbd > /usr/local/sbin/smbd: > libcrypt.so.5 => /lib/libcrypt.so.5 (0x281aa000) > libpam.so.5 => /usr/lib/libpam.so.5 (0x281c3000) > libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x281cb000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x288d2000) > libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0x281d6000) > libc.so.7 => /lib/libc.so.7 (0x28091000) > libm.so.5 => /lib/libm.so.5 (0x281df000) > libintl.so.8 => /usr/local/lib/libintl.so.8 (0x289d1000) > root@nudel samba33> ls -l /lib/libcrypt.so.5 /usr/lib/libpam.so.5 /usr/local/lib/libexecinfo.so.1 /usr/local/lib/libiconv.so.3 /usr/local/lib/libpopt.so.0 /lib/libc.so.7 /lib/libm.so.5 /usr/local/lib/libintl.so.8 > -r--r--r-- 1 root wheel 1144500 Oct 5 16:40 /lib/libc.so.7 > -r--r--r-- 1 root wheel 32060 Oct 5 16:41 /lib/libcrypt.so.5 > -r--r--r-- 1 root wheel 119372 Oct 5 16:41 /lib/libm.so.5 > -r--r--r-- 1 root wheel 28424 Oct 5 16:42 /usr/lib/libpam.so.5 > -r--r--r-- 1 root wheel 40636 Oct 4 19:59 /usr/local/lib/libexecinfo.so.1 > -r--r--r-- 1 root wheel 1050349 Oct 4 19:41 /usr/local/lib/libiconv.so.3 > -r--r--r-- 1 root wheel 39876 Oct 4 19:52 /usr/local/lib/libintl.so.8 > -rwxr-xr-x 1 root wheel 39623 Oct 4 20:00 /usr/local/lib/libpopt.so.0* > root@nudel samba33> ls -l /usr/local/sbin/smbd > -rwxr-xr-x 1 root wheel 6698391 Oct 4 20:30 /usr/local/sbin/smbd* > root@nudel samba33> file /usr/local/sbin/smbd > /usr/local/sbin/smbd: ELF 32-bit LSB shared object, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), not stripped > root@nudel samba33> >You need to compile with the following: CONFIGURE_ARGS+= --disable-pie This was caused by your setting of the following: security.bsd.map_at_zero=0 You can reset that value to 1 and you should be alright to operate like normal otherwise you will have to compile samba over again with the above mentioned configure options. Best regards. -- ;; dataix.net!jhell 2048R/89D8547E 2009-09-30 ;; BSD since FreeBSD 4.2 Linux since Slackware 2.1 ;; 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E
On Wednesday 07 October 2009 20:09:59 Oliver Lehmann wrote:> Hi, > > I wonder what may have caused this and how should I debug it to find the > source? I Installed samba 3.3.7 on a clean 8.0-RC1 and I upgraded then my > system to the latest RELENG_8. > Since I've not the time searching much longer for the error I'll just go > to upgrade to 3.3.8 (recompile it...) tomorrow but I'm curious what it > may have caused and how I would have been able to find the cause....Is by any chance security.bsd.map_at_zero set to 0? If it is http://lists.freebsd.org/pipermail/freebsd-stable/2009-October/052235.html has a solution.> > > root@nudel samba33> /usr/local/sbin/smbd > Abort > Exit 134 > > > root@nudel samba33> gdb > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are welcome to change it and/or distribute copies of it under certain > conditions. Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd". > (gdb) exec /usr/local/sbin/smbd > (gdb) run > Starting program: /usr/local/sbin/smbd > > Program terminated with signal SIGABRT, Aborted. > The program no longer exists. > You can't do that without a process to debug. > (gdb) q > root@nudel samba33> ktrace /usr/local/sbin/smbd > Abort > Exit 134 > root@nudel samba33> kdump > 2605 ktrace RET ktrace 0 > 2605 ktrace CALL execve(0xbfbfed83,0xbfbfec50,0xbfbfec58) > 2605 ktrace NAMI "/usr/local/sbin/smbd" > root@nudel samba33> mount -t procfs /dev/null /proc > root@nudel samba33> truss -fad /usr/local/sbin/smbd > truss: can not get etype: No such process > Exit 2 > root@nudel samba33> dmesg | tail -1 > fxp0: Microcode loaded, int_delay: 1000 usec bundle_max: 6 > root@nudel samba33> ldd /usr/local/sbin/smbd > /usr/local/sbin/smbd: > libcrypt.so.5 => /lib/libcrypt.so.5 (0x281aa000) > libpam.so.5 => /usr/lib/libpam.so.5 (0x281c3000) > libexecinfo.so.1 => /usr/local/lib/libexecinfo.so.1 (0x281cb000) > libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x288d2000) > libpopt.so.0 => /usr/local/lib/libpopt.so.0 (0x281d6000) > libc.so.7 => /lib/libc.so.7 (0x28091000) > libm.so.5 => /lib/libm.so.5 (0x281df000) > libintl.so.8 => /usr/local/lib/libintl.so.8 (0x289d1000) > root@nudel samba33> ls -l /lib/libcrypt.so.5 /usr/lib/libpam.so.5 > /usr/local/lib/libexecinfo.so.1 /usr/local/lib/libiconv.so.3 > /usr/local/lib/libpopt.so.0 /lib/libc.so.7 /lib/libm.so.5 > /usr/local/lib/libintl.so.8 -r--r--r-- 1 root wheel 1144500 Oct 5 > 16:40 /lib/libc.so.7 > -r--r--r-- 1 root wheel 32060 Oct 5 16:41 /lib/libcrypt.so.5 > -r--r--r-- 1 root wheel 119372 Oct 5 16:41 /lib/libm.so.5 > -r--r--r-- 1 root wheel 28424 Oct 5 16:42 /usr/lib/libpam.so.5 > -r--r--r-- 1 root wheel 40636 Oct 4 19:59 > /usr/local/lib/libexecinfo.so.1 -r--r--r-- 1 root wheel 1050349 Oct 4 > 19:41 /usr/local/lib/libiconv.so.3 -r--r--r-- 1 root wheel 39876 Oct > 4 19:52 /usr/local/lib/libintl.so.8 -rwxr-xr-x 1 root wheel 39623 Oct > 4 20:00 /usr/local/lib/libpopt.so.0* root@nudel samba33> ls -l > /usr/local/sbin/smbd > -rwxr-xr-x 1 root wheel 6698391 Oct 4 20:30 /usr/local/sbin/smbd* > root@nudel samba33> file /usr/local/sbin/smbd > /usr/local/sbin/smbd: ELF 32-bit LSB shared object, Intel 80386, version 1 > (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 > (800107), not stripped root@nudel samba33> >-- Bernhard
jhell writes: Hi,> This was caused by your setting of the following: > > security.bsd.map_at_zero=0 > > You can reset that value to 1 and you should be alright to operate like > normal otherwise you will have to compile samba over again with the above > mentioned configure options.Yeah this caused the problem. I wonder how I could have find this by myself (google is not counting ;)) I mean, the Abort message is not very verbose what the problem is here.