pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karol Szkudlarek <karol@mikronika.com.pl>
To: pgsql-odbc@postgresql.org
Subject: segmentation fault on amd64
Date: Thu, 03 Jun 2004 10:05:23 +0200
Message-ID: <40BEDBC3.2030203@mikronika.com.pl> (raw)

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 <Address 0x64 out of bounds>) 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?



Message-ID: <40BEDBC3.2030203@mikronika.com.pl>
Permalink:  ../40BEDBC3.2030203@mikronika.com.pl/
Also on:    postgresql.org/message-id/40BEDBC3.2030203@mikronika.com.pl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: karol@mikronika.com.pl
  Subject: Re: segmentation fault on amd64
  In-Reply-To: <40BEDBC3.2030203@mikronika.com.pl>
  References: <40BEDBC3.2030203@mikronika.com.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox