Project

General

Profile

Bug #980

pthread_create() cause crash if destroyed pthread_attr_t passed

Added by Dmitry Moskalchuk almost 4 years ago. Updated about 3 years ago.

Status:
Open
Priority:
Normal
Category:
libcrystax
Target version:
Start date:
06/21/2015
Due date:
% Done:

0%

Estimated time:
CPU Architecture:
Host OS:
Toolchain:
Android version:
CrystaX Version:

Description

pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_destroy(&attr);
pthread_create(&tid, &attr, func, NULL); /* <= This line cause crash */

This is wrong behavior; pthread_create() should return EINVAL rather than crash.

History

#1 Updated by Dmitry Moskalchuk almost 4 years ago

When fixed, don't forget to fix @$OPENPTS/conformance/interfaces/pthread_attr_destroy/1-1.c@

#2 Updated by Dmitry Moskalchuk over 3 years ago

  • Target version changed from 10.3.0 to 11.0.0

#3 Updated by Dmitry Moskalchuk about 3 years ago

  • Description updated (diff)
  • CrystaX Version set to 10.3.1

#4 Updated by Dmitry Moskalchuk about 3 years ago

  • Priority changed from High to Normal

Also available in: Atom PDF