Skip to Content.
Sympa Menu

freetds - [freetds] SEGV on connect

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Dirk Koopman <freetds AT tobit.co.uk>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] SEGV on connect
  • Date: Mon, 21 Mar 2005 16:35:17 +0000

Just recently I have been happily running compiling 0.62.4 on various
machines and it all just works. Now I try on RedHat Enterprise 3 and it
SEGVs on a database connect. It appears that something is not being set
up correctly.

Any clues?


_SQLGetDiagRec (handleType=0, handle=0x8ef02b8, numRecord=1,
szSqlState=0xbfff72f0 "", pfNativeError=0xbfff70e8, szErrorMsg=0x0,
cbErrorMsgMax=511, pcbErrorMsg=0x0) at error.c:457
457 odbc_ver = ((TDS_DBC *)
handle)->env->attr.odbc_version;
(gdb) bt
#0 _SQLGetDiagRec (handleType=0, handle=0x8ef02b8, numRecord=1,
szSqlState=0xbfff72f0 "", pfNativeError=0xbfff70e8, szErrorMsg=0x0,
cbErrorMsgMax=511, pcbErrorMsg=0x0) at error.c:457
#1 0x002f5e8b in SQLError (henv=0x8ef02b8, hdbc=0xfffffffe, hstmt=0x0,
szSqlState=0x0, pfNativeError=0x0, szErrorMsg=0x0,
cbErrorMsgMax=511, pcbErrorMsg=0x0) at error.c:519
#2 0x0027537f in AllODBCErrors (henv=0x8eefd28, hdbc=0x8ef02b8, hstmt=0x0,
output=0, logfp=0x8bb8bfc) at dbdimp.c:4237
#3 0x0026ec51 in odbc_db_login6 (dbh=0x8ec8a60, imp_dbh=0x8ed4638,
dbname=0x8eda358 "cpa", uid=0x8eda368 "sa", pwd=0x8eda378 "sibi123",
attr=0x8ec8a30) at dbdimp.c:648
#4 0x00269fff in XS_DBD__ODBC__db__login (cv=0x8eecbb8) at ODBC.xsi:92
#5 0x00d7aef2 in Perl_pp_entersub () at pp_hot.c:2890
#6 0x00d64222 in Perl_runops_debug () at dump.c:1449
#7 0x00d2654a in S_call_body (myop=0x0, is_eval=0) at perl.c:2298
#8 0x00d25ee7 in Perl_call_sv (sv=0x8ec8970, flags=0) at perl.c:2177
#9 0x003b0237 in XS_DBI_dispatch (cv=0x8e899a0) at DBI.xs:2674
#10 0x00d7aef2 in Perl_pp_entersub () at pp_hot.c:2890
#11 0x00d64222 in Perl_runops_debug () at dump.c:1449
#12 0x00d259cb in S_run_body (oldscope=1) at perl.c:1934
#13 0x00d255dd in perl_run (my_perl=0x8bb2008) at perl.c:1853
#14 0x080492e0 in main (argc=4, argv=0xbfff83a4, env=0xbfff83b8) at
perlmain.c:98
(gdb) p ((TDS_DBC *) handle)
$1 = (struct _hdbc *) 0x8ef02b8
(gdb) p *((TDS_DBC *) handle)
$2 = {htype = 19290, env = 0x0, tds_socket = 0x4509090a, dsn = 0x3a746978,
server = 0x4c51535b, current_statement = 0x5252455f, errs = {
lastrc = 21071, num_errors = 1565738068, errs = 0x4c51535b}, attr =
{access_mode = 1919243040, async_enable = 1567778166,
auto_ipd = 1819635523, autocommit = 1869488228, connection_dead =
1768300660, connection_timeout = 1428186222,
current_catalog = 0x70204449, login_timeout = 1835102817, metadata_id =
1919251557, odbc_cursors = 0, packet_size = 0,
quite_mode = 0x0, translate_lib = 0x0, translate_option = 0,
txn_isolation = 0}, uad = {0x0 <repeats 100 times>}}
(gdb)




  • [freetds] SEGV on connect, Dirk Koopman, 03/21/2005

Archive powered by MHonArc 2.6.24.

Top of Page