Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group