Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJuIE-0001Ug-1h for pgsql-odbc@arkaria.postgresql.org; Sun, 20 Sep 2020 08:01:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kJuHf-00035L-NP for pgsql-odbc@arkaria.postgresql.org; Sun, 20 Sep 2020 08:01:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJuHf-00034r-Ew for pgsql-odbc@lists.postgresql.org; Sun, 20 Sep 2020 08:01:19 +0000 Received: from pilvi.rengaskauppa.net ([188.117.24.212] helo=rengaskauppa.net) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kJuHb-0005fr-IL for pgsql-odbc@postgresql.org; Sun, 20 Sep 2020 08:01:18 +0000 Received: from rengaskauppa.net (localhost [127.0.0.1]) by pilvi.rengaskauppa.net (Postfix) with ESMTP id 4BvKlG2m7Vz8FTv for ; Sun, 20 Sep 2020 11:01:14 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hege.li; s=hege2; t=1600588874; bh=jnmuHRRND5ZZyhFLM6L4cZrtlqB0wBuWFXvU5EtAzNY=; h=Date:From:To:Subject:References:In-Reply-To:From; b=dPsAhbpQ7R0W94TiRYN3Z5tQceefB4cu/ZE/hpgIhlW3Z8oy+x8kh0xJpgjsfnE+L lLwHh+M/NYM52rU3lN+WWBaGFGN9xsKLBXi/7XPBsVyJSXe1zzlEzW8cCQlmFPvGcr ZZRCccIknF9vgWYH+YHOkLJb/2t86mh2HDpxmOpkdfCXIyft/4r+uVqpZ+9Jy+85V3 m3uZEZoN+J185qvWgg6iDjR0k8yFuKdHxu+lU6ZOkuww1XXmMNyUDx3TPx/uqd4Bqq DWpLmeJD87xUrVdDxr20HZXKefJpfdyNOlddSi0O4qTzNHFmnHFLjEfyDuWZOkTnVm 0zbRMkP/womRw== Received: by pilvi.rengaskauppa.net (Postfix, from userid 1000) id 4BvKlG2fR8z8THt; Sun, 20 Sep 2020 11:01:14 +0300 (EEST) Date: Sun, 20 Sep 2020 11:01:14 +0300 From: Henrik Krohns To: pgsql-odbc@postgresql.org Subject: Re: Crashing with copy_and_convert_field Message-ID: <20200920080114.GA9518@hege.li> References: <20200824144131.GA32577@hege.li> <20200901043648.GA2161@hege.li> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200901043648.GA2161@hege.li> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk TL;DR psqlodbc is dumping core regarding copy_and_convert_field. No one here can help debug it? On Tue, Sep 01, 2020 at 07:36:48AM +0300, Henrik Krohns wrote: > > Any developer around? > > > On Mon, Aug 24, 2020 at 05:41:31PM +0300, Henrik Krohns wrote: > > > > Hello, > > > > I've been trying to get Oracle 18c -> EnterpriseDB 12.4 ODBC connection > > working without success.. > > > > Compiled unixODBC 2.3.7 / libpq 12.2 / psqlodbc 12.02 stack for our Oracle > > server, running Solaris 11.4 SPARC. > > > > > > Basic conf: > > > > > > ### ORACLE_HOME/hs/admin/initLINKKITESTI.ora > > HS_FDS_CONNECT_INFO = linkkitesti > > HS_FDS_TRACE_LEVEL = 255 > > HS_FDS_SHAREABLE_NAME = /opt/unixODBC/lib/libodbc.so > > > > ### odbc.ini > > [linkkitesti] > > Driver = PostgreSQL > > Database = linkkitesti > > Servername = ppas.server.com > > Port = 5432 > > UseDeclareFetch = 1 > > Debug = 1 > > LowerCaseIdentifier = 1 > > > > ### odbcinst.ini > > [PostgreSQL] > > Description = PostgreSQL ODBC driver > > Driver = /opt/unixODBC/lib/psqlodbcw.so > > Setup = /opt/unixODBC/lib/libodbcpsqlS.so > > FileUsage = 1 > > > > > > Results in: > > > > > > Connected to: > > Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 - Production > > Version 18.11.0.0.0 > > > > SQL> create database link linkkitesti connect to "linkkitesti" identified by "xxxx" using 'LINKKITESTI'; > > > > Database link created. > > > > SQL> select * from "testitaulu"@linkkitesti; > > select * from "testitaulu"@linkkitesti > > * > > ERROR at line 1: > > ORA-28511: lost RPC connection to heterogeneous remote agent using > > SID=ORA-28511: lost RPC connection to heterogeneous remote agent using > > SID=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=xxxx)(PORT=1522)) > > )(CONNECT_DATA=(SID=LINKKITESTI))) > > ORA-02063: preceding line from LINKKITESTI > > > > > > > > Getting core dump with references to copy_and_convert_field function. The > > test table I have contains nothing but single varchar col with short string. > > > > Here's bunch of odbc/oracle trace files: > > > > https://pastebin.com/RMG5V5vR > > https://pastebin.com/NGtt9hmN > > https://pastebin.com/6Nea2emc > > https://pastebin.com/8qfjsMJw > > > > > > I've tried playing with all sorts of HS_ language settings etc, nothing > > makes a difference. Downgrading way back to psqlodbc-10.03.0000 stops > > crashing, but the query fails anyway with other errors. > > > > Cheers, > > Henrik > > > >