Opened 10 years ago

Closed 10 years ago

#4827 closed bug (fixed)

Crash in pthread_create

Reported by: kaliber Owned by: nobody
Priority: normal Milestone: R1
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Attachments (1)

pthread-create-crash.patch (543 bytes) - added by kaliber 10 years ago.
proposed patch

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by kaliber

Attachment: pthread-create-crash.patch added

proposed patch

comment:1 Changed 10 years ago by v

attr is initialized to NULL, therefore with your patch pthread_create returns EINVAL whenever a non-NULL _attr is used as parameter. Even when valid. Right?

comment:2 Changed 10 years ago by v


if (*_attr == NULL)
  return EINVAL;
  attr = *_attr;

is more like it. And looking at the error codes of the rest of the file

if (*_attr == NULL)
  return B_BAD_VALUE;
  attr = *_attr;

would be more consistent.

comment:3 Changed 10 years ago by axeld

Resolution: fixed
Status: newclosed

Thanks! It's fixed in hrev33774.

Note: See TracTickets for help on using tickets.