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

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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: menno(at)oxcoda(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #714: pg_dump segfaults when given an invalid command
Date: 2002-07-19 00:33:51
Message-ID: 200207190033.g6J0Xps27977@candle.pha.pa.us (view raw or flat)
Thread:
Lists: 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(at)postgresql(dot)org wrote:
> Menno Smits (menno(at)oxcoda(dot)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(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
> 

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

In response to

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2002-07-19 03:00:58
Subject: Re: Bug #714: pg_dump segfaults when given an invalid command
Previous:From: pgsql-bugsDate: 2002-07-19 00:27:12
Subject: Bug #714: pg_dump segfaults when given an invalid command line option

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