BUG #5111: Segmentation fault, if to_tsvector returns empty row to ts_stat - Mailing list pgsql-bugs

From Fendris
Subject BUG #5111: Segmentation fault, if to_tsvector returns empty row to ts_stat
Date
Msg-id 200910130946.n9D9kIlE099184@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #5111: Segmentation fault, if to_tsvector returns empty row to ts_stat
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Balazs Klein
Date:
Subject: Re: BUG #5108: plpgsql function name conflict with table alias
Next
From: Pavel Stehule
Date:
Subject: Re: BUG #5110: lower() function