Re: BUG #3902: Segmentation faults using GSSAPI authentication

From: "Peter Koczan" <pjkoczan(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3902: Segmentation faults using GSSAPI authentication
Date: 2008-01-30 19:02:27
Message-ID: 4544e0330801301102y64156aadx39c2be114ebd04de@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> Hmm, crash inside getenv?? That's weird, that suggests something has
> clobbered the environment-strings data structure.
>
> [ pokes around in code... ] And behold, here's a smoking gun:
> pg_GSS_recvauth() is doing a putenv() with a string that it got from
> palloc(). The active context at this point is PostmasterContext,
> which *is* going to go away soon, leaving a gaping hole in the environ
> list.
>
> I still couldn't reproduce a crash with that knowledge, but I bet that
> if you apply the attached patch, things will get better.

The patch worked like a charm. Thanks, Tom.

Peter

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Dunwoody 2008-01-30 19:36:26 Re: BUG #3913: pg_dump -T option not recognised
Previous Message Kevin Grittner 2008-01-30 18:57:07 Re: BUG #3913: pg_dump -T option not recognised