Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XjfyW-0001Lf-N6 for pgsql-odbc@arkaria.postgresql.org; Thu, 30 Oct 2014 03:00:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjfyW-0001b6-4a for pgsql-odbc@arkaria.postgresql.org; Thu, 30 Oct 2014 03:00:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XjfyV-0001ap-53 for pgsql-odbc@postgresql.org; Thu, 30 Oct 2014 03:00:35 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XjfyL-0005OA-SI for pgsql-odbc@postgresql.org; Thu, 30 Oct 2014 03:00:33 +0000 Received: (qmail 18744 invoked by uid 502); 30 Oct 2014 03:00:22 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 30 Oct 2014 03:00:22 -0000 Message-ID: <5451A9C5.7060708@tpf.co.jp> Date: Thu, 30 Oct 2014 12:00:21 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: rohtodeveloper CC: Michael Paquier , "pgsql-odbc@postgresql.org" Subject: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. References: , <3692B3C3C5EFEF4E87878CD096A0768C194858@G08CNEXMBPEKD02.g08.fujitsu.local>, , , <54505FE6.4060704@tpf.co.jp> <5450AD1D.5060804@tpf.co.jp> In-Reply-To: <5450AD1D.5060804@tpf.co.jp> Content-Type: multipart/mixed; boundary="------------040908080303070908070205" X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org This is a multi-part message in MIME format. --------------040908080303070908070205 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit (2014/10/29 18:02), Inoue, Hiroshi wrote: > (2014/10/29 12:32), Inoue, Hiroshi wrote: >> (2014/10/29 2:49), rohtodeveloper wrote: >>> I'm so sorry, it seems that there was something wrong with the pictures >>> in my last letter. >>> Here I send the mail again with the correct pictures: >>> >>> Thanks a lot for your answer. >>> >>> Well ,in fact, if I use the extension called odbc_fdw , the same problem >>> will happen. >>> >>> That¡¯s because the odbc_fdw will also call the odbc driver. >>> >>> The follow pictures explain the situation. >>> >>> When use the odbc_fdw extension, the libraries are loaded in the >>> following way. >>> >>> After all the libraries are loaded, When the function >>> check_client_encoding is called , the whole postgres process will crash >>> , result in a core dumped problem. >> >> Which check_client_encoding() call causes the crash? > > Oops I missed your anothe post. > OK check_client_encoding() in the driver causes the crash. > Currently all global symbols in the driver are exported. > Exporting only ODBC APIs may solve the problem. Possibly attached patch for Makefile.am fixes the problem. Autoreconf, configure, make and make install are needed. Could you try it? regards, Hiroshi Inoue -- I am using the free version of SPAMfighter. SPAMfighter has removed 12852 of my spam emails to date. Get the free SPAMfighter here: http://www.spamfighter.com/len Do you have a slow PC? Try a Free scan http://www.spamfighter.com/SLOW-PCfighter?cid=sigen --------------040908080303070908070205 Content-Type: text/x-patch; name="symbols_conflict.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="symbols_conflict.patch" diff --git a/Makefile.am b/Makefile.am index c436265..8641327 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,7 @@ else lib_LTLIBRARIES = psqlodbca.la endif -AM_LDFLAGS = -module -no-undefined -avoid-version +AM_LDFLAGS = -module -no-undefined -avoid-version -export-symbols-regex '^SQL' psqlodbca_la_SOURCES = \ info.c bind.c columninfo.c connection.c convert.c drvconn.c \ --------------040908080303070908070205 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc --------------040908080303070908070205--