From: | "Leandro Medina" <lmedina(at)ingdesi(dot)com> |
---|---|
To: | |
Cc: | <pgsql-ports(at)postgresql(dot)org> |
Subject: | lock in qnx rtp. |
Date: | 2001-05-23 20:09:42 |
Message-ID: | 009001c0e3c4$4e1d6ba0$8f01010a@odi2001 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
Hello,
I'm porting posgresql for QNX RTP. Compiling is ok, but
"/usr/local/pqsql/bin/initdb -D data" command say:
FATAL: s_lock(0x081e6029) at spin.c:162, stuck spinlock. Aborting.
FATAL: s_lock(0x081e6029) at spin.c:162, stuck spinlock. Aborting.
sed: couldn't write 86 items to {standard output}: Broken pipe
Abort (core dumped)
initdb failed.
Data directory dat will not be removed at user's reques
I review sem_'s family functions and use de QNX sem function, except
S_LOCK_FREE:
It is in src/include/storing/s_lock.h
#define S_LOCK_FREE(lock) s_lock_free_x86(lock)
#define TAS(lock) (sem_trywait((lock)) < 0)
#define S_UNLOCK(lock) sem_post((lock))
#define S_INIT_LOCK(lock) sem_init((lock), 1, 1)
It is in src/backend/port/x86/sem.c and make for my
int
s_lock_free_x86(sem_t *lock) {
int value;
sem_getvalue(lock, &value);
return value;
};
The testing program "s_lock_test" (is inside in s_lock.c) working properly.
Any idea. Sorry for my english.
Thanks,
Leandro Medina
(Ingdesi Group - R&D)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-05-23 20:30:25 | Re: lock in qnx rtp. |
Previous Message | Tegge, Bernd | 2001-05-23 10:46:30 | Re: Re: pgsql + qnx |