Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Bernd Walter
On Fri, Feb 19, 2010 at 05:12:06AM +0100, Bernd Walter wrote: On Thu, Feb 18, 2010 at 08:47:39PM -0700, M. Warner Losh wrote: In message: 20100219033000.gz43...@cicely7.cicely.de Bernd Walter ti...@cicely7.cicely.de writes: : Warner - it names you in the copyright, so very

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Grzegorz Bernacki
Bernd Walter wrote: On Fri, Feb 19, 2010 at 05:12:06AM +0100, Bernd Walter wrote: On Thu, Feb 18, 2010 at 08:47:39PM -0700, M. Warner Losh wrote: In message: 20100219033000.gz43...@cicely7.cicely.de Bernd Walter ti...@cicely7.cicely.de writes: : Warner - it names you in the

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Bernd Walter
On Fri, Feb 19, 2010 at 01:29:03PM +0100, Grzegorz Bernacki wrote: Bernd Walter wrote: On Fri, Feb 19, 2010 at 05:12:06AM +0100, Bernd Walter wrote: On Thu, Feb 18, 2010 at 08:47:39PM -0700, M. Warner Losh wrote: In message: 20100219033000.gz43...@cicely7.cicely.de Bernd Walter

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Grzegorz Bernacki
Bernd Walter wrote: On Fri, Feb 19, 2010 at 01:29:03PM +0100, Grzegorz Bernacki wrote: Bernd Walter wrote: On Fri, Feb 19, 2010 at 05:12:06AM +0100, Bernd Walter wrote: On Thu, Feb 18, 2010 at 08:47:39PM -0700, M. Warner Losh wrote: In message: 20100219033000.gz43...@cicely7.cicely.de

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Mark Tinguely
Some time ago we changed an address of RAS. Probably that's the problem. Please try with patch below. grzesiek Good job. IMO, ARM atomic.h should have cmpxchg and the other standard atomic routines so applications don't roll their own and they become stale. This will help application

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Bernd Walter
On Fri, Feb 19, 2010 at 08:13:15AM -0600, Mark Tinguely wrote: Some time ago we changed an address of RAS. Probably that's the problem. Please try with patch below. grzesiek Good job. IMO, ARM atomic.h should have cmpxchg and the other standard atomic routines so

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Grzegorz Bernacki
Mark Tinguely wrote: Some time ago we changed an address of RAS. Probably that's the problem. Please try with patch below. grzesiek Good job. IMO, ARM atomic.h should have cmpxchg and the other standard atomic routines so applications don't roll their own and they become stale. Yes, I

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Bernd Walter
On Fri, Feb 19, 2010 at 01:29:03PM +0100, Grzegorz Bernacki wrote: Hi, Some time ago we changed an address of RAS. Probably that's the problem. Please try with patch below. grzesiek diff --git a/contrib/bind9/lib/isc/arm/include/isc/atomic.h b/contrib/bind9/lib/ index

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Olivier Houchard
Strange: Not so much, the first values for ras_start/end were chosen to be immediate values, so you could just mov them, but the new one aren't. Try something like the patch attached instead (untested, I have no arm setup here, but you'll get the idea). Regards, Olivier Index:

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-19 Thread Bernd Walter
On Fri, Feb 19, 2010 at 05:49:59PM +0100, Olivier Houchard wrote: Strange: Not so much, the first values for ras_start/end were chosen to be immediate values, so you could just mov them, but the new one aren't. Try something like the patch attached instead (untested, I have no arm

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Bernd Walter
On Tue, Feb 16, 2010 at 07:39:51PM +0100, Bernd Walter wrote: On Mon, Feb 15, 2010 at 10:39:07PM +0100, Bernd Walter wrote: [55]Please.tell.me.who.am.I# gdb /usr/sbin/named named.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Kostik Belousov
On Thu, Feb 18, 2010 at 01:49:07PM +0100, Bernd Walter wrote: On Tue, Feb 16, 2010 at 07:39:51PM +0100, Bernd Walter wrote: On Mon, Feb 15, 2010 at 10:39:07PM +0100, Bernd Walter wrote: [55]Please.tell.me.who.am.I# gdb /usr/sbin/named named.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Bernd Walter
On Thu, Feb 18, 2010 at 03:10:10PM +0200, Kostik Belousov wrote: On Thu, Feb 18, 2010 at 01:49:07PM +0100, Bernd Walter wrote: On Tue, Feb 16, 2010 at 07:39:51PM +0100, Bernd Walter wrote: On Mon, Feb 15, 2010 at 10:39:07PM +0100, Bernd Walter wrote: [55]Please.tell.me.who.am.I# gdb

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Bernd Walter
On Thu, Feb 18, 2010 at 03:10:10PM +0200, Kostik Belousov wrote: On Thu, Feb 18, 2010 at 01:49:07PM +0100, Bernd Walter wrote: On Tue, Feb 16, 2010 at 07:39:51PM +0100, Bernd Walter wrote: On Mon, Feb 15, 2010 at 10:39:07PM +0100, Bernd Walter wrote: [55]Please.tell.me.who.am.I# gdb

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread M. Warner Losh
In message: 20100219031200.gy43...@cicely7.cicely.de Bernd Walter ti...@cicely7.cicely.de writes: : On Thu, Feb 18, 2010 at 03:10:10PM +0200, Kostik Belousov wrote: : On Thu, Feb 18, 2010 at 01:49:07PM +0100, Bernd Walter wrote: : On Tue, Feb 16, 2010 at 07:39:51PM +0100, Bernd

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Bernd Walter
On Fri, Feb 19, 2010 at 04:12:00AM +0100, Bernd Walter wrote: On Thu, Feb 18, 2010 at 03:10:10PM +0200, Kostik Belousov wrote: On Thu, Feb 18, 2010 at 01:49:07PM +0100, Bernd Walter wrote: On Tue, Feb 16, 2010 at 07:39:51PM +0100, Bernd Walter wrote: On Mon, Feb 15, 2010 at 10:39:07PM

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Bernd Walter
On Fri, Feb 19, 2010 at 04:30:00AM +0100, Bernd Walter wrote: On Fri, Feb 19, 2010 at 04:12:00AM +0100, Bernd Walter wrote: On Thu, Feb 18, 2010 at 03:10:10PM +0200, Kostik Belousov wrote: On Thu, Feb 18, 2010 at 01:49:07PM +0100, Bernd Walter wrote: On Tue, Feb 16, 2010 at 07:39:51PM

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Bernd Walter
On Thu, Feb 18, 2010 at 08:40:12PM -0700, M. Warner Losh wrote: In message: 20100219033000.gz43...@cicely7.cicely.de Bernd Walter ti...@cicely7.cicely.de writes: : On Fri, Feb 19, 2010 at 04:12:00AM +0100, Bernd Walter wrote: : On Thu, Feb 18, 2010 at 03:10:10PM +0200, Kostik

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread M. Warner Losh
In message: 20100219033000.gz43...@cicely7.cicely.de Bernd Walter ti...@cicely7.cicely.de writes: : Warner - it names you in the copyright, so very likely you know this code. : I will build a debug version of bind, but as usual it will take some : time... Make sure that the code

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-18 Thread Bernd Walter
On Thu, Feb 18, 2010 at 08:47:39PM -0700, M. Warner Losh wrote: In message: 20100219033000.gz43...@cicely7.cicely.de Bernd Walter ti...@cicely7.cicely.de writes: : Warner - it names you in the copyright, so very likely you know this code. : I will build a debug version of bind, but

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Bernd Walter
On Mon, Feb 15, 2010 at 10:39:07PM +0100, Bernd Walter wrote: [62]# uname -a FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r203927: Mon Feb 15 19:12:36 CET 2010 ti...@cicely14.cicely.de:/data/builder/arm-current/head/sys/arm/compile/FBOX arm [64]# /etc/rc.d/named start Starting named.

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Doug Barton
On 2/16/2010 10:39 AM, Bernd Walter wrote: [55]Please.tell.me.who.am.I# gdb /usr/sbin/named named.core 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

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Bernd Walter
On Tue, Feb 16, 2010 at 10:45:14AM -0800, Doug Barton wrote: On 2/16/2010 10:39 AM, Bernd Walter wrote: [55]Please.tell.me.who.am.I# gdb /usr/sbin/named named.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Doug Barton
On 2/16/2010 10:56 AM, Bernd Walter wrote: Wow, that was fast. :) It sure looks like that's the problem. Can you try compiling ports/dns/bind96 without threads and see if that works for you? If it does then it would be good to follow up on freebsd-...@freebsd.org and see if the problem can be

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Stanislav Sedov
On Tue, 16 Feb 2010 19:39:51 +0100 Bernd Walter ti...@cicely7.cicely.de mentioned: Do we have a general threading problem on ARM? I don't think so. I used a lot of threaded applications on arm, and they worked fine. However, this might be some obscure bug. -- Stanislav Sedov ST4096-RIPE

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread M. Warner Losh
In message: 20100216123646.fc741643.s...@freebsd.org Stanislav Sedov s...@freebsd.org writes: : On Tue, 16 Feb 2010 19:39:51 +0100 : Bernd Walter ti...@cicely7.cicely.de mentioned: : : : Do we have a general threading problem on ARM? : : : I don't think so. I used a lot of

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Bernd Walter
On Tue, Feb 16, 2010 at 01:54:30PM -0700, M. Warner Losh wrote: In message: 20100216123646.fc741643.s...@freebsd.org Stanislav Sedov s...@freebsd.org writes: : On Tue, 16 Feb 2010 19:39:51 +0100 : Bernd Walter ti...@cicely7.cicely.de mentioned: : : : Do we have a general

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Bernd Walter
On Tue, Feb 16, 2010 at 11:02:24AM -0800, Doug Barton wrote: On 2/16/2010 10:56 AM, Bernd Walter wrote: Wow, that was fast. :) It sure looks like that's the problem. Can you try compiling ports/dns/bind96 without threads and see if that works for you? If it does then it would be good to

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Bernd Walter
On Tue, Feb 16, 2010 at 12:36:46PM -0800, Stanislav Sedov wrote: On Tue, 16 Feb 2010 19:39:51 +0100 Bernd Walter ti...@cicely7.cicely.de mentioned: Do we have a general threading problem on ARM? I don't think so. I used a lot of threaded applications on arm, and they worked fine.

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Bernd Walter
On Tue, Feb 16, 2010 at 01:54:30PM -0700, M. Warner Losh wrote: In message: 20100216123646.fc741643.s...@freebsd.org Stanislav Sedov s...@freebsd.org writes: : On Tue, 16 Feb 2010 19:39:51 +0100 : Bernd Walter ti...@cicely7.cicely.de mentioned: : : : Do we have a general

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Bernd Walter
On Tue, Feb 16, 2010 at 10:13:27PM +0100, Bernd Walter wrote: On Tue, Feb 16, 2010 at 11:02:24AM -0800, Doug Barton wrote: On 2/16/2010 10:56 AM, Bernd Walter wrote: Wow, that was fast. :) It sure looks like that's the problem. Can you try compiling ports/dns/bind96 without threads and

Re: bind fails with sig11 on start / pthread failure on ARM?

2010-02-16 Thread Doug Barton
On 2/16/2010 6:30 PM, Bernd Walter wrote: Mmm - the port (without thread and without XML) works fine: I'm glad to here that you got something that works. Unfortunately when you start talking about threads on ARM you've pole vaulted outside of my competency area. If the folks on the -arm list