pgbench - segmentation fault

Поиск
Список
Период
Сортировка
От Julius Stroffek
Тема pgbench - segmentation fault
Дата
Msg-id 46CC0126.5090003@Sun.COM
обсуждение исходный текст
Ответы Re: pgbench - segmentation fault  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #3563: DATESTYLE feature suggestion
Следующее
От: Russell Smith
Дата:
Сообщение: Re: BUG #3563: DATESTYLE feature suggestion