freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Chad Wagner <vdr781 AT yahoo.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] HP/UX 10.20 core dumping
- Date: Mon, 3 Mar 2003 18:26:30 -0800 (PST)
Having a bit of trouble with HP/UX 10.20 and FreeTDS
0.61 with iODBC 3.0.6. It appears to core dump when
in the tds_dstr_copyn function. The reason appears to
be when connect_info is passed into
tdoParseConnectString the address is chopped from
0x40101328 to 0x101328... Any ideas with this one?
Anyone successfully build FreeTDS against HP/UX 10.20,
if so were there any special optimization required?
Environment:
HP/UX 10.20
FreeTDS 0.61 (--with-tdsver=8.0)
iODBC 3.0.6
Perl 5.6.1
DBI 1.30
DBD::ODBC 1.04
gcc 3.x
(gdb) bt
#0 0x6e478 in free ()
#1 0xc65c6bf8 in tds_dstr_copyn (s=0x10134c,
src=0x7b03b59e "app;PWD=app",
length=3) at tdsstring.c:83
#2 0xc65a8e48 in tdoParseConnectString (
pszConnectString=0x7b03b590
"DSN=MSSQL;UID=app;PWD=app",
connect_info=0x101328) at connectparams.c:201
#3 0xc65a2964 in SQLDriverConnect (hdbc=0x4009c080,
hwnd=0x7b03b59e,
szConnStrIn=0x7b03b590
"DSN=MSSQL;UID=app;PWD=app", cbConnStrIn=0,
szConnStrOut=0x7b03b790 "", cbConnStrOutMax=2048,
pcbConnStrOut=0x7b03bf90, fDriverCompletion=0) at
odbc.c:187
#4 0xc6581608 in SQLDriverConnect (hdbc=0x40024bc8,
hwnd=0x0,
szConnStrIn=0x7b03b590
"DSN=MSSQL;UID=app;PWD=app", cbConnStrIn=25,
szConnStrOut=0x7b03b790 "", cbConnStrOutMax=2048,
pcbConnStrOut=0x7b03bf90, fDriverCompletion=0) at
connect.c:1148
#5 0xc65365bc in odbc_db_login6 ()
#6 0xc652e984 in XS_DBD__ODBC__db__login ()
#7 0xdd684 in Perl_pp_entersub ()
#8 0xd6374 in Perl_runops_standard ()
#9 0x69814 in S_call_body ()
#10 0x69244 in perl_call_sv ()
#11 0xc07c911c in XS_DBI_dispatch ()
#12 0xdd684 in Perl_pp_entersub ()
#13 0xd6374 in Perl_runops_standard ()
#14 0x68ce0 in S_run_body ()
#15 0x68930 in perl_run ()
#16 0x5c924 in main ()
(gdb) up
#1 0xc65c6bf8 in tds_dstr_copyn (s=0x10134c,
src=0x7b03b59e "app;PWD=app",
length=3) at tdsstring.c:83
83 free(*s);
(gdb) up
#2 0xc65a8e48 in tdoParseConnectString (
pszConnectString=0x7b03b590
"DSN=MSSQL;UID=app;PWD=app",
connect_info=0x101328) at connectparams.c:201
201 if
(!tds_dstr_copyn(dest_s, p, end - p))
(gdb) up
#3 0xc65a2964 in SQLDriverConnect (hdbc=0x4009c080,
hwnd=0x7b03b59e,
szConnStrIn=0x7b03b590
"DSN=MSSQL;UID=app;PWD=app", cbConnStrIn=0,
szConnStrOut=0x7b03b790 "", cbConnStrOutMax=2048,
pcbConnStrOut=0x7b03bf90, fDriverCompletion=0) at
odbc.c:187
187 tdoParseConnectString((char *)
szConnStrIn, connect_info);
(gdb) print connect_info
$1 = (TDSCONNECTINFO *) 0x40101328
(gdb) print connect_info
$2 = (TDSCONNECTINFO *) 0x101328
(gdb) print ((TDSCONNECTINFO
*)0x40101328)->server_name
$3 = 0x400345e4 "localhost"
(gdb) up
#3 0xc65a2964 in SQLDriverConnect (hdbc=0x4009c080,
hwnd=0x7b03b59e,
szConnStrIn=0x7b03b590
"DSN=MSSQL;UID=app;PWD=app", cbConnStrIn=0,
szConnStrOut=0x7b03b790 "", cbConnStrOutMax=2048,
pcbConnStrOut=0x7b03bf90, fDriverCompletion=0) at
odbc.c:187
187 tdoParseConnectString((char *)
szConnStrIn, connect_info);
(gdb) print connect_info->server_name
$4 = 0x400345e4 "localhost"
(gdb) print connect_info->server_name
$6 = 0x48353dd1 <Address 0x48353dd1 out of bounds>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-
[freetds] HP/UX 10.20 core dumping,
Chad Wagner, 03/03/2003
- Re: [freetds] HP/UX 10.20 core dumping, Chad Wagner, 03/04/2003
Archive powered by MHonArc 2.6.24.