ctrl \ makes psql 8.2.5 dump core

Started by Jeff Rossover 18 years ago5 messagesbugs
Jump to latest
#1Jeff Ross
jross@wykids.org

Hi all,

I found out this morning that entering CTRL \ at the psql prompt will
make psql dump core. The is reproducible on the two machines I have
here. Another server running downtown just quits without dumping core.
All are running 8.2.5 on OpenBSD.

I thought I was in the editor, and that key combination invokes nano's
search and replace function.

jross@slony:/var/www/wykids/training-calendar $ psql --version
psql (PostgreSQL) 8.2.5
contains support for command-line editing
jross@slony:/var/www/wykids/training-calendar $ psql wykids
Welcome to psql 8.2.5, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

jross@wykids localhost# Quit (core dumped)

The core file is less than a meg in size, so I can either upload it to
our web site or e-mail it directly to someone if anyone is interested.

Thanks,

Jeff Ross

#2Douglas Toltzman
doug@oakstreetsoftware.com
In reply to: Jeff Ross (#1)
Re: ctrl \ makes psql 8.2.5 dump core

On OS X (10.4.11) with Postgres 8.2.4, control-\ in psql just quits
(drops back to shell prompt).

On Jan 3, 2008, at 12:42 PM, Jeff Ross wrote:

Hi all,

I found out this morning that entering CTRL \ at the psql prompt
will make psql dump core. The is reproducible on the two machines I
have here. Another server running downtown just quits without
dumping core.
All are running 8.2.5 on OpenBSD.

I thought I was in the editor, and that key combination invokes
nano's search and replace function.

jross@slony:/var/www/wykids/training-calendar $ psql --version
psql (PostgreSQL) 8.2.5
contains support for command-line editing
jross@slony:/var/www/wykids/training-calendar $ psql wykids
Welcome to psql 8.2.5, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

jross@wykids localhost# Quit (core dumped)

The core file is less than a meg in size, so I can either upload it
to our web site or e-mail it directly to someone if anyone is
interested.

Thanks,

Jeff Ross

---------------------------(end of
broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Douglas Toltzman
doug@oakstreetsoftware.com
(910) 526-5938

#3Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Jeff Ross (#1)
Re: ctrl \ makes psql 8.2.5 dump core

Jeff Ross wrote:

Hi all,

I found out this morning that entering CTRL \ at the psql prompt will make
psql dump core. The is reproducible on the two machines I have here.
Another server running downtown just quits without dumping core.

This is normal and expected. Ctrl-\ is SIGABRT. If somewhere it aborts
without dumping core, it's because you have a zero "core size" ulimit
setting.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

#4Shelby Cain
alyandon@yahoo.com
In reply to: Alvaro Herrera (#3)
Re: ctrl \ makes psql 8.2.5 dump core

I believe this is expected behavior the Ctrl-\ keystroke will cause a SIGQUIT to the current process. Any program that doesn't explicitly handle SIGQUIT will abort.

Regards,

Shelby Cain

----- Original Message ----
From: Jeff Ross <jross@wykids.org>
To: PostgreSQL <pgsql-bugs@postgresql.org>
Sent: Thursday, January 3, 2008 11:42:26 AM
Subject: [BUGS] ctrl \ makes psql 8.2.5 dump core

Hi all,

I found out this morning that entering CTRL \ at the psql prompt will
make psql dump core. The is reproducible on the two machines I have
here. Another server running downtown just quits without dumping core.
All are running 8.2.5 on OpenBSD.

I thought I was in the editor, and that key combination invokes nano's
search and replace function.

jross@slony:/var/www/wykids/training-calendar $ psql --version
psql (PostgreSQL) 8.2.5
contains support for command-line editing
jross@slony:/var/www/wykids/training-calendar $ psql wykids
Welcome to psql 8.2.5, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

jross@wykids localhost# Quit (core dumped)

The core file is less than a meg in size, so I can either upload it to
our web site or e-mail it directly to someone if anyone is interested.

Thanks,

Jeff Ross

---------------------------(end of
broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

#5Jeff Ross
jross@wykids.org
In reply to: Shelby Cain (#4)
Re: ctrl \ makes psql 8.2.5 dump core

Shelby Cain wrote:

I believe this is expected behavior the Ctrl-\ keystroke will cause a SIGQUIT to the current process. Any program that doesn't explicitly handle SIGQUIT will abort.

Regards,

Shelby Cain

Okay, thanks for the reply, and sorry for the noise.

Jeff