[freetds] Compiling on FreeBSD without ICONV

Alan Pettigrew alan at pettigrew.fsnet.co.uk
Tue Jun 10 12:23:45 EDT 2003


----- Original Message -----
From: "Lowden, James K" <LowdenJK at bernstein.com>
To: "'Alan Pettigrew'" <alan at pettigrew.fsnet.co.uk>; "'FreeTDS Development
Group'" <freetds at lists.ibiblio.org>
Sent: Tuesday, June 10, 2003 4:14 PM
Subject: RE: [freetds] Compiling on FreeBSD without ICONV


> From: Alan Pettigrew [mailto:alan at pettigrew.fsnet.co.uk]
> Sent: June 10, 2003 9:06 AM
>
> =================
> open("/tmp/freetds.log", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 8
> gettimeofday({1055242921, 538030}, NULL) = 0
> fstat(8, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> write(8, "Starting log file for FreeTDS 0."..., 93) = 93
> write(8, "names for ISO-8859-1: ISO-8859-1"..., 33) = 33
> write(8, "names for UTF-8: UTF-8\n", 23) = 23
...
> kill(89855, SIGABRT <unfinished ...>
> ==================================

>>Nice trace.  How did you get it?
I loaded perl -wd file.pl so it loaded and stopped, then looked at the PID
for perl and did
strace -f -p<pid>
then ran the perl script.

> The gdb trace shows
> ========================
...
> #10 0x2835f1cf in tds_connect (tds=0x8306d00, connect_info=0x8306c00)
>     at login.c:316
> #11 0x2834edc6 in do_connect (dbc=0x8390ce0, connect_info=0x8306c00)
>     at odbc.c:215
> ===============================
>
> This gdb trace suggests that there is an interface problem, connect is
> trying to return but is picking the wrong address off the stack.

>>This is consistent with the recompile theory.  Perl is populating an old
>>structure based on older headers, passing that structure to tds_connect,
and
>>suddenly it's Goodnight, Gracie.
I have recompiled DBD::ODBC, DBD::Sybase, DBI.  I get exactly the same crash
on all.  I reinstalled the unedited freetds and recompiled the above.  All
give the same error.

I will try 0.61 again.

>>--jkl

Alan




More information about the FreeTDS mailing list