Subject: Re: pthread assertion failure
To: None <current-users@NetBSD.org>
From: Bang Jun-Young <junyoung@NetBSD.org>
List: current-users
Date: 01/08/2004 23:26:09
On Thu, Jan 08, 2004 at 10:11:52AM +0100, Christian Biere wrote:
> Min Sik Kim wrote:
> > I compiled this with the following command.
> > 
> >   cc -pthread -o terminal terminal.c
> 
> What happens if you compile it with
> 
>   cc -D_REENTRANT -o terminal terminal.c -lpthread
> 
> and have you tried whether "#include <pthread.h>" makes a difference?

I could reproduce this bug; neither -D_REENTRANT nor "#include <pthread.h>"
did help.

> 
>  
> > const int N_CHARSETS = 32;
> > static char *charsets[] = {
> 
> This looks like a bad idea.

He, but the bad thing happens even before charsets[i] goes out of
boundary.

Jun-Young

-- 
Bang Jun-Young <junyoung@NetBSD.org>