Skip site navigation (1) Skip section navigation (2)

pgbench - segmentation fault

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 (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-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: pgbench_fix.patch
Description: text/x-patch (569 bytes)

Responses

pgsql-bugs by date

Next:From: Russell SmithDate: 2007-08-22 11:04:34
Subject: Re: BUG #3563: DATESTYLE feature suggestion
Previous:From: Heikki LinnakangasDate: 2007-08-22 08:34:59
Subject: Re: BUG #3563: DATESTYLE feature suggestion

pgsql-patches by date

Next:From: Ken ColsonDate: 2007-08-22 17:29:27
Subject: BUG #3571: call to decrypt causes segfault
Previous:From: Andrew ChernowDate: 2007-08-21 19:44:11
Subject: PGparam extension version 0.4

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group