Re: BUG #3866: Segfault during table update when using convert_from()

From: Andrew Gilligan <andy(at)tcpd(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3866: Segfault during table update when using convert_from()
Date: 2008-01-10 00:17:03
Message-ID: CC705AD1-17A3-4013-A68E-E3EED572DDA6@tcpd.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


On 9 Jan 2008, at 23:45, Tom Lane wrote:

> "Andrew Gilligan" <andy(at)tcpd(dot)net> writes:
>> It seems there exists a bug in the way character set conversion
>> is handled in some circumstances.
>
> Seems to be the bogus pfree() in pg_convert_from() that's causing
> the problem :-(. Take that out and you should be OK.

That's exactly it, thanks... Everything seems fine now.

The fix is trivial, so not sure if a patch is even warranted, but
I've attached the changes just in case.

Best regards,
-Andy

Attachment Content-Type Size
mbutils.diff application/octet-stream 472 bytes
unknown_filename text/plain 1 byte

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2008-01-10 00:41:14 Re: BUG #3860: xpath crashes backend when is querying xmlagg result
Previous Message Tom Lane 2008-01-09 23:45:13 Re: BUG #3866: Segfault during table update when using convert_from()