[freetds] Compiling on FreeBSD without ICONV

Lowden, James K LowdenJK at bernstein.com
Tue Jun 10 11:14:17 EDT 2003

> 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?  

> 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.  

The information contained in this transmission may contain privileged and confidential information and is intended only for the use of the person(s) named above. If you are not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender immediately by reply e-mail and destroy all copies of the original message. Please note that we do not accept account orders and/or instructions by e-mail, and therefore will not be responsible for carrying out such orders and/or instructions.

More information about the FreeTDS mailing list