Re: Bug #714: pg_dump segfaults when given an invalid command

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Bug #714: pg_dump segfaults when given an invalid command
Дата
Msg-id 200207190033.g6J0Xps27977@candle.pha.pa.us
обсуждение исходный текст
Ответ на Bug #714: pg_dump segfaults when given an invalid command line option  (pgsql-bugs@postgresql.org)
Ответы Re: Bug #714: pg_dump segfaults when given an invalid command  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I just tried with current CVS and got:

    $ aspg pg_dump  --someoptionthatdoesntexist somedb

    pg_dump: unrecognized option `--someoptionthatdoesntexist'
    Try 'pg_dump --help' for more information.

My guess is that there is something buggy with your libc getopt.  Can
someone else reproduce this error?

---------------------------------------------------------------------------

pgsql-bugs@postgresql.org wrote:
> Menno Smits (menno@oxcoda.com) reports a bug with a severity of 3
> The lower the number the more severe it is.
>
> Short Description
> pg_dump segfaults when given an invalid command line option
>
> Long Description
> pg_dump crashes with a segmentation fault and dumps core when given an invalid command line option.
>
> Example:
> $ pg_dump --someoptionthatdoesntexist somedb
> Segmentation fault (core dumped)
>
> A core file is left behind.
>
> Version information:
> Postgresql version 7.2.1 on a Redhat 6.2 based system.
> Postgresql installed from RPMS built from the official SRPMS.
> (ie. rpm --rebuild postgresql-7.2.1-2PGDG.src.rpm)
>
> Sample Code
>
>
> No file was uploaded with this report
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

В списке pgsql-bugs по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #714: pg_dump segfaults when given an invalid command line option
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #714: pg_dump segfaults when given an invalid command