CVS HEAD dumps core on simple tsvector input example - Mailing list pgsql-hackers

From Tom Lane
Subject CVS HEAD dumps core on simple tsvector input example
Date
Msg-id 11706.1192657954@sss.pgh.pa.us
Whole thread Raw
Responses Re: CVS HEAD dumps core on simple tsvector input example
List pgsql-hackers
regression=# SELECT 'a very fat cat sat:4 on:5 a:6 mat:7'::tsvector;                  tsvector                    
-----------------------------------------------'a' 'on':5 'cat' 'fat' 'mat':7 'sat':4 'very'
(1 row)

regression=# SELECT 'a very fat cat sat:4 on:5 a:6 mat:7'::tsvector;
server closed the connection unexpectedly

Notice it's the same input both times --- only the second one crashes.
The coredump happens inside repalloc, making me suspect a memory clobber
is involved.

BTW, why does the 'a':6 lexeme disappear?  To the extent that I
understand how this should work, I'd have expected 'a' and 'a':6
to merge into 'a':6 not plain 'a'.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Euler Taveira de Oliveira
Date:
Subject: Re: Windows and locales and UTF-8 (oh my)
Next
From: Alvaro Herrera
Date:
Subject: Re: CVS HEAD dumps core on simple tsvector input example