From: | Julius Stroffek <Julius(dot)Stroffek(at)Sun(dot)COM> |
---|---|
To: | pgsql-patches(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org |
Subject: | pgbench - segmentation fault |
Date: | 2007-08-22 09:25:58 |
Message-ID: | 46CC0126.5090003@Sun.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-patches |
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
Attachment | Content-Type | Size |
---|---|---|
pgbench_fix.patch | text/x-patch | 569 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Russell Smith | 2007-08-22 11:04:34 | Re: BUG #3563: DATESTYLE feature suggestion |
Previous Message | Heikki Linnakangas | 2007-08-22 08:34:59 | Re: BUG #3563: DATESTYLE feature suggestion |
From | Date | Subject | |
---|---|---|---|
Next Message | Ken Colson | 2007-08-22 17:29:27 | BUG #3571: call to decrypt causes segfault |
Previous Message | Andrew Chernow | 2007-08-21 19:44:11 | PGparam extension version 0.4 |