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

Lowden, James K LowdenJK at bernstein.com
Wed Jun 4 11:45:48 EDT 2003

> From: Cooperstock, Dan [mailto:dan.cooperstock at hepcoe.com]
> Sent: June 4, 2003 10:20 AM
> OK, I'm back from 2 weeks' vacation. 

Oh, well.  ;-)

> (gdb) watch dumpfile != 0
> No symbol "dumpfile" in current context.
> What do I try next?

Works for me?  The symbol is in libtds:

$ grep -n dumpfile src/tds/util.c |head -1
69:static FILE *dumpfile = NULL;        /* file pointer for dump log */

Maybe libtds wasn't compiled with "-g" or was stripped?  

$ ldd $(which tsql) |grep libtds |cut -f4 -d' ' \
	|sed s'/$/*/'| sed 's/^/file /' |sh
/usr/local/lib/libtds.so.2:   symbolic link to libtds.so.2.0
/usr/local/lib/libtds.so.2.0: ELF 32-bit LSB shared object, Intel 80386, version 1, not stripped

Or try "help symbol" in gdb.  

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