__libc_start_main(0x8049945, 1, 0xbf90eaf4, 0x804d790, 0x804d780 <unfinished ...>
strlen("/home/freddy/cpp/freetds/"...)    = 73
__cxa_atexit(0x804c9d0, 0, 0, 0x804f6ec, 0xbf90e9f8) = 0
strlen("/home/freddy/cpp/freetds/"...)    = 74
__xpg_basename(0xbf90fb09, 0, 0, 0, 0)           = 0xbf90fb0b
dirname(0xbf90fb09, 0, 0, 0, 0)                  = 0xbf90fb09
getopt(1, 0xbf90eaf4, "U:P:S:D:f:v")             = -1
strcpy(0xbf90d3ec, "../../../PWD")               = 0xbf90d3ec
fopen64("../../../PWD", "r")                     = 0x8052028
fgets("# This file was taken from DBD::"..., 512, 0x8052028) = 0xbf90e3ec
strtok("# This file was taken from DBD::"..., "=") = "# This file was taken from DBD::"...
strtok(NULL, "\n")                               = NULL
fgets("# the installation\n", 512, 0x8052028)    = 0xbf90e3ec
strtok("# the installation\n", "=")              = "# the installation\n"
strtok(NULL, "\n")                               = NULL
fgets("#\n", 512, 0x8052028)                     = 0xbf90e3ec
strtok("#\n", "=")                               = "#\n"
strtok(NULL, "\n")                               = NULL
fgets("# UID: the username of a user to"..., 512, 0x8052028) = 0xbf90e3ec
strtok("# UID: the username of a user to"..., "=") = "# UID: the username of a user to"...
strtok(NULL, "\n")                               = NULL
fgets("# PWD: the password for that use"..., 512, 0x8052028) = 0xbf90e3ec
strtok("# PWD: the password for that use"..., "=") = "# PWD: the password for that use"...
strtok(NULL, "\n")                               = NULL
fgets("# SRV: the symbolic server name "..., 512, 0x8052028) = 0xbf90e3ec
strtok("# SRV: the symbolic server name "..., "=") = "# SRV: the symbolic server name "...
strtok(NULL, "\n")                               = NULL
fgets("#      Note: if you use a hostna"..., 512, 0x8052028) = 0xbf90e3ec
strtok("#      Note: if you use a hostna"..., "=") = "#      Note: if you use a hostna"...
strtok(NULL, "\n")                               = NULL
fgets("#      connect using the compile"..., 512, 0x8052028) = 0xbf90e3ec
strtok("#      connect using the compile"..., "=") = "#      connect using the compile"...
strtok(NULL, "\n")                               = NULL
fgets("#      4.2 or 7.0) which is usua"..., 512, 0x8052028) = 0xbf90e3ec
strtok("#      4.2 or 7.0) which is usua"..., "=") = "#      4.2 or 7.0) which is usua"...
strtok(NULL, "\n")                               = NULL
fgets("# DB:  Database in which to crea"..., 512, 0x8052028) = 0xbf90e3ec
strtok("# DB:  Database in which to crea"..., "=") = "# DB:  Database in which to crea"...
strtok(NULL, "\n")                               = NULL
fgets("#      Sybase or MS SQL server, "..., 512, 0x8052028) = 0xbf90e3ec
strtok("#      Sybase or MS SQL server, "..., "=") = "#      Sybase or MS SQL server, "...
strtok(NULL, "\n")                               = NULL
fgets("#      is a good default choice "..., 512, 0x8052028) = 0xbf90e3ec
strtok("#      is a good default choice "..., "=") = "#      is a good default choice "...
strtok(NULL, "\n")                               = NULL
fgets("#\n", 512, 0x8052028)                     = 0xbf90e3ec
strtok("#\n", "=")                               = "#\n"
strtok(NULL, "\n")                               = NULL
fgets("#UID=guest\n", 512, 0x8052028)            = 0xbf90e3ec
strtok("#UID=guest\n", "=")                      = "#UID"
strtok(NULL, "\n")                               = "guest"
fgets("#PWD=sybase\n", 512, 0x8052028)           = 0xbf90e3ec
strtok("#PWD=sybase\n", "=")                     = "#PWD"
strtok(NULL, "\n")                               = "sybase"
fgets("#SRV=JDBC\n", 512, 0x8052028)             = 0xbf90e3ec
strtok("#SRV=JDBC\n", "=")                       = "#SRV"
strtok(NULL, "\n")                               = "JDBC"
fgets("#DB=tempdb\n", 512, 0x8052028)            = 0xbf90e3ec
strtok("#DB=tempdb\n", "=")                      = "#DB"
strtok(NULL, "\n")                               = "tempdb"
fgets("UID=testuser\n", 512, 0x8052028)          = 0xbf90e3ec
strtok("UID=testuser\n", "=")                    = "UID"
strtok(NULL, "\n")                               = "testuser"
strcpy(0x80502a0, "testuser")                    = 0x80502a0
fgets("PWD=testpwd\n", 512, 0x8052028)           = 0xbf90e3ec
strtok("PWD=testpwd\n", "=")                     = "PWD"
strtok(NULL, "\n")                               = "testpwd"
strcpy(0x80508a0, "testpwd")                     = 0x80508a0
fgets("SRV=TESTSRV1\n", 512, 0x8052028)          = 0xbf90e3ec
strtok("SRV=TESTSRV1\n", "=")                    = "SRV"
strtok(NULL, "\n")                               = "TESTSRV1"
strcpy(0x80506a0, "TESTSRV1")                    = 0x80506a0
fgets("DB=FreeTDS\n", 512, 0x8052028)            = 0xbf90e3ec
strtok("DB=FreeTDS\n", "=")                      = "DB"
strtok(NULL, "\n")                               = "FreeTDS"
strcpy(0x80504a0, "FreeTDS")                     = 0x80504a0
fgets("\n", 512, 0x8052028)                      = 0xbf90e3ec
strtok("\n", "=")                                = "\n"
strtok(NULL, "\n")                               = NULL
fgets("\n", 512, 0x8052028)                      = NULL
fclose(0x8052028)                                = 0
found TESTSRV1.FreeTDS for testuser in "../../../PWD"
printf("found %s.%s for %s in "%s"\n", "TESTSRV1", "FreeTDS", "testuser", "../../../PWD") = 54
Start
fwrite("Start\n", 1, 6, 0xc654c0)                = 6
calloc(12, 1)                                    = 0x8052028
dbinit(0x804da57, 1, 6, 0xc654c0, 0xb2b6d4)      = 1
calloc(12, 1)                                    = 0x8052038
dberrhandle(0x8049274, 1, 6, 0xc654c0, 0xb2b6d4) = 0
dbmsghandle(0x804b8c9, 1, 6, 0xc654c0, 0xb2b6d4) = 0
About to logon
fwrite("About to logon\n", 1, 15, 0xc654c0)      = 15
calloc(12, 1)                                    = 0x8052048
dblogin(0x804da5e, 1, 15, 0xc654c0, 0xb2b6d4)    = 0x8052058
dbsetlname(0x8052058, 0x80508a0, 3, 0xc654c0, 0xb2b6d4) = 1
dbsetlname(0x8052058, 0x80502a0, 2, 0xc654c0, 0xb2b6d4) = 1
dbsetlname(0x8052058, 0x804da6e, 5, 0xc654c0, 0xb2b6d4) = 1
About to open TESTSRV1.FreeTDS
fprintf(0xc654c0, "About to open %s.%s\n", "TESTSRV1", "FreeTDS") = 31
calloc(12, 1)                                    = 0x80522a8
using 3 1-second login timeouts
printf("using %d 1-second login timeouts"..., 3) = 32
dbsetlogintime(1, 3, 0x80506a0, 0x80504a0, 0xb2b6d4) = 1
time(NULL)                                       = 1196161322
dbopen(0x8052058, 0x80506a0, 0x80506a0, 0x80504a0, 0xb2b6d4 <unfinished ...>
strchr("Changed database context to 'Fre"..., ''') = "'FreeTDS'."
strchr("Changed language setting to 'us_"..., ''') = "'us_english'."
<... dbopen resumed> )                           = 0x80522b8
connected.
puts("connected.")                               = 11
dbuse(0x80522b8, 0x80504a0, 0x80506a0, 0x80504a0, 0xb2b6d4 <unfinished ...>
strchr("Changed database context to 'Fre"..., ''') = "'FreeTDS'."
<... dbuse resumed> )                            = 1
calloc(12, 1)                                    = 0x80539f8
dbloginfree(0x8052058, 0x80504a0, 0x80506a0, 0x80504a0, 0xb2b6d4) = 0x8053a00
calloc(12, 1)                                    = 0x8052058
using 3 3-second query timeouts
printf("using %d %d-second query timeout"..., 3, 3) = 32
dbsettime(3, 3, 3, 0x80504a0, 0xb2b6d4)          = 1
issuing a query that will take 30 seconds
puts("issuing a query that will take 3"...)      = 42
dbcmd(0x80522b8, 0x804db30, 3, 0x80504a0, 0xb2b6d4) = 1
time(NULL)                                       = 1196161322
dbsetinterrupt(0x80522b8, 0x80497ed, 0x8049899, 0x80504a0, 0xb2b6d4) = 0x8049899
dbsqlsend(0x80522b8, 0x80497ed, 0x8049899, 0x80504a0, 0xb2b6d4) = 1
executing dbsqlok
puts("executing dbsqlok")                        = 18
dbsqlok(0x80522b8, 0x80497ed, 0x8049899, 0x80504a0, 0xb2b6d4 <unfinished ...>
time(NULL)                                       = 1196161323
in chkintr, 1 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 1)   = 30
time(NULL)                                       = 1196161324
in chkintr, 2 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 2)   = 30
time(NULL)                                       = 1196161325
in chkintr, 3 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 3)   = 30
time(NULL)                                       = 1196161325
1 timeouts received in 3 seconds, fprintf(0xc65560, "%d timeouts received in %ld seco"..., 1, 3) = 34
continuing to wait
fwrite("continuing to wait\n", 1, 19, 0xc65560)  = 19
time(NULL)                                       = 1196161326
in chkintr, 4 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 4)   = 30
time(NULL)                                       = 1196161327
in chkintr, 5 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 5)   = 30
in chkintr, 6 seconds elapsed
time(NULL)                                       = 1196161328
printf("in chkintr, %ld seconds elapsed\n", 6)   = 30
time(NULL)                                       = 1196161328
2 timeouts received in 6 seconds, continuing to wait
fprintf(0xc65560, "%d timeouts received in %ld seco"..., 2, 6) = 34
fwrite("continuing to wait\n", 1, 19, 0xc65560)  = 19
in chkintr, 7 seconds elapsed
time(NULL)                                       = 1196161329
printf("in chkintr, %ld seconds elapsed\n", 7)   = 30
in chkintr, 8 seconds elapsed
time(NULL)                                       = 1196161330
printf("in chkintr, %ld seconds elapsed\n", 8)   = 30
time(NULL)                                       = 1196161331
in chkintr, 9 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 9)   = 30
time(NULL)                                       = 1196161331
3 timeouts received in 9 seconds, fprintf(0xc65560, "%d timeouts received in %ld seco"..., 3, 9) = 34
continuing to wait
fwrite("continuing to wait\n", 1, 19, 0xc65560)  = 19
in chkintr, 10 seconds elapsed
time(NULL)                                       = 1196161332
printf("in chkintr, %ld seconds elapsed\n", 10)  = 31
time(NULL)                                       = 1196161333
in chkintr, 11 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 11)  = 31
time(NULL)                                       = 1196161334
in chkintr, 12 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 12)  = 31
time(NULL)                                       = 1196161334
4 timeouts received in 12 seconds, fprintf(0xc65560, "%d timeouts received in %ld seco"..., 4, 12) = 35
lost patience, cancelling (allowing 10 seconds)
fwrite("lost patience, cancelling (allow"..., 1, 48, 0xc65560) = 48
dbsettime(10, 1, 48, 0xc65560, 0xafe7ac)         = 1
time(NULL)                                       = 1196161334
in chkintr, 12 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 12)  = 31
time(NULL)                                       = 1196161334
in chkintr, 12 seconds elapsed
printf("in chkintr, %ld seconds elapsed\n", 12)  = 31
<... dbsqlok resumed> )                          = 0
Failed: dbsqlok
fwrite("Failed: dbsqlok\n", 1, 16, 0xc65560)     = 16
exit(1 <unfinished ...>
getenv("GCOV_PREFIX")                            = NULL
strcpy(0xbf90e420, "/home/freddy/cpp/freetds/"...) = 0xbf90e420
getpid()                                         = 3674
open("/home/freddy/cpp/freetds/"..., 66, 0666) = 7
fcntl(7, 7, 0xbf90e3ec, 0, 0xff8760ae)           = 0
fdopen(7, 0x804e24c, 0xbf90e3ec, 0, 0xff8760ae)  = 0x8052068
__fxstat(3, 7, 0xbf90e394)                       = 0
setbuf(0x8052068, NULL)                          = <void>
fread(0x8050abc, 1, 4096, 0x8052068)             = 1176
fseek(0x8052068, 0, 0, 0xaf1ac2, 0x6d6f682f)     = 0
fwrite("adcgp104\037\266\244\200", 1128, 1, 0x8052068) = 1
fseek(0x8052068, 1128, 0, 0x804c55d, 0x804c439)  = 0
ftell(0x8052068, 1128, 0, 0x804c55d, 0x804c439)  = 1128
fwrite("", 44, 1, 0x8052068)                     = 1
fclose(0x8052068)                                = 0
strcpy(0xbf90e420, "/home/freddy/cpp/freetds/"...) = 0xbf90e420
getpid()                                         = 3674
open("/home/freddy/cpp/freetds/"..., 66, 0666) = 7
fcntl(7, 7, 0xbf90e3ec, 0x80520af, 1128)         = 0
fdopen(7, 0x804e24c, 0xbf90e3ec, 0x80520af, 1128) = 0x8052068
__fxstat(3, 7, 0xbf90e394)                       = 0
setbuf(0x8052068, NULL)                          = <void>
fread(0x8050abc, 1, 4096, 0x8052068)             = 2568
fseek(0x8052068, 0, 0, 0xaf1ac2, 0x6d6f682f)     = 0
fwrite("adcgp104\340L\230\200", 1288, 1, 0x8052068) = 1
fseek(0x8052068, 2476, 0, 0x804c55d, 0x804c439)  = 0
ftell(0x8052068, 2476, 0, 0x804c55d, 0x804c439)  = 2476
fwrite("", 44, 1, 0x8052068)                     = 1
fclose(0x8052068)                                = 0
+++ exited (status 1) +++