Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 18 Aug 2016 12:51:23 +0100
From: Steve Osselton <steve.osselton@...smtech.com>
To: musl@...ts.openwall.com
Subject: Duplicate call to pthread_join segvs

Hi,

Am using musl on the latest Alpine Linux release. Although the behaviour of
calling pthread_join on
the same thread is undefined, would be nice if returned an errno as opposed
to a segv:

#include <pthread.h>

void * start_routine (void * arg)
{
}

int main (int argc, char ** argv)
{
  pthread_t id;

  pthread_create (&id, NULL, start_routine, NULL);
  pthread_join (id, NULL);
  pthread_join (id, NULL);
}

Cheers Steve.

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.