Re: [bug fix] ECPG app crashes due to SIGBUS on SPARC Solaris - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: [bug fix] ECPG app crashes due to SIGBUS on SPARC Solaris
Date
Msg-id 20131227120109.GB21708@feivel.credativ.lan
Whole thread Raw
In response to [bug fix] ECPG app crashes due to SIGBUS on SPARC Solaris  ("MauMau" <maumau307@gmail.com>)
Responses Re: [bug fix] ECPG app crashes due to SIGBUS on SPARC Solaris
List 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



pgsql-hackers by date:

Previous
From: Michael Meskes
Date:
Subject: Re: [bug fix] connection service file doesn't take effect with ECPG apps
Next
From: Alexander Korotkov
Date:
Subject: Happy new year from viva64