pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Constantin Teodorescu <teo@flex.ro>
To: PostgreSQL Interfaces <pgsql-interfaces@postgresql.org>
Cc: postgresql-bugs@postgresql.org
Cc: kunkee@Starbase.NeoSoft.COM
Subject: Segmentation fault in 6.3.1 when using libpgtcl !!!
Date: Sun, 29 Mar 1998 18:00:52 +0300
Message-ID: <351E6224.579E94EE@flex.ro> (raw)

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



view thread (2+ messages)  latest in thread

Message-ID: <351E6224.579E94EE@flex.ro>
Permalink:  ../351E6224.579E94EE@flex.ro/
Also on:    postgresql.org/message-id/351E6224.579E94EE@flex.ro

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: teo@flex.ro, postgresql-bugs@postgresql.org, kunkee@Starbase.NeoSoft.COM
  Subject: Re: Segmentation fault in 6.3.1 when using libpgtcl !!!
  In-Reply-To: <351E6224.579E94EE@flex.ro>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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