Re: [HACKERS] Current CVS tip segfaulting

2004-05-25 Thread Alvaro Herrera
On Fri, Apr 23, 2004 at 05:10:34PM -0400, Alvaro Herrera wrote: > In current (as of a couple hours ago) clean CVS tip sources, without any > of my local changes, I'm getting a postmaster segfault when trying to > connect to a non existant database. Just to follow up, I no longer see this problem

Re: [HACKERS] Current CVS tip segfaulting

2004-05-01 Thread Alvaro Herrera
On Fri, Apr 30, 2004 at 11:36:36PM -0400, Tom Lane wrote: > Alvaro Herrera Munoz <[EMAIL PROTECTED]> writes: > > strace'ing the postmaster suggested me that the dbname string in > > utils/init/postinit.c, the InitPostgres function, is the culprit. > > In fact, if I apply the following patch to tcop

Re: [HACKERS] Current CVS tip segfaulting

2004-04-30 Thread Tom Lane
Alvaro Herrera Munoz <[EMAIL PROTECTED]> writes: > strace'ing the postmaster suggested me that the dbname string in > utils/init/postinit.c, the InitPostgres function, is the culprit. > In fact, if I apply the following patch to tcop/postgres.c the > whole thing stops happening. > else if

Re: [HACKERS] Current CVS tip segfaulting

2004-04-30 Thread Bruce Momjian
I think we fixed it since then. --- Fabien COELHO wrote: > > > > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > > >>> In current (as of a couple hours ago) clean CVS tip sources, without any > > > >>> of my local changes, I

Re: [HACKERS] Current CVS tip segfaulting

2004-04-30 Thread Fabien COELHO
> > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > >>> In current (as of a couple hours ago) clean CVS tip sources, without any > > >>> of my local changes, I'm getting a postmaster segfault when trying to > > >>> connect to a non existant database. > > > > Alvaro, did you figure this out? I've b

Re: [HACKERS] Current CVS tip segfaulting

2004-04-30 Thread Alvaro Herrera
On Fri, Apr 30, 2004 at 12:52:10AM -0400, Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > >>> In current (as of a couple hours ago) clean CVS tip sources, without any > >>> of my local changes, I'm getting a postmaster segfault when trying to > >>> connect to a non existant database.

Re: [HACKERS] Current CVS tip segfaulting

2004-04-29 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: >>> In current (as of a couple hours ago) clean CVS tip sources, without any >>> of my local changes, I'm getting a postmaster segfault when trying to >>> connect to a non existant database. Alvaro, did you figure this out? I've been mostly distracted fo

Re: [HACKERS] Current CVS tip segfaulting

2004-04-24 Thread Alvaro Herrera
On Fri, Apr 23, 2004 at 10:31:46PM -0400, Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > In current (as of a couple hours ago) clean CVS tip sources, without any > > of my local changes, I'm getting a postmaster segfault when trying to > > connect to a non existant database. > >

Re: [HACKERS] Current CVS tip segfaulting

2004-04-24 Thread Alvaro Herrera
On Sat, Apr 24, 2004 at 12:27:14AM -0400, Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> writes: > > It could be a bug, but if it is, it is a different fix than the one I > > did, I think. > > Re-reading Alvaro's message, I wondered if cranking logging up to a > higher-than-default setting wa

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Tom Lane
Alvaro Herrera Munoz <[EMAIL PROTECTED]> writes: > [ bug goes away if ] > ! dbname = argv[optind]; > [becomes] > ! dbname = pstrdup(argv[optind]); Hm, that's interesting. I could believe this would have something to do with overwriting the argv area, but we have not touched an

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > It could be a bug, but if it is, it is a different fix than the one I > did, I think. Re-reading Alvaro's message, I wondered if cranking logging up to a higher-than-default setting was needed to reproduce the bug. A quick experiment in that line didn't

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Bruce Momjian
FYI, I just tried: $ psql lkjasdf psql: FATAL: database "lkjasdf" does not exist (2) cat /u/pg/server.log LOG: database system was shut down at 2004-04-23 15:23:20 EDT LOG: checkpoint record is at 0/9D LOG: redo record is at 0/9D; undo r

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Bruce Momjian
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > In current (as of a couple hours ago) clean CVS tip sources, without any > > of my local changes, I'm getting a postmaster segfault when trying to > > connect to a non existant database. > > Hmm, works for me with this morning's sour

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Bruce Momjian
Alvaro Herrera Munoz wrote: > On Fri, Apr 23, 2004 at 07:00:05PM -0400, Bruce Momjian wrote: > > > > Please recompile with debug symbols and report back the stack trace. > > See the faq on running debug. > > No, I already did that (all my builds are like that anyway and I read > stack traces mor

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > In current (as of a couple hours ago) clean CVS tip sources, without any > of my local changes, I'm getting a postmaster segfault when trying to > connect to a non existant database. Hmm, works for me with this morning's sources. Bruce created a bug of

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Alvaro Herrera Munoz
On Fri, Apr 23, 2004 at 08:38:29PM -0400, Alvaro Herrera Munoz wrote: > On Fri, Apr 23, 2004 at 07:00:05PM -0400, Bruce Momjian wrote: > > > > Please recompile with debug symbols and report back the stack trace. > > See the faq on running debug. > > No, I already did that (all my builds are like

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Alvaro Herrera Munoz
On Fri, Apr 23, 2004 at 07:00:05PM -0400, Bruce Momjian wrote: > > Please recompile with debug symbols and report back the stack trace. > See the faq on running debug. No, I already did that (all my builds are like that anyway and I read stack traces more frequently than I'd like). The "can't r

Re: [HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Bruce Momjian
Please recompile with debug symbols and report back the stack trace. See the faq on running debug. --- Alvaro Herrera wrote: > Hackers, > > In current (as of a couple hours ago) clean CVS tip sources, without any > of my

[HACKERS] Current CVS tip segfaulting

2004-04-23 Thread Alvaro Herrera
Hackers, In current (as of a couple hours ago) clean CVS tip sources, without any of my local changes, I'm getting a postmaster segfault when trying to connect to a non existant database. The generated core file does not seem to contain any useful information. The first time I saw this I managed