--describe-config crashes
Function printMixedStruct calls printf with NULL argument. It causes
segmentation fault. Please, apply it for 8.3 - 8.1 too.
thanks Zdenek
Attachments:
describe.patchtext/x-patch; name=describe.patchDownload+2-2
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
Function printMixedStruct calls printf with NULL argument. It causes
segmentation fault. Please, apply it for 8.3 - 8.1 too.
Ugh, I guess we've only tested --describe-config on platforms where
%s treats a NULL pointer the same as an empty string.
Since that's also effectively the way GUC handles it, I'm inclined
to think we should print NULL as "" not "(NULL)". Otherwise,
will apply.
regards, tom lane
Tom Lane wrote:
Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
Function printMixedStruct calls printf with NULL argument. It causes
segmentation fault. Please, apply it for 8.3 - 8.1 too.Ugh, I guess we've only tested --describe-config on platforms where
%s treats a NULL pointer the same as an empty string.Since that's also effectively the way GUC handles it, I'm inclined
to think we should print NULL as "" not "(NULL)". Otherwise,
will apply.
Tom has applied this patch to CVS HEAD and all relevant back-branches.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +