pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql produces core dump
10+ messages / 5 participants
[nested] [flat]

* psql produces core dump
@ 2001-05-11 09:53  Reiner Dassing <dassing@wettzell.ifag.de>
  0 siblings, 5 replies; 10+ messages in thread

From: Reiner Dassing @ 2001-05-11 09:53 UTC (permalink / raw)
  To: pgsql-admin

Hello Tom!

By accident I gave in psql the command \@ and \db.
In both cases a core dump was produced.

This is just a note for your TODO List.

Basis:
PostgreSQL V7.1.1 on Tru64 V 5.1

--
Mit freundlichen Gruessen / With best regards
   Reiner Dassing



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-11 09:59  Oliver Vecernik <vecernik@aon.at>
  parent: Reiner Dassing <dassing@wettzell.ifag.de>
  4 siblings, 0 replies; 10+ messages in thread

From: Oliver Vecernik @ 2001-05-11 09:59 UTC (permalink / raw)
  To: Reiner Dassing <dassing@wettzell.ifag.de>; +Cc: pgsql-admin

Reiner Dassing wrote:
> 
> Hello Tom!
> 
> By accident I gave in psql the command \@ and \db.
> In both cases a core dump was produced.
> 
> This is just a note for your TODO List.
> 
> Basis:
> PostgreSQL V7.1.1 on Tru64 V 5.1

But not on:

                            version
---------------------------------------------------------------
 PostgreSQL 7.1.1 on i686-pc-linux-gnu, compiled by GCC 2.95.2
(1 row)

Oliver



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-11 11:21  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Reiner Dassing <dassing@wettzell.ifag.de>
  4 siblings, 1 reply; 10+ messages in thread

From: Bruce Momjian @ 2001-05-11 11:21 UTC (permalink / raw)
  To: Reiner Dassing <dassing@wettzell.ifag.de>; +Cc: pgsql-admin

Worked fine here:

	
	\test=> \@
	Invalid command \@. Try \? for help.
	test=> \db
	Did not find any relation named "b".


[ Charset ISO-8859-2 unsupported, converting... ]
> Hello Tom!
> 
> By accident I gave in psql the command \@ and \db.
> In both cases a core dump was produced.
> 
> This is just a note for your TODO List.
> 
> Basis:
> PostgreSQL V7.1.1 on Tru64 V 5.1
> 
> --
> Mit freundlichen Gruessen / With best regards
>    Reiner Dassing
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 

-- 
  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



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-11 12:20  Reiner Dassing <dassing@wettzell.ifag.de>
  parent: Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 10+ messages in thread

From: Reiner Dassing @ 2001-05-11 12:20 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-admin

Here's my screen dump:

db=# \@
Invalid command \@. Try \? for help.
Segmentation fault (core dumped)


--
Mit freundlichen Gruessen / With best regards
   Reiner Dassing



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-11 13:45  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Reiner Dassing <dassing@wettzell.ifag.de>
  4 siblings, 0 replies; 10+ messages in thread

From: Tom Lane @ 2001-05-11 13:45 UTC (permalink / raw)
  To: Reiner Dassing <dassing@wettzell.ifag.de>; +Cc: pgsql-admin

Reiner Dassing <dassing@wettzell.ifag.de> writes:
> By accident I gave in psql the command \@ and \db.
> In both cases a core dump was produced.
> PostgreSQL V7.1.1 on Tru64 V 5.1

Apparently this is platform-specific.  Can you provide a stack backtrace
from the core file?

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-11 22:08  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Reiner Dassing <dassing@wettzell.ifag.de>
  4 siblings, 1 reply; 10+ messages in thread

From: Tom Lane @ 2001-05-11 22:08 UTC (permalink / raw)
  To: Reiner Dassing <dassing@wettzell.ifag.de>; +Cc: pgsql-admin

Reiner Dassing <dassing@wettzell.ifag.de> writes:
> By accident I gave in psql the command \@ and \db.
> In both cases a core dump was produced.
> Basis:
> PostgreSQL V7.1.1 on Tru64 V 5.1

Which version is your file pgsql/src/bin/psql/command.c ?
If it's 1.49 then this is a known bug.  1.49.2.1 has the fix,
but I'm not sure if that's in the file set you have.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-11 22:15  Peter Eisentraut <peter_e@gmx.net>
  parent: Reiner Dassing <dassing@wettzell.ifag.de>
  4 siblings, 0 replies; 10+ messages in thread

From: Peter Eisentraut @ 2001-05-11 22:15 UTC (permalink / raw)
  To: Reiner Dassing <dassing@wettzell.ifag.de>; +Cc: pgsql-admin

Reiner Dassing writes:

> By accident I gave in psql the command \@ and \db.
> In both cases a core dump was produced.

This is a bug I accidentally introduced in 7.1.1.  It will be fixed in
7.1.2.  If you only got a core dump, you got lucky...

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter




^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-14 06:58  Reiner Dassing <dassing@wettzell.ifag.de>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 10+ messages in thread

From: Reiner Dassing @ 2001-05-14 06:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

Tom Lane wrote:
> 
> Reiner Dassing <dassing@wettzell.ifag.de> writes:
> > By accident I gave in psql the command \@ and \db.
> > In both cases a core dump was produced.
> > Basis:
> > PostgreSQL V7.1.1 on Tru64 V 5.1
> 
> Which version is your file pgsql/src/bin/psql/command.c ?
> If it's 1.49 then this is a known bug.  1.49.2.1 has the fix,
> but I'm not sure if that's in the file set you have.
It's version 1.49
See:

/*
 * psql - the PostgreSQL interactive terminal
 *
 * Copyright 2000 by PostgreSQL Global Development Group
 *
 * $Header: /home/projects/pgsql/cvsroot/pgsql/src/bin/psql/command.c,v
1.49 2001/04/18 20:53:08 petere Exp$
 */


> 
>                         regards, tom lane

One remark:
The modified "mainloop.c" I sent you is due to: 
query_start contains a value nearly infinity and then it produces
the core dump.
 
--
Mit freundlichen Gruessen / With best regards
   Reiner Dassing



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-14 14:06  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Reiner Dassing <dassing@wettzell.ifag.de>
  0 siblings, 1 reply; 10+ messages in thread

From: Tom Lane @ 2001-05-14 14:06 UTC (permalink / raw)
  To: Reiner Dassing <dassing@wettzell.ifag.de>; +Cc: pgsql-admin

Reiner Dassing <dassing@wettzell.ifag.de> writes:
> The modified "mainloop.c" I sent you is due to: 
> query_start contains a value nearly infinity and then it produces
> the core dump.

Yes, but the broken query_start value is the fault of the bug in
command.c.  You can get the patch from our CVS server,
http://www.ca.postgresql.org/cgi/cvsweb.cgi/pgsql/src/bin/psql/command.c.diff?r1=1.49&r2=1.49.2....

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 10+ messages in thread

* Re: psql produces core dump
@ 2001-05-14 16:23  Reiner Dassing <dassing@wettzell.ifag.de>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 10+ messages in thread

From: Reiner Dassing @ 2001-05-14 16:23 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin

Tom Lane wrote:
Thank you for the patch at
> http://www.ca.postgresql.org/cgi/cvsweb.cgi/pgsql/src/bin/psql/command.c.diff?r1=1.49&r2=1.49.2....

It works!
> 
>                         regards, tom lane

--
Mit freundlichen Gruessen / With best regards
   Reiner Dassing



^ permalink  raw  reply  [nested|flat] 10+ messages in thread


end of thread, other threads:[~2001-05-14 16:23 UTC | newest]

Thread overview: 10+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-11 09:53 psql produces core dump Reiner Dassing <dassing@wettzell.ifag.de>
2001-05-11 09:59 ` Oliver Vecernik <vecernik@aon.at>
2001-05-11 11:21 ` Bruce Momjian <pgman@candle.pha.pa.us>
2001-05-11 12:20   ` Reiner Dassing <dassing@wettzell.ifag.de>
2001-05-11 13:45 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-05-11 22:08 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-05-14 06:58   ` Reiner Dassing <dassing@wettzell.ifag.de>
2001-05-14 14:06     ` Tom Lane <tgl@sss.pgh.pa.us>
2001-05-14 16:23       ` Reiner Dassing <dassing@wettzell.ifag.de>
2001-05-11 22:15 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox