Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRsPO-0002aG-3A for pgsql-odbc@arkaria.postgresql.org; Wed, 28 Nov 2018 05:29:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRsPM-0005ZV-1R for pgsql-odbc@arkaria.postgresql.org; Wed, 28 Nov 2018 05:29:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gRsPL-0005ZN-OC for pgsql-odbc@lists.postgresql.org; Wed, 28 Nov 2018 05:29:07 +0000 Received: from mail02.asahi-net.or.jp ([202.224.55.14]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gRsPG-0002O2-Fy for pgsql-odbc@postgresql.org; Wed, 28 Nov 2018 05:29:05 +0000 Received: from [192.168.0.5] (KD124208079206.ppp-bb.dion.ne.jp [124.208.79.206]) (Authenticated sender: GQ9H-INUE) by mail02.asahi-net.or.jp (Postfix) with ESMTPA id 0E29D118C2C; Wed, 28 Nov 2018 14:28:58 +0900 (JST) Subject: Re: Segmentation fault in case Debian9+odbc+pgsql10.6 To: Yuriy Nasida References: Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: Date: Wed, 28 Nov 2018 14:28:58 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------02E6CDF87EB92BF25B77EF7D" Content-Language: en-US X-Antivirus: AVG (VPS 181127-4, 2018/11/28), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------02E6CDF87EB92BF25B77EF7D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Yuriy, The crash seems to be caused by setting log_min_duration_statement = 0 orlog_duration = on in postgresql.conf. The bug was fixed in 9.06.0100. Please avoid the setting in postgresql.conf or upgrade the driver. regards, Hiroshi Inoue On 2018/11/27 1:01, Yuriy Nasida wrote: > Hi guys, > > FYI - I noted that i have not problems with Deb9+pgsql9 and with > Deb8+pgsql10 > But! I get *segmentation fault* in case *Debian9+odbc+pgsql10.6* > > Did you get something like this ? > > Please look at some info below. > > My *odbc.ini:* > > [pgsqldsn] > Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so > Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcpsqlS.so > Database=dbname > Servername=ip > Port=5432 > Username=root > Password=superpasswd > Debug=0 > CommLog=1 > UsageCount=1 > RowVersioning=No > ShowSystemTables=No > ShowOidColumn=No > FakeOidIndex=No > ConnSettings= > > odbc version: > *odbc-postgresql:amd64             1:09.05.0400-2* > > # isql -v pgsqldsn > DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; > state: INPROGR, xid/subid/cid: 0/1/0 > *Segmentation fault* > * > * > Pgsql logs: > > DEBUG:  forked new backend, pid=36868 socket=11 > DEBUG:  postmaster child[36868]: starting with ( > DEBUG: postgres > DEBUG:  ) > DEBUG:  InitPostgres > DEBUG:  my backend ID is 5 > DEBUG:  StartTransaction(1) name: unnamed; blockState: DEFAULT; state: > INPROGR, xid/subid/cid: 0/1/0 > DEBUG:  received password packet > DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; > state: INPROGR, xid/subid/cid: 0/1/0 > DEBUG:  StartTransaction(1) name: unnamed; blockState: DEFAULT; state: > INPROGR, xid/subid/cid: 0/1/0 > STATEMENT:  SET DateStyle = 'ISO' > DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; > state: INPROGR, xid/subid/cid: 0/1/0 > STATEMENT:  SET DateStyle = 'ISO' > LOG:  duration: 0.271 ms  statement: SET DateStyle = 'ISO' > DEBUG:  StartTransaction(1) name: unnamed; blockState: DEFAULT; state: > INPROGR, xid/subid/cid: 0/1/0 > STATEMENT:  SET extra_float_digits = 2 > DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; > state: INPROGR, xid/subid/cid: 0/1/0 > STATEMENT:  SET extra_float_digits = 2 > LOG:  duration: 0.171 ms  statement: SET extra_float_digits = 2 > DEBUG:  unexpected EOF on client connection > DEBUG:  shmem_exit(0): 1 before_shmem_exit callbacks to make > DEBUG:  shmem_exit(0): 6 on_shmem_exit callbacks to make > DEBUG:  proc_exit(0): 3 callbacks to make > DEBUG:  exit(0) > DEBUG:  shmem_exit(-1): 0 before_shmem_exit callbacks to make > DEBUG:  shmem_exit(-1): 0 on_shmem_exit callbacks to make > DEBUG:  proc_exit(-1): 0 callbacks to make > DEBUG:  reaping dead processes > DEBUG:  server process (PID 36868) exited with exit code 0 > > > Any advice ? > Thanks. --- このメールは、AVG によってウイルス チェックされています。 http://www.avg.com --------------02E6CDF87EB92BF25B77EF7D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Yuriy,

The crash seems to be caused by setting log_min_duration_statement = 0 or log_duration = on
in postgresql.conf. The bug was fixed in 9.06.0100. Please avoid the setting in postgresql.conf
or upgrade the driver.

regards,
Hiroshi Inoue

On 2018/11/27 1:01, Yuriy Nasida wrote:
Hi guys,

FYI - I noted that i have not problems with Deb9+pgsql9 and with Deb8+pgsql10
But! I get segmentation fault in case  Debian9+odbc+pgsql10.6

Did you get something like this ?

Please look at some info below.

My odbc.ini:

[pgsqldsn]
Driver = /usr/lib/x86_64-linux-gnu/odbc/psqlodbcw.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libodbcpsqlS.so
Database=dbname
Servername=ip
Port=5432
Username=root
Password=superpasswd
Debug=0
CommLog=1
UsageCount=1
RowVersioning=No
ShowSystemTables=No
ShowOidColumn=No
FakeOidIndex=No
ConnSettings=

odbc version:
odbc-postgresql:amd64             1:09.05.0400-2

# isql -v pgsqldsn
DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0
Segmentation fault

Pgsql logs:

DEBUG:  forked new backend, pid=36868 socket=11
DEBUG:  postmaster child[36868]: starting with (
DEBUG:   postgres
DEBUG:  )
DEBUG:  InitPostgres
DEBUG:  my backend ID is 5
DEBUG:  StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0
DEBUG:  received password packet
DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0
DEBUG:  StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0
STATEMENT:  SET DateStyle = 'ISO'
DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0
STATEMENT:  SET DateStyle = 'ISO'
LOG:  duration: 0.271 ms  statement: SET DateStyle = 'ISO'
DEBUG:  StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 0/1/0
STATEMENT:  SET extra_float_digits = 2
DEBUG:  CommitTransaction(1) name: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 0/1/0
STATEMENT:  SET extra_float_digits = 2
LOG:  duration: 0.171 ms  statement: SET extra_float_digits = 2
DEBUG:  unexpected EOF on client connection
DEBUG:  shmem_exit(0): 1 before_shmem_exit callbacks to make
DEBUG:  shmem_exit(0): 6 on_shmem_exit callbacks to make
DEBUG:  proc_exit(0): 3 callbacks to make
DEBUG:  exit(0)
DEBUG:  shmem_exit(-1): 0 before_shmem_exit callbacks to make
DEBUG:  shmem_exit(-1): 0 on_shmem_exit callbacks to make
DEBUG:  proc_exit(-1): 0 callbacks to make
DEBUG:  reaping dead processes
DEBUG:  server process (PID 36868) exited with exit code 0


Any advice ?
Thanks.



AVG のロゴ

このメールは、AVG アンチウイルス ソフトウェアでウイルス チェックされています。
www.avg.com


--------------02E6CDF87EB92BF25B77EF7D--