[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#923802: Acknowledgement (pthread: dead-lock while pthread_cond_destroy())



Hi,

This happens as you call pthread_cond_destroy() twice on the very same
cond variable.

Just attached a file to reproduce.

Bests,
Joël

On Tue, Mar 5, 2019 at 4:27 PM Debian Bug Tracking System
<owner@bugs.debian.org> wrote:
>
> Thank you for filing a new Bug report with Debian.
>
> You can follow progress on this Bug here: 923802: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923802.
>
> This is an automatically generated reply to let you know your message
> has been received.
>
> Your message is being forwarded to the package maintainers and other
> interested parties for their attention; they will reply in due course.
>
> Your message has been sent to the package maintainer(s):
>  GNU Libc Maintainers <debian-glibc@lists.debian.org>
>
> If you wish to submit further information on this problem, please
> send it to 923802@bugs.debian.org.
>
> Please do not send mail to owner@bugs.debian.org unless you wish
> to report a problem with the Bug-tracking system.
>
> --
> 923802: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923802
> Debian Bug Tracking System
> Contact owner@bugs.debian.org with problems
#include <stdlib.h>

#include <pthread.h>

int
main(int argc, char **argv)
{
  pthread_cond_t *cond;

  cond = (pthread_cond_t *) malloc(sizeof(pthread_cond_t));

  pthread_cond_init(cond, NULL);

  pthread_cond_destroy(cond);
  pthread_cond_destroy(cond);

  return(0);
}

Reply to: