X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5FE1FD1B1F8 for ; Thu, 3 Jun 2004 05:04:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31622-06 for ; Thu, 3 Jun 2004 08:04:50 +0000 (GMT) Received: from ro.mikronika.com.pl (ni.mikronika.com.pl [213.17.224.83]) by svr1.postgresql.org (Postfix) with ESMTP id EA3E4D1B16B for ; Thu, 3 Jun 2004 05:04:45 -0300 (ADT) Received: from mikronika.com.pl (karol.mikronika.com.pl [192.168.0.56]) (authenticated bits=0) by ro.mikronika.com.pl (8.12.9/8.12.9/Debian-1) with ESMTP id i5384jTr027374 for ; Thu, 3 Jun 2004 10:04:46 +0200 Message-ID: <40BEDBC3.2030203@mikronika.com.pl> Date: Thu, 03 Jun 2004 10:05:23 +0200 From: Karol Szkudlarek Reply-To: karol@mikronika.com.pl Organization: Mikronika User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.6) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: segmentation fault on amd64 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Archive-Number: 200406/3 X-Sequence-Number: 4073 Hi! I am trying to connect to postgresql via unixODBC. I built psqlodbc-07.03.0200 and psqlodbc-07.03.0100 and psqlodbc-7.2.5 with no success. My platform is: AMD64 with gcc-3.3.3, glibc-2.3.2-r9, and Linux kernel 2.6.5 I did: $ cd cd psqlodbc-07.03.0200 $ ./configure --with-unixodbc $ make # make install and in gdb stack shows: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 32017)] QR_read_tuple (self=0x782f60, binary=0 '\0') at qresult.c:864 864 buffer[len] = '\0'; Current language: auto; currently c (gdb) where #0 QR_read_tuple (self=0x782f60, binary=0 '\0') at qresult.c:864 #1 0x0000002a9b3dff1a in QR_next_tuple (self=0x782f60) at qresult.c:716 #2 0x0000002a9b3dfa00 in QR_fetch_tuples (self=0x782f60, conn=0xfffffffffffffff8, cursor=0x64
) at qresult.c:401 #3 0x0000002a9b3d22eb in CC_send_query (self=0x7beb10, query=0x782f60 " 0x", qi=0x0, flag=1) at connection.c:1502 #4 0x0000002a9b3e941e in SC_execute (self=0x781d10) at statement.c:1107 #5 0x0000002a9b3da589 in Exec_with_parameters_resolved (stmt=0x781d10, exec_end=0x7fbfffacbc) at execute.c:280 #6 0x0000002a9b3da927 in PGAPI_Execute (hstmt=0x2a9b3f7d36) at execute.c:588 #7 0x0000002a9b3da2da in PGAPI_ExecDirect (hstmt=0x781d10, szSqlStr=0x2a9b3f39e0 "select version()", cbSqlStr=-3) at execute.c:186 #8 0x0000002a9b3d2e7a in CC_lookup_pg_version (self=0x7beb10) at connection.c:2023 #9 0x0000002a9b3d0f99 in CC_connect (self=0x7beb10, password_req=0 '\0', salt_para=0x0) at connection.c:943 #10 0x0000002a9b3d007a in PGAPI_Connect (hdbc=0x7beb10, szDSN=0x7fbfffd450 "syndis", cbDSN=-3912, szUID=0x7fbfffe350 "mik_e", cbUID=-3, szAuthStr=0x7fbfffe250 "syndis", cbAuthStr=-3) at connection.c:131 #11 0x0000002a9b3ed140 in SQLConnect (ConnectionHandle=0x7beb10, ServerName=0x7fbfffd450 "syndis", NameLength1=-3, UserName=0x7fbfffe350 "mik_e", NameLength2=-3, Authentication=0x7fbfffe250 "syndis", NameLength3=-3) at odbcapi.c:184 #12 0x0000002a9776418d in SQLConnect (connection_handle=0x72e030, server_name=0x7fbfffe150 "syndis", name_length1=-3, user_name=0x7fbfffe350 "mik_e", name_length2=-3, authentication=0x7fbfffe250 "syndis", name_length3=-3) at SQLConnect.c:3721 #13 0x0000002a9b1a9a6d in otl_conn::rlogon (this=0x82d3d0, connect_str=0x52ad40 "mik_e/syndis@syndis", auto_commit=0) at otlv4.h:8776 What I am doing wrong?