X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1C829D1C4CB for ; Wed, 30 Jul 2003 13:41:30 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 58176-09 for ; Wed, 30 Jul 2003 10:40:31 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 22D8CD1C4B7 for ; Wed, 30 Jul 2003 10:41:28 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6UDfUQ3009133; Wed, 30 Jul 2003 09:41:30 -0400 (EDT) To: "Arthur Ward" Cc: pgsql-admin@postgresql.org Subject: Re: syslog enabled causes random hangs? 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> Comments: In-reply-to "Arthur Ward" message dated "Tue, 29 Jul 2003 18:33:30 -0500" Date: Wed, 30 Jul 2003 09:41:29 -0400 Message-ID: <9132.1059572489@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/322 X-Sequence-Number: 9662 "Arthur Ward" 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