__libc_start_main(0x804ac8e, 1, 0xbfc13604, 0x804ecb0, 0x804eca0 <unfinished ...>
strlen("/home/freddy/cpp/freetds/"...)    = 73
__cxa_atexit(0x804def0, 0, 0, 0x8050118, 0xbfc13508) = 0
strlen("/home/freddy/cpp/freetds/"...)    = 70
__xpg_basename(0xbfc14b11, 0, 0, 0, 0)           = 0xbfc14b13
dirname(0xbfc14b11, 0, 0, 0, 0)                  = 0xbfc14b11
getopt(1, 0xbfc13604, "U:P:S:D:f:v")             = -1
strcpy(0xbfc122dc, "../../../PWD")               = 0xbfc122dc
fopen64("../../../PWD", "r")                     = 0x8054028
fgets("# This file was taken from DBD::"..., 512, 0x8054028) = 0xbfc132dc
strtok("# This file was taken from DBD::"..., "=") = "# This file was taken from DBD::"...
strtok(NULL, "\n")                               = NULL
fgets("# the installation\n", 512, 0x8054028)    = 0xbfc132dc
strtok("# the installation\n", "=")              = "# the installation\n"
strtok(NULL, "\n")                               = NULL
fgets("#\n", 512, 0x8054028)                     = 0xbfc132dc
strtok("#\n", "=")                               = "#\n"
strtok(NULL, "\n")                               = NULL
fgets("# UID: the username of a user to"..., 512, 0x8054028) = 0xbfc132dc
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, 0x8054028) = 0xbfc132dc
strtok("# PWD: the password for that use"..., "=") = "# PWD: the password for that use"...
strtok(NULL, "\n")                               = NULL
fgets("# SRV: the symbolic server name "..., 512, 0x8054028) = 0xbfc132dc
strtok("# SRV: the symbolic server name "..., "=") = "# SRV: the symbolic server name "...
strtok(NULL, "\n")                               = NULL
fgets("#      Note: if you use a hostna"..., 512, 0x8054028) = 0xbfc132dc
strtok("#      Note: if you use a hostna"..., "=") = "#      Note: if you use a hostna"...
strtok(NULL, "\n")                               = NULL
fgets("#      connect using the compile"..., 512, 0x8054028) = 0xbfc132dc
strtok("#      connect using the compile"..., "=") = "#      connect using the compile"...
strtok(NULL, "\n")                               = NULL
fgets("#      4.2 or 7.0) which is usua"..., 512, 0x8054028) = 0xbfc132dc
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, 0x8054028) = 0xbfc132dc
strtok("# DB:  Database in which to crea"..., "=") = "# DB:  Database in which to crea"...
strtok(NULL, "\n")                               = NULL
fgets("#      Sybase or MS SQL server, "..., 512, 0x8054028) = 0xbfc132dc
strtok("#      Sybase or MS SQL server, "..., "=") = "#      Sybase or MS SQL server, "...
strtok(NULL, "\n")                               = NULL
fgets("#      is a good default choice "..., 512, 0x8054028) = 0xbfc132dc
strtok("#      is a good default choice "..., "=") = "#      is a good default choice "...
strtok(NULL, "\n")                               = NULL
fgets("#\n", 512, 0x8054028)                     = 0xbfc132dc
strtok("#\n", "=")                               = "#\n"
strtok(NULL, "\n")                               = NULL
fgets("#UID=guest\n", 512, 0x8054028)            = 0xbfc132dc
strtok("#UID=guest\n", "=")                      = "#UID"
strtok(NULL, "\n")                               = "guest"
fgets("#PWD=sybase\n", 512, 0x8054028)           = 0xbfc132dc
strtok("#PWD=sybase\n", "=")                     = "#PWD"
strtok(NULL, "\n")                               = "sybase"
fgets("#SRV=JDBC\n", 512, 0x8054028)             = 0xbfc132dc
strtok("#SRV=JDBC\n", "=")                       = "#SRV"
strtok(NULL, "\n")                               = "JDBC"
fgets("#DB=tempdb\n", 512, 0x8054028)            = 0xbfc132dc
strtok("#DB=tempdb\n", "=")                      = "#DB"
strtok(NULL, "\n")                               = "tempdb"
fgets("UID=testuser\n", 512, 0x8054028)          = 0xbfc132dc
strtok("UID=testuser\n", "=")                    = "UID"
strtok(NULL, "\n")                               = "testuser"
strcpy(0x8051d80, "testuser")                    = 0x8051d80
fgets("PWD=testpwd\n", 512, 0x8054028)           = 0xbfc132dc
strtok("PWD=testpwd\n", "=")                     = "PWD"
strtok(NULL, "\n")                               = "testpwd"
strcpy(0x8052380, "testpwd")                     = 0x8052380
fgets("SRV=TESTSRV1\n", 512, 0x8054028)          = 0xbfc132dc
strtok("SRV=TESTSRV1\n", "=")                    = "SRV"
strtok(NULL, "\n")                               = "TESTSRV1"
strcpy(0x8052180, "TESTSRV1")                    = 0x8052180
fgets("DB=FreeTDS\n", 512, 0x8054028)            = 0xbfc132dc
strtok("DB=FreeTDS\n", "=")                      = "DB"
strtok(NULL, "\n")                               = "FreeTDS"
strcpy(0x8051f80, "FreeTDS")                     = 0x8051f80
fgets("\n", 512, 0x8054028)                      = 0xbfc132dc
strtok("\n", "=")                                = "\n"
strtok(NULL, "\n")                               = NULL
fgets("\n", 512, 0x8054028)                      = NULL
fclose(0x8054028)                                = 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)                                    = 0x8054028
dbinit(0x804ef84, 1, 6, 0xc654c0, 0xafdca0)      = 1
calloc(12, 1)                                    = 0x8054038
dberrhandle(0x804d3f5, 1, 6, 0xc654c0, 0xafdca0) = 0
dbmsghandle(0x804cde9, 1, 6, 0xc654c0, 0xafdca0) = 0
About to logon
fwrite("About to logon\n", 1, 15, 0xc654c0)      = 15
calloc(12, 1)                                    = 0x8054048
dblogin(0x804ef8b, 1, 15, 0xc654c0, 0xafdca0)    = 0x8054058
dbsetlname(0x8054058, 0x8052380, 3, 0xc654c0, 0xafdca0) = 1
dbsetlname(0x8054058, 0x8051d80, 2, 0xc654c0, 0xafdca0) = 1
dbsetlname(0x8054058, 0x804ef9b, 5, 0xc654c0, 0xafdca0) = 1
dbsetlbool(0x8054058, 1, 6, 0xc654c0, 0xafdca0)  = 1
About to open TESTSRV1.FreeTDS
fprintf(0xc654c0, "About to open %s.%s\n", "TESTSRV1", "FreeTDS") = 31
calloc(12, 1)                                    = 0x80542a8
dbopen(0x8054058, 0x8052180, 0x8052180, 0x8051f80, 0xafdca0 <unfinished ...>
strchr("Changed database context to 'Fre"..., ''') = "'FreeTDS'."
strchr("Changed language setting to 'us_"..., ''') = "'us_english'."
<... dbopen resumed> )                           = 0x80542b8
dbuse(0x80542b8, 0x8051f80, 0x8052180, 0x8051f80, 0xafdca0 <unfinished ...>
strchr("Changed database context to 'Fre"..., ''') = "'FreeTDS'."
<... dbuse resumed> )                            = 1
calloc(12, 1)                                    = 0x80559f8
dbloginfree(0x8054058, 0x8051f80, 0x8052180, 0x8051f80, 0xafdca0) = 0x8055a00
calloc(12, 1)                                    = 0x8054058
calloc(12, 1)                                    = 0x8055a08
Dropping TESTSRV1.FreeTDS..all_types_bcp_unittest
fprintf(0xc654c0, "Dropping %s.%s..%s\n", "TESTSRV1", "FreeTDS", "all_types_bcp_unittest") = 50
calloc(12, 1)                                    = 0x80553a0
sprintf("if exists (select 1 from sysobje"..., "if exists (select 1 from sysobje"...) = 123
dbcmd(0x80542b8, 0x8051100, 0x804ef6d, 0x804ef6d, 0x804ef6d) = 1
calloc(12, 1)                                    = 0x8055430
dbsqlexec(0x80542b8, 0x8051100, 0x804ef6d, 0x804ef6d, 0x804ef6d) = 1
calloc(12, 1)                                    = 0x8054068
dbresults(0x80542b8, 0x8051100, 0x804ef6d, 0x804ef6d, 0x804ef6d) = 1
dbresults(0x80542b8, 0x8051100, 0x804ef6d, 0x804ef6d, 0x804ef6d) = 1
dbresults(0x80542b8, 0x8051100, 0x804ef6d, 0x804ef6d, 0x804ef6d) = 1
dbresults(0x80542b8, 0x8051100, 0x804ef6d, 0x804ef6d, 0x804ef6d) = 2
calloc(12, 1)                                    = 0x8054078
Creating TESTSRV1.FreeTDS..all_types_bcp_unittest
fprintf(0xc654c0, "Creating %s.%s..%s\n", "TESTSRV1", "FreeTDS", "all_types_bcp_unittest") = 50
dbcmd(0x80542b8, 0x80502a0, 0x8052180, 0x8051f80, 0x804ef6d) = 1
dbfcmd(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbsqlexec(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbresults(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
 
 
dbprhead(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbprrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbnextrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = -2
dbresults(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
 
 
dbprhead(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbprrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbnextrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = -2
dbresults(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
 
 
dbprhead(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbprrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbnextrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = -2
dbresults(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
 colid  name                           length      Nulls 
 ------ ------------------------------ ----------- ----- 
dbprhead(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
      1 not_null_bit                             1   N   
      2 not_null_char                           10   N   
      3 not_null_varchar                        10   N   
      4 not_null_datetime                        8   N   
      5 not_null_smalldatetime                   4   N   
      6 not_null_money                           8   N   
      7 not_null_smallmoney                      4   N   
      8 not_null_float                           8   N   
      9 not_null_real                            4   N   
     10 not_null_decimal                         4   N   
     11 not_null_numeric                         4   N   
     12 not_null_int                             4   N   
     13 not_null_smallint                        2   N   
     14 not_null_tinyint                         1   N   
     15 nullable_char                           10   Y   
     16 nullable_varchar                        10   Y   
     17 nullable_datetime                        8   Y   
     18 nullable_smalldatetime                   4   Y   
     19 nullable_money                           8   Y   
     20 nullable_smallmoney                      4   Y   
     21 nullable_float                           8   Y   
     22 nullable_real                            4   Y   
     23 nullable_decimal                         4   Y   
     24 nullable_numeric                         4   Y   
     25 nullable_int                             4   Y   
     26 nullable_smallint                        2   Y   
     27 nullable_tinyint                         1   Y   
dbprrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 1
dbnextrow(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = -2
dbresults(0x80542b8, 0x804ee4c, 0x804ef6d, 0x8051f80, 0x804ef6d) = 2
ok
fprintf(0xc654c0, "%s\n", "ok")                  = 3
sprintf("FreeTDS..all_types_bcp_unittest", "%s..%s", "FreeTDS", "all_types_bcp_unittest") = 31
fprintf(0xc654c0, "preparing to insert into %s ... ", "FreeTDS..all_types_bcp_unittest") = 61
bcp_init(0x80542b8, 0x8051100, 0, 0, 1)          = 1
preparing to insert into FreeTDS..all_types_bcp_unittest ... OK
fwrite("OK\n", 1, 3, 0xc654c0)                   = 3
bcp_bind(0x80542b8, 0x8050e60, 0, -1, 0)         = 1
bcp_bind(0x80542b8, 0x8050e64, 0, 6, 0)          = 1
bcp_bind(0x80542b8, 0x8050e6b, 0, 9, 0)          = 1
bcp_bind(0x80542b8, 0x8050e75, 0, 19, 0)         = 1
bcp_bind(0x80542b8, 0x8050e89, 0, 19, 0)         = 1
bcp_bind(0x80542b8, 0x8050e9d, 0, 5, 0)          = 1
bcp_bind(0x80542b8, 0x8050ea3, 0, 5, 0)          = 1
bcp_bind(0x80542b8, 0x8050ea9, 0, 5, 0)          = 1
bcp_bind(0x80542b8, 0x8050eaf, 0, 5, 0)          = 1
bcp_bind(0x80542b8, 0x8050eb5, 0, 5, 0 <unfinished ...>
DB-LIBRARY error (severity 11, dberr 20060, oserr -1, dberrstr Unknown datatype encountered., oserrstr (null)):
fprintf(0xc65560, "DB-LIBRARY error (severity %d, d"..., 11) = 112
fflush(0xc65560)                                 = 0
exit(255 <unfinished ...>
getenv("GCOV_PREFIX")                            = NULL
strcpy(0xbfc13150, "/home/freddy/cpp/freetds/"...) = 0xbfc13150
getpid()                                         = 3668
open("/home/freddy/cpp/freetds/"..., 66, 0666) = 7
fcntl(7, 7, 0xbfc1311c, 0xbfc130d8, 0xff8760ae)  = 0
fdopen(7, 0x804f7e4, 0xbfc1311c, 0xbfc130d8, 0xff8760ae) = 0x8069d30
__fxstat(3, 7, 0xbfc130c4)                       = 0
setbuf(0x8069d30, NULL)                          = <void>
fread(0x805259c, 1, 4096, 0x8069d30)             = 2008
fseek(0x8069d30, 0, 0, 0xaf1ac2, 0x6d6f682f)     = 0
fwrite("adcgp104\325\230\244\200", 1960, 1, 0x8069d30) = 1
fseek(0x8069d30, 1960, 0, 0x804da7d, 0x804d959)  = 0
ftell(0x8069d30, 1960, 0, 0x804da7d, 0x804d959)  = 1960
fwrite("", 44, 1, 0x8069d30)                     = 1
fclose(0x8069d30)                                = 0
strcpy(0xbfc13150, "/home/freddy/cpp/freetds/"...) = 0xbfc13150
getpid()                                         = 3668
open("/home/freddy/cpp/freetds/"..., 66, 0666) = 7
fcntl(7, 7, 0xbfc1311c, 0x8069d77, 1960)         = 0
fdopen(7, 0x804f7e4, 0xbfc1311c, 0x8069d77, 1960) = 0x8054088
__fxstat(3, 7, 0xbfc130c4)                       = 0
setbuf(0x8054088, NULL)                          = <void>
fread(0x805259c, 1, 4096, 0x8054088)             = 2568
fseek(0x8054088, 0, 0, 0xaf1ac2, 0x6d6f682f)     = 0
fwrite("adcgp104\340L\230\200", 1288, 1, 0x8054088) = 1
fseek(0x8054088, 2300, 0, 0x804da7d, 0x804d959)  = 0
ftell(0x8054088, 2300, 0, 0x804da7d, 0x804d959)  = 2300
fwrite("", 44, 1, 0x8054088)                     = 1
fclose(0x8054088)                                = 0
+++ exited (status 255) +++