Re: ECPG Segfaulting on EXEC SQL connect

From: Hans-Michael Stahl <Hans-Michael(dot)Stahl(at)condat(dot)de>
To: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org, john(at)roundel(dot)net
Subject: Re: ECPG Segfaulting on EXEC SQL connect
Date: 2005-01-18 16:49:05
Message-ID: 41ED3E01.3060702@condat.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Meskes wrote the following on 01.01.2005 16:08:

> On Tue, Dec 28, 2004 at 10:16:04PM -0000, John Smith wrote:
>
>>I'm trying to convert a series of C programs written originally using
>>Informix ESQL to use Postgres' ECPG.
>>...
>>575 EXEC SQL connect to pdev_changename;
>>...
>>I'm using Postgres 8.0.0rc1 on Redhat 9 (kernel 2.4.20-31.9). The same thing
>>happens on fedora core 3, and using Postgres 7.4.6-1.FC3-1.

This also happens with Postgresql 7.4. under SUSE Linux 9.1 (kernel
2.6.4-52) The last version for which embedded SQL worked well for me
was 7.3. The same source which worked fine under 7.3 for many months
stopped working with my switch to 7.4.2. :-(

And it not only happens during connect, but also during a select. It is
very difficult to debug, since often the stack is destroyed and a
backtrace in gdb does not work. From what I can see it is always
related to calls of malloc/free/realloc issued by libpq.

--
With kind regards | Mit freundlichen Gruessen
Hans-Michael Stahl
Condat AG
Alt-Moabit 91d | 10559 Berlin | Germany | Old Europe
tel: +49.30.3949-1155 | fax: +49.30.3949-2221155
http://www.condat.de/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-01-18 16:51:27 Re: Problem getting sql statement logging to work
Previous Message Richard_D_Levine 2005-01-18 16:07:13 Re: Problem getting sql statement logging to work