Re: samba - SIGABRT

2009-10-08 Thread Oliver Lehmann
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.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: samba - SIGABRT

2009-10-08 Thread Robert Watson


On Thu, 8 Oct 2009, Oliver Lehmann wrote:

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


Hi Oliver--

While it's probably a bug that the Samba port compiles --pie, it's also a bug 
that our linking bits aren't handling PIE properly either.  The goal is to fix 
PIE with the non-NULL mapping feature in the immediate future, so with any 
luck the abort message won't matter too much longer.


Robert
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: samba - SIGABRT

2009-10-08 Thread Daniel Eischen

On Thu, 8 Oct 2009, Robert Watson wrote:



On Thu, 8 Oct 2009, Oliver Lehmann wrote:

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


Hi Oliver--

While it's probably a bug that the Samba port compiles --pie, it's also a bug 
that our linking bits aren't handling PIE properly either.  The goal is to 
fix PIE with the non-NULL mapping feature in the immediate future, so with 
any luck the abort message won't matter too much longer.


How about reverting this change or defaulting security.bsd.map_at_zero=1
until either ports can handle this properly or our -pie is fixed, and
we've had at least a release with pre-built packages that don't have
the problem?

--
DE
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: samba - SIGABRT

2009-10-08 Thread Robert Watson


On Thu, 8 Oct 2009, Daniel Eischen wrote:

While it's probably a bug that the Samba port compiles --pie, it's also a 
bug that our linking bits aren't handling PIE properly either.  The goal is 
to fix PIE with the non-NULL mapping feature in the immediate future, so 
with any luck the abort message won't matter too much longer.


How about reverting this change or defaulting security.bsd.map_at_zero=1 
until either ports can handle this properly or our -pie is fixed, and we've 
had at least a release with pre-built packages that don't have the problem?


Sorry, I should have been more clear: the problem is with run-time linking, 
not compile-time linking.  Kostik has just posted patches for the run-time 
linker to current@, which should allow the existing binaries to work with 
map_at_zero=0.  If we aren't able to get the run-time linker fixes into 8.0, 
we will definitely revert the default change for map_at_zero so that it is 
enabled.  However, since there is a significant security benefit to shipping 
with map_at_zero disabled, I think we should try hard to ship 8.0 with a fixed 
rtld.


Robert
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


samba - SIGABRT

2009-10-07 Thread Oliver Lehmann
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


r...@nudel samba33 /usr/local/sbin/smbd
Abort
Exit 134


r...@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   
r...@nudel samba33 ktrace /usr/local/sbin/smbd
Abort
Exit 134
r...@nudel samba33 kdump
  2605 ktrace   RET   ktrace 0
  2605 ktrace   CALL  execve(0xbfbfed83,0xbfbfec50,0xbfbfec58)
  2605 ktrace   NAMI  /usr/local/sbin/smbd
r...@nudel samba33 mount -t procfs /dev/null /proc
r...@nudel samba33 truss -fad /usr/local/sbin/smbd
truss: can not get etype: No such process
Exit 2
r...@nudel samba33 dmesg | tail -1
fxp0: Microcode loaded, int_delay: 1000 usec  bundle_max: 6
r...@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)
r...@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  wheel32060 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  wheel28424 Oct  5 16:42 /usr/lib/libpam.so.5
-r--r--r--  1 root  wheel40636 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  wheel39876 Oct  4 19:52 /usr/local/lib/libintl.so.8
-rwxr-xr-x  1 root  wheel39623 Oct  4 20:00 /usr/local/lib/libpopt.so.0*
r...@nudel samba33 ls -l /usr/local/sbin/smbd
-rwxr-xr-x  1 root  wheel  6698391 Oct  4 20:30 /usr/local/sbin/smbd*
r...@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
r...@nudel samba33 

-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: samba - SIGABRT

2009-10-07 Thread jhell


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


r...@nudel samba33 /usr/local/sbin/smbd
Abort
Exit 134


r...@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
r...@nudel samba33 ktrace /usr/local/sbin/smbd
Abort
Exit 134
r...@nudel samba33 kdump
 2605 ktrace   RET   ktrace 0
 2605 ktrace   CALL  execve(0xbfbfed83,0xbfbfec50,0xbfbfec58)
 2605 ktrace   NAMI  /usr/local/sbin/smbd
r...@nudel samba33 mount -t procfs /dev/null /proc
r...@nudel samba33 truss -fad /usr/local/sbin/smbd
truss: can not get etype: No such process
Exit 2
r...@nudel samba33 dmesg | tail -1
fxp0: Microcode loaded, int_delay: 1000 usec  bundle_max: 6
r...@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)
r...@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  wheel32060 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  wheel28424 Oct  5 16:42 /usr/lib/libpam.so.5
-r--r--r--  1 root  wheel40636 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  wheel39876 Oct  4 19:52 /usr/local/lib/libintl.so.8
-rwxr-xr-x  1 root  wheel39623 Oct  4 20:00 /usr/local/lib/libpopt.so.0*
r...@nudel samba33 ls -l /usr/local/sbin/smbd
-rwxr-xr-x  1 root  wheel  6698391 Oct  4 20:30 /usr/local/sbin/smbd*
r...@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
r...@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.2Linux since Slackware 2.1
 ;; 85EF E26B 07BB 3777 76BE  B12A 9057 8789 89D8 547E

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: samba - SIGABRT

2009-10-07 Thread Bernhard Schmidt
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.


 
 
 r...@nudel samba33 /usr/local/sbin/smbd
 Abort
 Exit 134
 
 
 r...@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
 r...@nudel samba33 ktrace /usr/local/sbin/smbd
 Abort
 Exit 134
 r...@nudel samba33 kdump
   2605 ktrace   RET   ktrace 0
   2605 ktrace   CALL  execve(0xbfbfed83,0xbfbfec50,0xbfbfec58)
   2605 ktrace   NAMI  /usr/local/sbin/smbd
 r...@nudel samba33 mount -t procfs /dev/null /proc
 r...@nudel samba33 truss -fad /usr/local/sbin/smbd
 truss: can not get etype: No such process
 Exit 2
 r...@nudel samba33 dmesg | tail -1
 fxp0: Microcode loaded, int_delay: 1000 usec  bundle_max: 6
 r...@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)
 r...@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  wheel32060 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  wheel28424 Oct  5 16:42 /usr/lib/libpam.so.5
 -r--r--r--  1 root  wheel40636 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  wheel39876 Oct 
  4 19:52 /usr/local/lib/libintl.so.8 -rwxr-xr-x  1 root  wheel39623 Oct
   4 20:00 /usr/local/lib/libpopt.so.0* r...@nudel samba33 ls -l
  /usr/local/sbin/smbd
 -rwxr-xr-x  1 root  wheel  6698391 Oct  4 20:30 /usr/local/sbin/smbd*
 r...@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 r...@nudel samba33
 

-- 
Bernhard
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org