Subject: Re: FreeAmp & pthread
To: None <netbsd-help@netbsd.org>
From: Rui-Xiang Guo <rxg@ms25.url.com.tw>
List: netbsd-help
Date: 06/17/2002 19:11:26
> Program received signal SIGSEGV, Segmentation fault.
> 0x8133a5e in _gdbm_findkey (dbf=0x0, key={
> dptr = 0x813c020 "FREEAMP_DATABASE_VERSION", dsize = 25},
> dptr=0xbfbfd1a8, new_hash_val=0xbfbfd1a4) at lib/gdbm/findkey.c:105
> 105 _gdbm_get_bucket (dbf, *new_hash_val>> (31-dbf->header->dir_bits));
> Current language: auto; currently c
Just fixed this problem. (it missed a path.)
But rising another problem -
It seems FreeAmp can't work with pth.
It fall into a infinite loop:
[...]
bool running = false;
while (!running) {
context->gtkLock.Acquire();
running = context->gtkRunning;
context->gtkLock.Release();
usleep(50);
}
[...]
The threads on Linux and FreeBSD have the pair of Acquire()/Release()
but the pth doesn't.
Is it possible to let it work for us?
ps. please CC me, thanks!
-rxg