pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thom Brown <thom@linux.com>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: Server crash with certain encodings
Date: Sun, 28 Feb 2016 22:31:27 -0500
Message-ID: <20894.1456716687@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA-aLv7fdhiFOMenRO3AxfUE1H=8zokW=_UcGKRy5NuXaqUFqQ@mail.gmail.com>
References: <CAA-aLv7fdhiFOMenRO3AxfUE1H=8zokW=_UcGKRy5NuXaqUFqQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Thom Brown <thom@linux.com> writes:
> I can crash the server in 9.4, 9.5 and 9.6 when doing the following on
> Linux:

Hm, would you confirm that you get a stack trace like this:

#0  0x000000397ee32625 in raise () from /lib64/libc.so.6
#1  0x000000397ee33e05 in abort () from /lib64/libc.so.6
#2  0x000000397ee70537 in __libc_message () from /lib64/libc.so.6
#3  0x000000397ee75f4e in malloc_printerr () from /lib64/libc.so.6
#4  0x000000397ee78cad in _int_free () from /lib64/libc.so.6
#5  0x000000000076ce70 in free_struct_lconv () at pg_locale.c:394
#6  PGLC_localeconv () at pg_locale.c:460
#7  0x0000000000717cd5 in cash_in (fcinfo=<value optimized out>) at cash.c:112

Looks like we're getting confused about allocation/freeing of lconv
data --- I've not dug into it more closely than to reproduce the crash.

Aside from that, though, it's not really clear to me that it's sensible to
allow an lc_monetary (or lc_anything) setting that specifies an encoding
different from the database encoding.  Should your example have failed at
the SET lc_monetary step?  If not, what would you expect that to mean?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)  latest in thread

Message-ID: <20894.1456716687@sss.pgh.pa.us>
Permalink:  ../20894.1456716687@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20894.1456716687@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thom@linux.com
  Subject: Re: Server crash with certain encodings
  In-Reply-To: <20894.1456716687@sss.pgh.pa.us>
  References: <CAA-aLv7fdhiFOMenRO3AxfUE1H=8zokW=_UcGKRy5NuXaqUFqQ@mail.gmail.com> <20894.1456716687@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox