From: | Andreas Seltenreich <seltenreich(at)gmx(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org, Robert Haas <rhaas(at)postgresql(dot)org>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Subject: | [sqlsmith] Crash in pg_get_viewdef_name_ext() |
Date: | 2016-08-07 20:41:59 |
Message-ID: | 87y448l3ag.fsf@credativ.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
sqlsmith just triggered a crash in pg_get_viewdef_name_ext(). Looks
like commit 976b24fb4 failed to update this caller of
pg_get_viewdef_worker(). Backtrace below. Patch attached.
regards,
Andreas
Program terminated with signal SIGSEGV, Segmentation fault.
(gdb) bt
#0 strlen () at ../sysdeps/x86_64/strlen.S:106
#1 0x00000000007cdf09 in cstring_to_text (s=s(at)entry=0x0) at varlena.c:152
#2 0x00000000007a3409 in string_to_text (str=0x0) at ruleutils.c:10083
#3 pg_get_viewdef_name_ext (fcinfo=<optimized out>) at ruleutils.c:681
#4 0x00000000005dfae2 in ExecMakeFunctionResultNoSets (fcache=0x403ed80, econtext=0x3fb0eb8, isNull=0x403e0a1 "", isDone=<optimized out>) at execQual.c:2041
[...]
Attachment | Content-Type | Size |
---|---|---|
ruleutils.patch | text/x-diff | 879 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2016-08-07 21:16:11 | Re: garbage in xml regress test |
Previous Message | Greg Sabino Mullane | 2016-08-07 20:09:58 | Re: No longer possible to query catalogs for index capabilities? |