pgbench - segmentation fault - Mailing list pgsql-bugs

From Julius Stroffek
Subject pgbench - segmentation fault
Date
Msg-id 46CC0126.5090003@Sun.COM
Whole thread Raw
Responses Re: pgbench - segmentation fault  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Hi,

pgbench contrib module is doing segmentation fault on Solaris
when -d option is specified without -p option specified.

This is because the -d option dumps the connection information
and the default value of pgport variable is NULL which causes
segmentation fault on Solaris when NULL is passed to printf
function.

Attached is a trivial patch that changes the default value of pgport
to empty string. PQsetdbLogin function does not make any difference
between NULL and empty string.

Regards

Julo

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: BUG #3563: DATESTYLE feature suggestion
Next
From: Russell Smith
Date:
Subject: Re: BUG #3563: DATESTYLE feature suggestion