Skip to Content.
Sympa Menu

freetds - [freetds] gdb output for tsql -FreeTDS on Interix

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Swapna_Anand <Swapna_Anand AT Satyam.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: [freetds] gdb output for tsql -FreeTDS on Interix
  • Date: Wed, 29 Oct 2003 17:48:46 +0530

Hi All,

Found lots of help in freetds archives...thanks a lot for
maintaining them.

I am reading through the "iconv" related archives, so far very little sunk
in. Sure would try and read more on that..

Bill,

Thanks for mentioning the debugger. Got few more options to use with gdb
from the list.

Script created for TSQL


Script started on Wed Oct 29 17:23:42 2003
Script flushing every 30 seconds
$ gdb tsql
GNU gdb 2002-11-11-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i586-pc-interix3"...
(gdb) r -S CCR23MSG2F08 -U sa -P freetds -p 1433 -I
/dev/fs/C/SFU/usr/examples/fr
eetds-0.62.dev.20030410/freetds.conf
Starting program:
/dev/fs/C/SFU/usr/examples/freetds-0.62.dev.20030410/src/apps/
tsql -S CCR23MSG2F08 -U sa -P freetds -p 1433 -I
/dev/fs/C/SFU/usr/examples/freetds-0.62.dev.20030410/freetds.conf
locale is "POSIX:POSIX:POSIX:POSIX:POSIX:POSIX"
charset is "ASCII"
option is S
option is U
option is P
option is p
option is I
abt to open connection
CONFIG.C:login server name CCR23MSG2F08
host name=ctpmcgindran,srv name=CCR23MSG2F08
here the val is ctpmcgindran
logfile specfd =/tmp/freetds.log and hnam=ctpmcgindran
end of new code
before 7 send login
abt to put the string of the host
ctpmcgindran
bpc is 0 ,str=ctpmcgindran ,len=12
tsql: Assertion failed: "bpc", file write.c, line 128

Program received signal SIGABRT, Aborted.
0x77f8917a in ?? ()
(gdb) bt
#0 0x77f8917a in ?? ()
#1 0x77d815f2 in abort () from /usr/lib/libc.so.3.5
#2 0x77d82bb9 in _assert () from /usr/lib/libc.so.3.5
#3 0x00416b0e in tds_put_string ()
#4 0x00406c5e in tds7_send_login ()
#5 0x00405913 in tds_connect ()
#6 0x004024ef in main (argc=11, argv=0x10904) at tsql.c:484
(gdb) l
484 if (!connect_info || tds_connect(tds, connect_info) ==
TDS_FAIL)
{
485 tds_free_connect(connect_info);
486 fprintf(stderr, "There was a problem connecting to
the s
erver\n");
487 exit(1);
488 }
489 tds_free_connect(connect_info);
490 /* give the buffer an initial size */
491 bufsz = 4096;
492 mybuf = (char *) malloc(bufsz);
493 mybuf[0] = '\0';
(gdb) kill
Kill the program being debugged? (y or n) y
(gdb) quit
$ exit
Script done on Wed Oct 29 17:27:11 2003



Many Thanks
Swapna



**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************



  • [freetds] gdb output for tsql -FreeTDS on Interix, Swapna_Anand, 10/29/2003

Archive powered by MHonArc 2.6.24.

Top of Page