On Tue, Apr 2, 2013 at 08:48:53PM -0400, Bruce Momjian wrote:
> I found that psql will crash if given a PSQLRC value containing a tilde:
>
> $ PSQLRC="~/x" psql test
> *** glibc detected *** psql: free(): invalid pointer:
> 0x7fffb7c933ec ***
>
> This is on Debian Squeeze 6.0.7.
I found that psql will crash if given a PSQLRC value containing a tilde:
$ PSQLRC="~/x" psql test
*** glibc detected *** psql: free(): invalid pointer:
0x7fffb7c933ec ***
This is on Debian Squeeze 6.0.7. The fix is to pstrdup() the value
returned by getenv(), so it can be fr