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

Segmentation fault in 6.3.1 when using libpgtcl !!!

From: Constantin Teodorescu <teo(at)flex(dot)ro>
To: PostgreSQL Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Cc: postgresql-bugs(at)postgresql(dot)org, kunkee(at)Starbase(dot)NeoSoft(dot)COM
Subject: Segmentation fault in 6.3.1 when using libpgtcl !!!
Date: 1998-03-29 15:00:52
Message-ID: 351E6224.579E94EE@flex.ro (view raw or flat)
Thread:
Lists: pgsql-interfaces
I upgraded today to PostgreSQL 6.3.1 and I understood that are some
libpgtcl improvments (Randy Kunkee).

But I have encountered a bug (probably located in libpgtcl) that crash
the client (PgAccess).

To reproduce the error only with tclsh (not with PgAccess) you have to
follow exactly the following steps :

1. Get the database demo for PgAccess from the last PgAccess
distribution (0.86) or directly from
http://www.flex.ro/pgaccess/formdemo.sql (shift-click the link)
2. Create a database called formdemo and fill it with objects from
formdemo.sql (psql -e formdemo <formdemo.sql)
3. launch tclsh
4. Enter the following commands into tclsh

% load libpgtcl.so
% set dbc [pg_connect formdemo]
% pg_select $dbc "select * from pga_forms" rcd { puts $rcd(formname) }

You will get a segmentation fault immediatly after printing the first
form name ("A simple demo form")

If the last command would be
% pg_select $dbc "select formname from pga_forms" rcd { puts
$rcd(formname) }

you will get the names of the two forms founded in table pga_forms ("A
simple demo form","Phone book") without any error.
===================================================================
The PostgreSQL record for the form "Phone book" is big enough (2824
bytes) but less than 8Kb (record limit).
I think that it's a bug in the latest libpgtcl library in pg_select
function !

Please, Randy could you check it?

-- 
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA

Responses

pgsql-interfaces by date

Next:From: Randy KunkeeDate: 1998-03-29 16:27:49
Subject: Re: Segmentation fault in 6.3.1 when using libpgtcl !!!
Previous:From: Constantin TeodorescuDate: 1998-03-29 14:04:10
Subject: Re: pgaccess difficulties on pg6.3

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