[freetds] 0.61 tsql core dump, locale = "C C C C C C"

Cooperstock, Dan dan.cooperstock at hepcoe.com
Thu May 8 17:24:09 EDT 2003


I don't seem to have TDSDUMPCONFIG set in my environment. At least,
	env | grep TDS
doesn't show anything. Is there some other way this functionality could be
turned on?

I am indeed on a 64-bit architecture.

I haven't used gdb for years, but I gave it a try. Here's what I got. First,
after running, it gave:

Program received signal SIGBUS, Bus error.
0x800003ffff6c2fc4 in __getpwuid_r_posix () from /lib/pa20_64/libc.2

Here's the backtrace:

#0  0x800003ffff6c2fc4 in __getpwuid_r_posix () from /lib/pa20_64/libc.2
#1  0x800003ffff7901e8 in tds_get_homedir () at threadsafe.c:235
#2  0x800003ffff788fa0 in tds_get_home_file (
    file=0x800003ffff762a18 ".freetds.conf") at config.c:210
#3  0x800003ffff789128 in tds_read_conf_file
(connect_info=0x8000000100008810,
    server=0x8000000100008450 "sqldev") at config.c:247
#4  0x800003ffff788c80 in tds_read_config_info (tds=0x0,
    login=0x8000000100007b60, locale=0x8000000100007c00) at config.c:143
#5  0x4000000000004428 in main (argc=7, argv=0x800003ffff7f0760) at
tsql.c:448

Dan Cooperstock, Senior Technical Consultant, HEPCOE Credit Union
dcoops at hepcoe.com    416-597-5055

-----Original Message-----
From: Lowden, James K [mailto:LowdenJK at bernstein.com]
Sent: Thursday, May 08, 2003 4:40 PM
To: 'FreeTDS Development Group'
Subject: RE: [freetds] 0.61 tsql core dump, locale = "C C C C C C"

> From: Cooperstock, Dan [mailto:dan.cooperstock at hepcoe.com]
> Sent: May 8, 2003 4:11 PM
>
> I've compiled 0.61, using these arguments to configure:
>
> ./configure --with-tdsver=8.0 --enable-msdblib
>
> When I run tsql and try to connect to my MS SQL Server 2000, I get the
> following output:
>
> in main[1]/usr/local/etc/locales.conf
> Found file.
> Looking for section default.
> Found section default.
> Got a match.
> insection!

Dan, is there any chance TDSDUMPCONFIG is set to stderr?  There's no chance
this is tsql output you're looking at. 

...
> Bus error (core dumped)

It would be helpful if you could run tsql under gdb and show us the
backtrace after the bus error.  Apparently you're using a 64-bit
architecture and stumbled on a 32-bit assumption.  :-(

It could also be that once you turn off TDSDUMPCONFIG, the bus error will go
way.  ISTR something along those lines.  

Regards,

--jkl


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