Skip to Content.
Sympa Menu

freetds - [freetds] Segmentation fault in DBLIB - SETUSER/SETPWD

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Amanda Wise" <awise AT idtdna.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Segmentation fault in DBLIB - SETUSER/SETPWD
  • Date: Tue, 18 Sep 2007 13:13:59 -0500

In reference to my previous email, I found the link to the original topic
from July 2003.

https://lists.ibiblio.org/sympa/arc/freetds/2003q3/013444.html

I have narrowed down the problem to the following places using GDB:

For SETUSER:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208211776 (LWP 30863)]
tds_dstr_copy (s=0x6373748a, src=0xbffd0700 "XXXXX\t") at tdsstring.c:126

126 if (*s != (DSTR) &tds_str_empty)
#0 tds_dstr_copy (s=0x6373748a, src=0xbffd0700 "XXXXX\t")
at tdsstring.c:126
#1 0x00325e2a in tds_set_user (tds_login=0x63737462,
username=0xbffd0700 "XXXXX\t") at login.c:94
#2 0x003106ec in dbsetlname (login=0xbffd0500, value=0xbffd0700 "XXXXX\t",
which=2) at dblib.c:441
#3 0x0804f0a9 in DBConnection::connect (this=0xbffd0500)
at DBConnection.cpp:59
#4 0x0805d8b0 in main (argc=1, argv=0xbffd0d94) at Main_parse.cpp:16

For SETPWD:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208592704 (LWP 30852)]
0x0092e44c in tds_dstr_zero (s=0x6373748e) at tdsstring.c:63

63 if (*s)
#0 0x0092e44c in tds_dstr_zero (s=0x6373748e) at tdsstring.c:63
#1 0x0091cde3 in tds_set_passwd (tds_login=0x63737462,
password=0xbfe2ac00 "XXXXX") at login.c:81
#2 0x009076fe in dbsetlname (login=0xbfe2ac00, value=0xbfe2ac00 "XXXXX",
which=3) at dblib.c:445
#3 0x0804f0a2 in DBConnection::connect (this=0xbfe2ac00)
at DBConnection.cpp:60

Each string value was taken from the PWD file, and are correct. The ones
from the username have a tab character after, while those for the password do
not.

Thank you,
AW




Archive powered by MHonArc 2.6.24.

Top of Page