From: Joe Conway <mail@joeconway.com>
To: Matthew T. O'Connor <matthew@zeut.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgreSQL.org>
Cc: Josh Berkus <josh@agliodbs.com>
Subject: Re: [PERFORM] rapid degradation after postmaster restart
Date: Mon, 15 Mar 2004 23:11:35 -0800
Message-ID: <4056A8A7.4060208@joeconway.com> (raw)
In-Reply-To: <4056916B.5090204@zeut.net>
References: <4052661D.5060505@joeconway.com>
<14884.1079150555@sss.pgh.pa.us>
<4055F343.6070600@joeconway.com>
<405614CA.5030101@zeut.net>
<405689A4.4080406@joeconway.com>
<4056916B.5090204@zeut.net>
[moving to hackers]
Matthew T. O'Connor wrote:
> Good luck, I hope you can get permission. Would e nice to fix this
> little crash.
I went ahead and recompiled with --enable-debug, and get this trace:
#0 0xfefb3218 in strlen () from /usr/lib/libc.so.1
#1 0xff006520 in _doprnt () from /usr/lib/libc.so.1
#2 0xff0082e8 in sprintf () from /usr/lib/libc.so.1
#3 0x1213c in print_db_info (dbi=0x28980, print_tbl_list=0)
at pg_autovacuum.c:681
#4 0x120fc in print_db_list (db_list=0x25f80, print_table_lists=0)
at pg_autovacuum.c:673
#5 0x11b44 in init_db_list () at pg_autovacuum.c:416
#6 0x12c58 in main (argc=154384, argv=0xff043a54) at pg_autovacuum.c:1007
Line 681 is this:
sprintf(logbuffer, "dbname: %s Username %s Passwd %s",
dbi->dbname, dbi->username, dbi->password);
It appears that dbi->password is a null pointer:
(gdb) print dbi->dbname
$1 = 0x25f68 "template1"
(gdb) print dbi->username
$2 = 0x25b20 "dba"
(gdb) print dbi->password
$3 = 0x0
Problem is, since this is a development machine, they have everything
set to "trust" in pg_hba.conf. I added a "-P foo" to the command line,
and it starts up fine now.
HTH,
Joe
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: mail@joeconway.com, matthew@zeut.net, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org, josh@agliodbs.com
Subject: Re: [PERFORM] rapid degradation after postmaster restart
In-Reply-To: <4056A8A7.4060208@joeconway.com>
* 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