From: Tom Lane <tgl@sss.pgh.pa.us>
To: Arthur Ward <award@dominionsciences.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: syslog enabled causes random hangs?
Date: Wed, 30 Jul 2003 09:41:29 -0400
Message-ID: <9132.1059572489@sss.pgh.pa.us> (raw)
In-Reply-To: <65117.68.62.130.132.1059521610.squirrel@www.dominionsciences.com>
References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com>
<5212.1059519400@sss.pgh.pa.us>
<65117.68.62.130.132.1059521610.squirrel@www.dominionsciences.com>
"Arthur Ward" <award@dominionsciences.com> writes:
> FWIW, since I already went to the trouble (and for the sake of people
> searching the archives in the future), here's what I was seeing in the
> backtraces after rebuilding this afternoon:
> This process:
> 19763 pts/2 S 0:00 postgres: checkpoint subprocess
> Was stuck here:
> (gdb) bt
> #0 0x402cf077 in semop () from /lib/libc.so.6
> (gdb)
Hmm. It's odd that gdb isn't showing a backtrace any deeper than that
--- are you sure you rebuilt with debug symbols enabled? But anyway,
I'd say this process is just waiting for someone else to release a lock.
Likely the lock holder is this other process:
> And the other:
> 19720 pts/2 S 0:04 postgres: award Trucking [local] UPDATE
> (gdb) bt
> #0 0x4021cec6 in sigsuspend () from /lib/libc.so.6
> #1 0x424b6218 in __pthread_wait_for_restart_signal ()
> from /lib/libpthread.so.0
> #2 0x424b79a0 in __pthread_alt_lock () from /lib/libpthread.so.0
> #3 0x424b4c17 in pthread_mutex_lock () from /lib/libpthread.so.0
> #4 0x402ca21c in vsyslog () from /lib/libc.so.6
> #5 0x402c9d8f in syslog () from /lib/libc.so.6
> #6 0x08150a57 in write_syslog ()
> (gdb)
This seems worthy of an inquiry to the glibc maintainers, or at least
some research to find out what syslog() could block on.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, award@dominionsciences.com
Subject: Re: syslog enabled causes random hangs?
In-Reply-To: <9132.1059572489@sss.pgh.pa.us>
References: <65332.68.62.130.132.1059516822.squirrel@www.dominionsciences.com> <5212.1059519400@sss.pgh.pa.us> <65117.68.62.130.132.1059521610.squirrel@www.dominionsciences.com> <9132.1059572489@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox