BUG #4933: ts_rewrite() causes segfault when query with more than one node becomes empty

Lists: pgsql-bugs
From: "Aaron Marcuse-Kubitza" <aaronmk(at)blackducksoftware(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4933: ts_rewrite() causes segfault when query with more than one node becomes empty
Date: 2009-07-22 15:36:36
Message-ID: 200907221536.n6MFaaeH043985@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4933
Logged by: Aaron Marcuse-Kubitza
Email address: aaronmk(at)blackducksoftware(dot)com
PostgreSQL version: 8.3.7
Operating system: Mac OS X 10.5.7
Description: ts_rewrite() causes segfault when query with more than
one node becomes empty
Details:

Running

SELECT ts_rewrite('''example'' & ''example'''::tsquery,
'''example'''::tsquery, ''::tsquery)

causes the error "LOG: server process (PID ...) was terminated by signal
11: Segmentation fault". Any combination of &, |, and () using only
'example' nodes causes the same problem.

However, running

SELECT ts_rewrite('''example'''::tsquery, '''example'''::tsquery,
''::tsquery)

works as expected.


From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Aaron Marcuse-Kubitza <aaronmk(at)blackducksoftware(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4933: ts_rewrite() causes segfault when query with more than one node becomes empty
Date: 2009-07-28 09:34:33
Message-ID: 4A6EC629.2070107@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

> Description: ts_rewrite() causes segfault when query with more than
> one node becomes empty

Fixed, thank you

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/