Re: ECPG Segfaulting on EXEC SQL connect - Mailing list pgsql-general

From Hans-Michael Stahl
Subject Re: ECPG Segfaulting on EXEC SQL connect
Date
Msg-id 41ED3E01.3060702@condat.de
Whole thread Raw
In response to Re: ECPG Segfaulting on EXEC SQL connect  (Michael Meskes <meskes@postgresql.org>)
Responses Re: ECPG Segfaulting on EXEC SQL connect  (Michael Meskes <meskes@postgresql.org>)
List 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/

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Problem getting sql statement logging to work
Next
From: Adam Witney
Date:
Subject: Backup strategy