The following bug has been logged online:
Bug reference: 5111
Logged by: Fendris
Email address: f.fendris@gmail.com
PostgreSQL version: 8.4.1
Operating system: x86_64 Debian 5.0.3
Description: Segmentation fault, if to_tsvector returns empty row to
ts_stat
Details:
example SQL:
SELECT * from ts_stat('SELECT to_tsvector(''simple'','''')');
Core:
Core was generated by `postgres: postgres postgres [local] SELECT
'.
Program terminated with signal 11, Segmentation fault.
[New process 30914]
#0 ts_setup_firstcall (fcinfo=<value optimized out>, funcctx=0x1e96290,
stat=0x1e962e0) at tsvector_op.c:965
965 tsvector_op.c: No such file or directory.
in tsvector_op.c
(gdb) info locals
tupdesc = <value optimized out>
oldcontext = (MemoryContext) 0x1ec8ca0
node = (StatEntry *) 0x0
(gdb) print
The history is empty.
(gdb) info args
fcinfo = <value optimized out>
funcctx = (FuncCallContext *) 0x1e96290
stat = (TSVectorStat *) 0x1e962e0
(gdb) list
960 in tsvector_op.c