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

From: Bernd Walter <ticso_at_cicely7.cicely.de>
Date: Wed, 17 Feb 2010 03:21:53 +0100
On Tue, Feb 16, 2010 at 01:54:30PM -0700, M. Warner Losh wrote:
> In message: <20100216123646.fc741643.stas_at_FreeBSD.org>
>             Stanislav Sedov <stas_at_freebsd.org> writes:
> : On Tue, 16 Feb 2010 19:39:51 +0100
> : Bernd Walter <ticso_at_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.
> 
> I know that 6.x ARM worked with threads no problem.  We had dozens of
> threads in our control programs.
> 
> The one caveat is that I've found bugs in the atomic routines in the
> past, and have had people submit fixes as well.  All of those should
> be in the tree, but since some arrived when I was crazy busy for
> Cisco, they might have fallen on the floor.

At least in my short test threads seem to work:
[70]Please.tell.me.who.am.I# gcc -Wall -pthread -o thread thread.c
5.000u 0.000s 0:15.80 42.7%     39273+42143k 7+0io 0pf+0w
[71]Please.tell.me.who.am.I# ./thread
hello world
hello world from thread
[72]Please.tell.me.who.am.I# cat thread.c 
#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>

void *
mythread(void *arg)
{
        printf("hello world from thread\n");
        return NULL;
}

int
main(int argc, char *argv[])
{
        printf("hello world\n");
        pthread_t id = 0;
        pthread_create(&id, NULL, mythread, NULL);
        sleep(10);
        return 0;
}

-- 
B.Walter <bernd_at_bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Received on Wed Feb 17 2010 - 01:22:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC