Re: Unixware 714 pthreads

From: ohp(at)pyrenet(dot)fr
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Unixware 714 pthreads
Date: 2004-10-27 20:31:44
Message-ID: Pine.UW2.4.53.0410272225340.12665@server.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 27 Oct 2004, Bruce Momjian wrote:

> Date: Wed, 27 Oct 2004 14:53:26 -0400 (EDT)
> From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
> To: ohp(at)pyrenet(dot)fr
> Cc: pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [HACKERS] Unixware 714 pthreads
>
> ohp(at)pyrenet(dot)fr wrote:
> > Dear Bruce,
> >
> > Thanks for your reply, I was desperate I did'nt get one!
> >
> > As I said, I'm quite sure there is a bug in pthread library, Before saying
> > this to SCO, I have to prove it. Postgresql is the way to prove it!
> >
> > What I need is to know where to start from (I'd like to put elogs where
> > statement_timeout is processed to see what really happens and why it
> > doesn't cancel the query).
> >
> > Could someone tell me where to look for? If anyone is interessed in
> > debugging this issue with me, I can set up an account on a test unixware
> > machine.
>
> My guess is that there is some problem with delivering alarm signals
> because that is how the timeout code works.
>
That's my guess too. I've traked that to src/backend/storage/lmrg/proc.c
where kill is called.

Unixware doc says that kill to self_proc id delivers the signal to the
thread that called it.

For some reason, this backend has 2 threads (can't figure why) and INMHO
kill should be pthread_kill.

I wanted to try but found no way to find the other thread_id.

I need the help of postgresql/thread guru here.

Many thanks
>

--
Olivier PRENANT Tel: +33-5-61-50-97-00 (Work)
6, Chemin d'Harraud Turrou +33-5-61-50-97-01 (Fax)
31190 AUTERIVE +33-6-07-63-80-64 (GSM)
FRANCE Email: ohp(at)pyrenet(dot)fr
------------------------------------------------------------------------------
Make your life a dream, make your dream a reality. (St Exupery)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2004-10-27 21:04:53 Re: plans for bitmap indexes?
Previous Message Tom Lane 2004-10-27 20:21:53 Re: 8.0b4: COMMIT outside of a transaction echoes ROLLBACK