Jose wrote:
>
> Environment:
> SunOS 5.8
>
> unixODBC-2.0.7
> g++ 2.95.3
> postgresql 7.0.3
>
> Checking our binary with purify crashes doing SQLConnect.
> It works fine executing without purify.
> Traces with purify:
> CC_connect [libpsqlodbc.so.0.26]
> SQLConnect [libpsqlodbc.so.0.26]
> SQLConnect [SQLConnect.c:2391]
>
> if ( CHECK_SQLCONNECT( connection ))
> {
> => ret_from_connect = SQLCONNECT( connection,
> connection -> driver_dbc,
> dsn, SQL_NTS,
> user_name, name_length2,
>
> Received signal 10 (SIGBUS - Bus Error)
> Faulting address = 0x837d18b5
> Signal mask: (SIGBUS)
> Pending signals:
>
> Does anybody have the same problem?
>
You seem to be using the driver for iODBC.
UnixODBC has its own driver for PostgreSQL and its name
is libodbcpsql.so... Please try the driver.
regards,
Hiroshi Inoue