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

change in the odbc++ version leads to the problem

From: Ashish Lewalkar <ashish(at)boston-labs(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: change in the odbc++ version leads to the problem
Date: 2002-11-20 10:18:15
Message-ID: 3DDB6167.8050300@boston-labs.com (view raw or flat)
Thread:
Lists: pgsql-odbc
Dear Friends,

My program (using odbc interface under Linus to access a database) works 
fine with libodbc++-0.2.2pre5-1 under RH Linux 7.2, 
but libodbc++-0.2.2pre5-1 is not available easily. The latest libodbc 
available easily is libodbc++-0.2.2pre4-12.i386.rpm.
The problem arises when I installed libodbc++-0.2.2pre4-12, my program 
gives segmentation fault

strace for the binary is as given below.
It will be very helpfull if anybody knows about what exactly is 
happening and the what I need to do to solve this problem.

Othere packages used in program
-------------------------------------------
postgresql-7.1.3-2
unixODBC-2.0.8-1


Regards
Ashish

-------------------------------------------------------------------------------------------------------------------------
execve("/bin/scrafter-createdb", ["scrafter-createdb"], [/* 24 vars */]) = 0
uname({sys="Linux", node="scrafter", ...}) = 0
brk(0)                                  = 0x804dcb8
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=53910, ...}) = 0
old_mmap(NULL, 53910, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3)                                = 0
open("/usr/lib/libodbc++.so.4", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300]\2"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=3167702, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x40025000
old_mmap(NULL, 968728, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40026000
mprotect(0x400fd000, 88088, PROT_NONE)  = 0
old_mmap(0x400fd000, 90112, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0xd6000) = 0x400fd000
close(3)                                = 0
open("/usr/lib/libodbc.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320f\0"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=362673, ...}) = 0
old_mmap(NULL, 344184, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40113000
mprotect(0x40165000, 8312, PROT_NONE)   = 0
old_mmap(0x40165000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x51000) = 0x40165000
close(3)                                = 0
open("/usr/lib/libstdc++-libc6.2-2.so.3", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P\223\1"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0555, st_size=419374, ...}) = 0
old_mmap(NULL, 270184, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x40168000
mprotect(0x401a1000, 36712, PROT_NONE)  = 0
old_mmap(0x401a1000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x38000) = 0x401a1000
old_mmap(0x401a8000, 8040, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x401a8000
close(3)                                = 0
open("/lib/i686/libm.so.6", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320H\0"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=622317, ...}) = 0
old_mmap(NULL, 142580, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401aa000
mprotect(0x401cc000, 3316, PROT_NONE)   = 0
old_mmap(0x401cc000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x21000) = 0x401cc000
close(3)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \306\1"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5772268, ...}) = 0
old_mmap(NULL, 1290088, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x401cd000
mprotect(0x402ff000, 36712, PROT_NONE)  = 0
old_mmap(0x402ff000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x131000) = 0x402ff000
old_mmap(0x40304000, 16232, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40304000
close(3)                                = 0
open("/lib/i686/libpthread.so.0", O_RDONLY) = 3
.
.
.
.
.
.
.
.
.
.
.open("/etc/odbc.ini", O_RDONLY)         = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=400, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x40023000
read(3, "[safeaddsql]\nDescription        "..., 4096) = 400
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40023000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sin_family=AF_UNIX, path="/tmp/.s.PGSQL.5432"}, 110) = 0
send(3, "\0\0\1(\0\2\0\0safeadd\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 
296, 0x4000) = 296
recv(3, "R\0\0\0\0", 4096, 0)           = 5
send(3, "Q \0", 3, 0x4000)              = 3
recv(3, "K\0\0\6=?\373\242\230ZI\0Z", 4096, 0) = 13
brk(0x8070000)                          = 0x8070000
time(NULL)                              = 1037782872
open("/etc/localtime", O_RDONLY)        = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=109, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x40023000
read(4, "TZif\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0"..., 
4096) = 109
close(4)                                = 0
munmap(0x40023000, 4096)                = 0
send(3, "Qset DateStyle to \'ISO\'\0", 24, 0x4000) = 24
recv(3, "CSET VARIABLE\0Z", 4096, 0)    = 15
send(3, "Q \0", 3, 0x4000)              = 3
recv(3, "I\0Z", 4096, 0)                = 3
time(NULL)                              = 1037782872
send(3, "Qset geqo to \'OFF\'\0", 19, 0x4000) = 19
recv(3, "CSET VARIABLE\0Z", 4096, 0)    = 15
send(3, "Q \0", 3, 0x4000)              = 3
recv(3, "I\0Z", 4096, 0)                = 3
time(NULL)                              = 1037782872
send(3, "Qset ksqo to \'ON\'\0", 18, 0x4000) = 18
recv(3, "CSET VARIABLE\0Z", 4096, 0)    = 15
send(3, "Q \0", 3, 0x4000)              = 3
recv(3, "I\0Z", 4096, 0)                = 3
time(NULL)                              = 1037782872
send(3, "Qselect oid from pg_type where t"..., 44, 0x4000) = 44
recv(3, "Pblank\0T\0\1oid\0\0\0\0\32\0\4\377\377\377\377CSELECT"..., 
4096, 0) = 33
time(NULL)                              = 1037782872
send(3, "Qselect version()\0", 18, 0x4000) = 18
recv(3, "Pblank\0T\0\1version\0\0\0\0\31\377\377\377\377\377\377"..., 
4096, 0) = 102
time(NULL)                              = 1037782872
semop(98307, 0xbffff7f0, 2)             = 0
semop(98307, 0xbffff7f0, 1)             = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++



pgsql-odbc by date

Next:From: Ashish LewalkarDate: 2002-11-20 10:28:04
Subject: change in the odbc++ version leads to the problem
Previous:From: David A. LeedomDate: 2002-11-20 04:37:33
Subject: Install

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