7.1 beta 4 ODBC Connection Problem

From: Steve Wranovsky <stevew(at)merge(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: 7.1 beta 4 ODBC Connection Problem
Date: 2001-02-07 23:03:40
Message-ID: 4.3.2.7.2.20010207165510.00c36380@mail.merge.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello,

I have been successfully using 7.0.3 with our application under Redhat 6.0.
We are using the ODBC interface under Linux to access a database.

I decided to test the 7.1 beta 4 with our application, and installed the
RPMs from the PostgreSQL.org ftp site. I was able to install everything, create
our database and check it with psql, however, when I try and access the database
via ODBC, I run into problems.

I get a seg fault when I try and connect to the database via SQLConnect. Below
is a stack trace from the core file. The crash occurs in sprintf.

FYI, I also decided to try the 7.1 beta 3 release. I was able to Connect
properly with this release, so the problem appears to be specific to 7.1 beta 4.

Anyone have any ideas?

Thanks,
Steve

[mergeark(at)steveark mergeark]$ gdb adopt_std core
GNU gdb 4.17.0.11 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
Core was generated by `adopt_std /dev/scd0 1'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /home/mergeark/exe/lib/libmergebox.so...done.
Reading symbols from /usr/lib/libpsqlodbc.so.0...done.
Reading symbols from /home/mergeark/exe/lib/mc3adv.so...done.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
#0 0x40171e23 in _IO_vfprintf (s=0xbfffd7e0, format=0x40064409 "%c.%c", ap=0xbfffd8ac) at vfprintf.c:1248
vfprintf.c:1248: No such file or directory.
(gdb) bt
#0 0x40171e23 in _IO_vfprintf (s=0xbfffd7e0, format=0x40064409 "%c.%c", ap=0xbfffd8ac) at vfprintf.c:1248
#1 0x4017e0b3 in _IO_vsprintf (string=0x400643df "0.0", format=0x40064409 "%c.%c", args=0xbfffd8a8) at iovsprintf.c:47
#2 0x4017876f in sprintf (s=0x400643df "0.0", format=0x40064409 "%c.%c") at sprintf.c:38
#3 0x4004f268 in CC_lookup_pg_version ()
#4 0x4004def9 in CC_connect ()
#5 0x4004d0b4 in SQLConnect ()
#6 0x8057efa in DatabaseConnect ()
#7 0x8057c1e in ADB_DatabaseInit ()
#8 0x804a802 in Initialize_Process () at adopt_std.c:238
#9 0x804bf7b in main (ac=3, av=0xbffff754) at adopt_std.c:934
#10 0x40143cb3 in __libc_start_main (main=0x804be8c <main>, argc=3, argv=0xbffff754, init=0x8049b6c <_init>,
fini=0x8068614 <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffff74c) at ../sysdeps/generic/libc-start.c:78
(gdb)

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2001-02-08 00:38:51 Re: 7.1 beta 4 ODBC Connection Problem
Previous Message Peter Mount 2001-02-07 22:07:28 Re: PostgreSQL and PHP persistent connections