Unix Technical Forum

BUG #3653: Database crash

This is a discussion on BUG #3653: Database crash within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3653 Logged by: Marc Munro Email address: marc@bloodnok.com PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 12:10 PM
Marc Munro
 
Posts: n/a
Default BUG #3653: Database crash


The following bug has been logged online:

Bug reference: 3653
Logged by: Marc Munro
Email address: marc@bloodnok.com
PostgreSQL version: 8.2.5
Operating system: Linux 2.6.15.6 #4 SMP PREEMPT i686
Description: Database crash
Details:

Also occurs on 8.2.3 and 8.1.4

The following script causes a db server crash:
psql -d postgres <<'CLUSTEREOF'


create database "skittest" with
encoding 'UTF8'
connection limit = -1;

CLUSTEREOF


psql -d skittest <<'DBEOF'

create or replace function "public"."mycharin"(
in "pg_catalog"."cstring")
returns "public"."mychar"
as 'charin'
language internal immutable strict;


create or replace function "public"."mycharout"(
in "public"."mychar")
returns "pg_catalog"."cstring"
as 'charout'
language internal immutable strict;


create type "public"."mychar"(
input = "public"."mycharin",
output = "public"."mycharout",
internallength = -1,
alignment = char,
storage = plain,
delimiter = ',');


create domain "public"."postal3"
as "public"."mychar"
default 'xxx' not null;

comment on domain "public"."postal3" is
'wibble';

DBEOF


The following is from the log file:

2007-10-04 11:05:40 PDT NOTICE: type "public.mychar" is not yet defined
2007-10-04 11:05:40 PDT DETAIL: Creating a shell type definition.
2007-10-04 11:05:40 PDT NOTICE: argument type public.mychar is only a
shell
2007-10-04 11:05:40 PDT LOG: server process (PID 13775) was terminated by
signa
l 11
2007-10-04 11:05:40 PDT LOG: terminating any other active server processes
2007-10-04 11:05:40 PDT LOG: all server processes terminated;
reinitializing
2007-10-04 11:05:40 PDT LOG: database system was interrupted at 2007-10-04
11:0
5:34 PDT

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 12:10 PM
Tom Lane
 
Posts: n/a
Default Re: BUG #3653: Database crash

"Marc Munro" <marc@bloodnok.com> writes:
> The following script causes a db server crash:


You are using the I/O routines for the builtin "char" type, but you
have not duplicated the storage parameters for that type. The length
must be 1 not -1, and it's pass by value.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: 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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com