Re: [bug fix] ECPG app crashes due to SIGBUS on SPARC Solaris

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: MauMau <maumau307(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [bug fix] ECPG app crashes due to SIGBUS on SPARC Solaris
Date: 2013-12-27 12:01:09
Message-ID: 20131227120109.GB21708@feivel.credativ.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 24, 2013 at 09:55:45PM +0900, MauMau wrote:
> The attached ECPG app crashes and dumps core with SIGBUS on Solaris
> for SPARC. I used Solaris 10, and Oracle Studio to compile the app
> for 64-bit build. The same app completes successfully on Linux and
> Windows for x86/x564.

What happens to the regression test suite on your system? There are test cases
that access a descriptor in a similar way I think.

> Because desc1 is a char array, else block should be executed instead
> of the above path.

> Therefore, make ecpg pass SQL descriptor host variables to ECPGdo()
> with non-zero lengths.

How did you decide which values to put in? I fail to see a reason for choosing
exactly these values.

Mkichael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2013-12-27 12:27:41 Happy new year from viva64
Previous Message Michael Meskes 2013-12-27 11:57:57 Re: [bug fix] connection service file doesn't take effect with ECPG apps