"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: tog: pthread_cond_destroy: Invalid argument
To:
gameoftrees@openbsd.org
Date:
Thu, 12 Nov 2020 11:47:36 -0000

Download raw body.

Thread
On 2020-11-11, Sebastien Marie <semarie@online.fr> wrote:

> when ^L is hitted, stop_log_thread() is called, and it is calling
> pthread_cond_destroy(&s->thread_args.need_commits).
>
> I quickly look at the code, and it seems pthread_cond_destroy() could
> be called multiple time without corresponding pthread_cond_init().

stop_log_thread() is called again from close_log_view(), which in
turn is called when the old view is replaced with the new view.
Backspace, ^L, 'B' all suffer from this problem in the log view.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de