From: | Pasi Eronen <pe(at)iki(dot)fi> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
Cc: | Peter Geoghegan <pg(at)bowt(dot)ie>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #17362: Error "could not find block containing chunk" when using index with icu collation on CentOS 7 |
Date: | 2022-02-02 14:39:29 |
Message-ID: | CAGtiUvnysMFJqv0NLtJKu-ww1QBid76nV7TBqKn=rGDQQ1VFow@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi Peter E & Peter G,
Although I have not touched PostgreSQL internals before, I took a stab
at debugging this, and found something that looks strange (and might
be related):
In varlena.c, ssup_extra->buf1 and buf2 are initialized to 1024-byte
buffers, allocated from the ssup->ssup_cxt memory context. That
strange-looking test string in my bug report just happens to be 1044
bytes, so a larger buffer is needed at some point.
If growing the buffer happens in "varstrfastcmp_locale", it uses
MemoryContextAlloc(ssup->ssup_cxt, ...). But if growing the buffer
happens in "varstr_abbrev_convert", it just calls "palloc" - and
apparently the current memory context is not ssup_cxt at this point
(at least according to debugging printf's I added).
Might this be causing the problem? (changing the palloc to
MemoryContextAlloc certainly makes the problem go away, but on the
other hand, it looks like neither memory context has been deleted yet
when the error occurs, so it shouldn't really matter...?)
In other news, I tried tweaking the test data strings (mainly
replacing "x"s with other ascii characters), and accidentally found a
version that causes a reproducible segfault (instead of "could not
find block containing chunk" error). I've included the base64-encoded
dump below.
Best regards,
Pasi
base64 -d <<EOF | gunzip > /tmp/bad_strings_data.sql
H4sIAAAAAAAAA+ydS85lyXWd2/eOoqCWLDioeD9gWQBJ60WKIkFSBAQ1jHhShEmKECkBGoF6bhvq
WLYnYMAdtzUUT8Aegr91s7IqX/d/ZRZtQEyQRVZmnjhxIvZee60dO/b/ze9+7y8++8Xfjp/+ZH5t
9PXvf/mrv/nJz3/8y89++yfrX3/2d/2nf7v/1Wd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ter Eisentraut
<peter(dot)eisentraut(at)enterprisedb(dot)com> wrote:
>
>
> On 13.01.22 16:12, Peter Eisentraut wrote:
> > On 11.01.22 23:19, Peter Geoghegan wrote:
> >> On Tue, Jan 11, 2022 at 3:16 AM PG Bug reporting form
> >> <noreply(at)postgresql(dot)org> wrote:
> >>> When I query a table containing certain Unicode data, using an index
> >>> that
> >>> has certain collation, I get error message "could not find block
> >>> containing
> >>> chunk". This is fully reproducible on CentOS 7 using the official
> >>> RPM. (I
> >>> could not reproduce this on Oracle Linux 8, though):
> >>
> >> It looks like you're probably not using utf8 as your database
> >> encoding, based on the stacktrace -- even though I would expect that
> >> on your ICU version. What does "show server_encoding;" show you when
> >> run from psql?
> >>
> >> My guess is that you can temporarily work around the bug (which looks
> >> like a bug in our !HAVE_UCOL_STRCOLLUTF8 ICU support) by making sure
> >> to use UTF-8 as the server encoding.
> >
> > It looks like the reporter's system is rhel7, which does not have
> > HAVE_UCOL_STRCOLLUTF8, so it will use the other code independent of the
> > encoding.
> >
> > There could very well be some subtle memory counting bug or similar in
> > icu_to_uchar() perhaps. Needs more analysis.
>
> Ok, I can reproduce this with the given test data and steps if I undef
> HAVE_UCOL_STRCOLLUTF8 in my build.
>
> Interestingly, I couldn't just rebuild and rerun the query. In order
> for the error to occur, I had to rebuild the index.
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2022-02-02 14:42:02 | Re: BUG #17355: Server crashes on ExecReScanForeignScan in postgres_fdw when accessing foreign partition |
Previous Message | Amit Langote | 2022-02-02 14:06:31 | Re: BUG #17355: Server crashes on ExecReScanForeignScan in postgres_fdw when accessing foreign partition |