Skip site navigation (1) Skip section navigation (2)

segmentation fault on amd64

From: Karol Szkudlarek <karol(at)mikronika(dot)com(dot)pl>
To: pgsql-odbc(at)postgresql(dot)org
Subject: segmentation fault on amd64
Date: 2004-06-03 08:05:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc

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, 
     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 
#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 
#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(at)syndis", auto_commit=0)
     at otlv4.h:8776

What I am doing wrong?

pgsql-odbc by date

Next:From: Chris HooverDate: 2004-06-04 17:37:31
Subject: Help with ODBC problem
Previous:From: Carlos AbaldeDate: 2004-05-31 17:19:16
Subject: Help with DELETE statement via ODBC

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group