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, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-patches

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

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.



Attachment: pgbench_fix.patch
Description: text/x-patch (569 bytes)


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-2017 The PostgreSQL Global Development Group