__libc_start_main(0x8049450, 1, 0xbfb70554, 0x804df10, 0x804df00 <unfinished ...>
strlen("/home/freddy/cpp/freetds/"...)    = 73
__cxa_atexit(0x804d150, 0, 0, 0x804f118, 0xbfb70458) = 0
strlen("/home/freddy/cpp/freetds/"...)    = 72
memcpy(0xbfb70443, "if exists ( select 1 from tempdb"..., 98) = 0xbfb70443
__xpg_basename(0xbfb70b0d, 0, 0, 0, 0)           = 0xbfb70b0f
dirname(0xbfb70b0d, 0, 0, 0, 0)                  = 0xbfb70b0d
getopt(1, 0xbfb70554, "U:P:S:D:f:v")             = -1
strcpy(0xbfb6e9dc, "../../../PWD")               = 0xbfb6e9dc
fopen64("../../../PWD", "r")                     = 0x8052028
fgets("# This file was taken from DBD::"..., 512, 0x8052028) = 0xbfb6f9dc
strtok("# This file was taken from DBD::"..., "=") = "# This file was taken from DBD::"...
strtok(NULL, "\n")                               = NULL
fgets("# the installation\n", 512, 0x8052028)    = 0xbfb6f9dc
strtok("# the installation\n", "=")              = "# the installation\n"
strtok(NULL, "\n")                               = NULL
fgets("#\n", 512, 0x8052028)                     = 0xbfb6f9dc
strtok("#\n", "=")                               = "#\n"
strtok(NULL, "\n")                               = NULL
fgets("# UID: the username of a user to"..., 512, 0x8052028) = 0xbfb6f9dc
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) = 0xbfb6f9dc
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) = 0xbfb6f9dc
strtok("# SRV: the symbolic server name "..., "=") = "# SRV: the symbolic server name "...
strtok(NULL, "\n")                               = NULL
fgets("#      Note: if you use a hostna"..., 512, 0x8052028) = 0xbfb6f9dc
strtok("#      Note: if you use a hostna"..., "=") = "#      Note: if you use a hostna"...
strtok(NULL, "\n")                               = NULL
fgets("#      connect using the compile"..., 512, 0x8052028) = 0xbfb6f9dc
strtok("#      connect using the compile"..., "=") = "#      connect using the compile"...
strtok(NULL, "\n")                               = NULL
fgets("#      4.2 or 7.0) which is usua"..., 512, 0x8052028) = 0xbfb6f9dc
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) = 0xbfb6f9dc
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) = 0xbfb6f9dc
strtok("#      Sybase or MS SQL server, "..., "=") = "#      Sybase or MS SQL server, "...
strtok(NULL, "\n")                               = NULL
fgets("#      is a good default choice "..., 512, 0x8052028) = 0xbfb6f9dc
strtok("#      is a good default choice "..., "=") = "#      is a good default choice "...
strtok(NULL, "\n")                               = NULL
fgets("#\n", 512, 0x8052028)                     = 0xbfb6f9dc
strtok("#\n", "=")                               = "#\n"
strtok(NULL, "\n")                               = NULL
fgets("#UID=guest\n", 512, 0x8052028)            = 0xbfb6f9dc
strtok("#UID=guest\n", "=")                      = "#UID"
strtok(NULL, "\n")                               = "guest"
fgets("#PWD=sybase\n", 512, 0x8052028)           = 0xbfb6f9dc
strtok("#PWD=sybase\n", "=")                     = "#PWD"
strtok(NULL, "\n")                               = "sybase"
fgets("#SRV=JDBC\n", 512, 0x8052028)             = 0xbfb6f9dc
strtok("#SRV=JDBC\n", "=")                       = "#SRV"
strtok(NULL, "\n")                               = "JDBC"
fgets("#DB=tempdb\n", 512, 0x8052028)            = 0xbfb6f9dc
strtok("#DB=tempdb\n", "=")                      = "#DB"
strtok(NULL, "\n")                               = "tempdb"
fgets("UID=testuser\n", 512, 0x8052028)          = 0xbfb6f9dc
strtok("UID=testuser\n", "=")                    = "UID"
strtok(NULL, "\n")                               = "testuser"
strcpy(0x804fde0, "testuser")                    = 0x804fde0
fgets("PWD=testpwd\n", 512, 0x8052028)           = 0xbfb6f9dc
strtok("PWD=testpwd\n", "=")                     = "PWD"
strtok(NULL, "\n")                               = "testpwd"
strcpy(0x80503e0, "testpwd")                     = 0x80503e0
fgets("SRV=TESTSRV1\n", 512, 0x8052028)          = 0xbfb6f9dc
strtok("SRV=TESTSRV1\n", "=")                    = "SRV"
strtok(NULL, "\n")                               = "TESTSRV1"
strcpy(0x80501e0, "TESTSRV1")                    = 0x80501e0
fgets("DB=FreeTDS\n", 512, 0x8052028)            = 0xbfb6f9dc
strtok("DB=FreeTDS\n", "=")                      = "DB"
strtok(NULL, "\n")                               = "FreeTDS"
strcpy(0x804ffe0, "FreeTDS")                     = 0x804ffe0
fgets("\n", 512, 0x8052028)                      = 0xbfb6f9dc
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(0x804e0b0, 1, 6, 0xc654c0, 0xbfb6fce0)    = 1
calloc(12, 1)                                    = 0x8052038
dberrhandle(0x804c64d, 1, 6, 0xc654c0, 0xbfb6fce0) = 0
dbmsghandle(0x804c041, 1, 6, 0xc654c0, 0xbfb6fce0) = 0
About to logon
fwrite("About to logon\n", 1, 15, 0xc654c0)      = 15
calloc(12, 1)                                    = 0x8052048
dblogin(0x804e0b7, 1, 15, 0xc654c0, 0xbfb6fce0)  = 0x8052058
dbsetlname(0x8052058, 0x80503e0, 3, 0xc654c0, 0xbfb6fce0) = 1
dbsetlname(0x8052058, 0x804fde0, 2, 0xc654c0, 0xbfb6fce0) = 1
dbsetlname(0x8052058, 0x804e0c7, 5, 0xc654c0, 0xbfb6fce0) = 1
About to open TESTSRV1..FreeTDS
fprintf(0xc654c0, "About to open %s..%s\n", "TESTSRV1", "FreeTDS") = 32
calloc(12, 1)                                    = 0x80522a8
dbopen(0x8052058, 0x80501e0, 0x80501e0, 0x804ffe0, 0xbfb6fce0 <unfinished ...>
strchr("Changed database context to 'Fre"..., ''') = "'FreeTDS'."
strchr("Changed language setting to 'us_"..., ''') = "'us_english'."
<... dbopen resumed> )                           = 0x80522b8
dbuse(0x80522b8, 0x804ffe0, 0x80501e0, 0x804ffe0, 0xbfb6fce0 <unfinished ...>
strchr("Changed database context to 'Fre"..., ''') = "'FreeTDS'."
<... dbuse resumed> )                            = 1
calloc(12, 1)                                    = 0x80539f8
dbloginfree(0x8052058, 0x804ffe0, 0x80501e0, 0x804ffe0, 0xbfb6fce0) = 0x8053a00
calloc(12, 1)                                    = 0x8052058
Setting row buffer to 10 rows
fwrite("Setting row buffer to 10 rows\n", 1, 30, 0xc654c0) = 30
dbsetopt(0x80522b8, 14, 0x804e103, 0, 0xbfb6fce0) = 1
calloc(12, 1)                                    = 0x8053390
calloc(12, 1)                                    = 0x80533b0
if exists ( select 1 from tempdb..sysobjects where id = object_id('tempdb..#dblib0002') )
	drop table #dblib0002
fprintf(0xc654c0, "if exists ( select 1 from tempdb"...) = 113
dbfcmd(0x80522b8, 0xbfb70443, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 1
calloc(12, 1)                                    = 0x8053a28
dbsqlexec(0x80522b8, 0xbfb70443, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 1
calloc(12, 1)                                    = 0x8053438
dbresults(0x80522b8, 0xbfb70443, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 1
dbresults(0x80522b8, 0xbfb70443, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 1
dbresults(0x80522b8, 0xbfb70443, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 2
dbresults(0x80522b8, 0xbfb70443, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 2
calloc(12, 1)                                    = 0x8053360
create table #dblib0002 (i int not null, s char(10) not null)
fprintf(0xc654c0, "create table %s (i int not null,"..., "#dblib0002") = 62
dbfcmd(0x80522b8, 0x804e190, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 1
dbsqlexec(0x80522b8, 0x804e190, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 1
dbresults(0x80522b8, 0x804e190, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 1
dbresults(0x80522b8, 0x804e190, 0xbfb704a5, 0xbfb704a5, 0xbfb6fce0) = 2
insert into #dblib0002 [50 rows]
fprintf(0xc654c0, "insert into %s [%d rows]\n", "#dblib0002", 50) = 33
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 1) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 1, 1)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 1, 1) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 1, 1) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 1, 1) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 2) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 2, 2)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 2, 2) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 2, 2) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 2, 2) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 3) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 3, 3)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 3, 3) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 3, 3) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 3, 3) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 4) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 4, 4)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 4, 4) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 4, 4) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 4, 4) = 2
sprintf("insert into #dblib0002 values (5"..., "insert into %s values (%d, 'row "..., "#dblib0002", 5) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 5, 5)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 5, 5) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 5, 5) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 5, 5) = 2
sprintf("insert into #dblib0002 values (6"..., "insert into %s values (%d, 'row "..., "#dblib0002", 6) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 6, 6)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 6, 6) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 6, 6) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 6, 6) = 2
sprintf("insert into #dblib0002 values (7"..., "insert into %s values (%d, 'row "..., "#dblib0002", 7) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 7, 7)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 7, 7) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 7, 7) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 7, 7) = 2
sprintf("insert into #dblib0002 values (8"..., "insert into %s values (%d, 'row "..., "#dblib0002", 8) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 8, 8)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 8, 8) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 8, 8) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 8, 8) = 2
sprintf("insert into #dblib0002 values (9"..., "insert into %s values (%d, 'row "..., "#dblib0002", 9) = 44
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 9, 9)   = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 9, 9) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 9, 9) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 9, 9) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 10) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 10, 10) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 10, 10) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 10, 10) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 10, 10) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 11) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 11, 11) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 11, 11) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 11, 11) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 11, 11) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 12) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 12, 12) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 12, 12) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 12, 12) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 12, 12) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 13) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 13, 13) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 13, 13) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 13, 13) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 13, 13) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 14) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 14, 14) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 14, 14) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 14, 14) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 14, 14) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 15) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 15, 15) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 15, 15) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 15, 15) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 15, 15) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 16) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 16, 16) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 16, 16) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 16, 16) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 16, 16) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 17) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 17, 17) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 17, 17) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 17, 17) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 17, 17) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 18) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 18, 18) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 18, 18) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 18, 18) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 18, 18) = 2
sprintf("insert into #dblib0002 values (1"..., "insert into %s values (%d, 'row "..., "#dblib0002", 19) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 19, 19) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 19, 19) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 19, 19) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 19, 19) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 20) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 20, 20) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 20, 20) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 20, 20) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 20, 20) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 21) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 21, 21) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 21, 21) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 21, 21) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 21, 21) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 22) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 22, 22) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 22, 22) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 22, 22) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 22, 22) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 23) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 23, 23) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 23, 23) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 23, 23) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 23, 23) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 24) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 24, 24) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 24, 24) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 24, 24) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 24, 24) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 25) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 25, 25) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 25, 25) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 25, 25) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 25, 25) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 26) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 26, 26) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 26, 26) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 26, 26) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 26, 26) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 27) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 27, 27) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 27, 27) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 27, 27) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 27, 27) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 28) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 28, 28) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 28, 28) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 28, 28) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 28, 28) = 2
sprintf("insert into #dblib0002 values (2"..., "insert into %s values (%d, 'row "..., "#dblib0002", 29) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 29, 29) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 29, 29) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 29, 29) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 29, 29) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 30) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 30, 30) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 30, 30) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 30, 30) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 30, 30) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 31) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 31, 31) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 31, 31) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 31, 31) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 31, 31) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 32) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 32, 32) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 32, 32) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 32, 32) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 32, 32) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 33) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 33, 33) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 33, 33) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 33, 33) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 33, 33) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 34) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 34, 34) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 34, 34) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 34, 34) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 34, 34) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 35) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 35, 35) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 35, 35) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 35, 35) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 35, 35) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 36) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 36, 36) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 36, 36) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 36, 36) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 36, 36) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 37) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 37, 37) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 37, 37) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 37, 37) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 37, 37) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 38) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 38, 38) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 38, 38) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 38, 38) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 38, 38) = 2
sprintf("insert into #dblib0002 values (3"..., "insert into %s values (%d, 'row "..., "#dblib0002", 39) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 39, 39) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 39, 39) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 39, 39) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 39, 39) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 40) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 40, 40) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 40, 40) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 40, 40) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 40, 40) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 41) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 41, 41) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 41, 41) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 41, 41) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 41, 41) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 42) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 42, 42) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 42, 42) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 42, 42) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 42, 42) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 43) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 43, 43) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 43, 43) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 43, 43) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 43, 43) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 44) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 44, 44) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 44, 44) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 44, 44) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 44, 44) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 45) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 45, 45) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 45, 45) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 45, 45) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 45, 45) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 46) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 46, 46) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 46, 46) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 46, 46) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 46, 46) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 47) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 47, 47) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 47, 47) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 47, 47) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 47, 47) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 48) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 48, 48) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 48, 48) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 48, 48) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 48, 48) = 2
sprintf("insert into #dblib0002 values (4"..., "insert into %s values (%d, 'row "..., "#dblib0002", 49) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 49, 49) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 49, 49) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 49, 49) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 49, 49) = 2
sprintf("insert into #dblib0002 values (5"..., "insert into %s values (%d, 'row "..., "#dblib0002", 50) = 45
dbcmd(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 50, 50) = 1
dbsqlexec(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 50, 50) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 50, 50) = 1
dbresults(0x80522b8, 0xbfb6fc43, 0xbfb704a5, 50, 50) = 2
select * from #dblib0002 order by i
fprintf(0xc654c0, "select * from %s order by i\n", "#dblib0002") = 36
dbfcmd(0x80522b8, 0x804e207, 0xbfb704a5, 50, 50) = 1
dbfcmd(0x80522b8, 0x804e207, 0xbfb704a5, 50, 50) = 1
dbsqlexec(0x80522b8, 0x804e207, 0xbfb704a5, 50, 50) = 1
calloc(12, 1)                                    = 0x8053380
fetching resultset 1
fprintf(0xc654c0, "fetching resultset %i\n", 1)  = 21
dbresults(0x80522b8, 0x804e224, 1, 50, 50)       = 1
calloc(12, 1)                                    = 0x8052198
dbnumcols(0x80522b8, 0x804e224, 1, 50, 50)       = 2
calloc(12, 1)                                    = 0x80521a8
dbcolname(0x80522b8, 1, 1, 50, 50)               = 0x8052068
col 1 is [i]
printf("col %d is [%s]\n", 1, "i")               = 13
calloc(12, 1)                                    = 0x80521b8
dbnumcols(0x80522b8, 1, 0x8052068, 50, 50)       = 2
calloc(12, 1)                                    = 0x80521c8
dbcolname(0x80522b8, 2, 0x8052068, 50, 50)       = 0x80520f8
col 2 is [s]
printf("col %d is [%s]\n", 2, "s")               = 13
calloc(12, 1)                                    = 0x80521d8
dbnumcols(0x80522b8, 2, 0x80520f8, 50, 50)       = 2
calloc(12, 1)                                    = 0x80521e8
dbbind(0x80522b8, 1, 3, -1, 0xbfb6fc1c)          = 1
calloc(12, 1)                                    = 0x80521f8
dbbind(0x80522b8, 2, 12, -1, 0xbfb70043)         = 1
calloc(12, 1)                                    = 0x8052208
clearing 10 rows from buffer
fprintf(0xc654c0, "clearing %d rows from buffer\n", 10) = 29
dbclrbuf(0x80522b8, 10, 10, -1, 0xbfb70043)      = 0x8052b88
calloc(12, 1)                                    = 0x8052218
dbnextrow(0x80522b8, 10, 10, -1, 0xbfb70043)     = -1
calloc(12, 1)                                    = 0x8067d30
sprintf("row 001", "row %03d", 1)                = 7
strncmp("row 001   ", "row 001", 7)              = 0
Read a row of data -> 1 row 001   
printf("Read a row of data -> %d %s\n", 1, "row 001   ") = 35
calloc(12, 1)                                    = 0x8067d40
dbnextrow(0x80522b8, 1, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8067df0
sprintf("row 002", "row %03d", 2)                = 7
strncmp("row 002   ", "row 002", 7)              = 0
Read a row of data -> 2 row 002   
printf("Read a row of data -> %d %s\n", 2, "row 002   ") = 35
calloc(12, 1)                                    = 0x8067e00
dbnextrow(0x80522b8, 2, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8067eb0
sprintf("row 003", "row %03d", 3)                = 7
strncmp("row 003   ", "row 003", 7)              = 0
Read a row of data -> 3 row 003   
printf("Read a row of data -> %d %s\n", 3, "row 003   ") = 35
calloc(12, 1)                                    = 0x8067ec0
dbnextrow(0x80522b8, 3, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8067f70
sprintf("row 004", "row %03d", 4)                = 7
strncmp("row 004   ", "row 004", 7)              = 0
Read a row of data -> 4 row 004   
printf("Read a row of data -> %d %s\n", 4, "row 004   ") = 35
calloc(12, 1)                                    = 0x8067f80
dbnextrow(0x80522b8, 4, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8068030
sprintf("row 005", "row %03d", 5)                = 7
strncmp("row 005   ", "row 005", 7)              = 0
Read a row of data -> 5 row 005   
printf("Read a row of data -> %d %s\n", 5, "row 005   ") = 35
calloc(12, 1)                                    = 0x8068040
dbnextrow(0x80522b8, 5, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x80680f0
sprintf("row 006", "row %03d", 6)                = 7
strncmp("row 006   ", "row 006", 7)              = 0
Read a row of data -> 6 row 006   
printf("Read a row of data -> %d %s\n", 6, "row 006   ") = 35
calloc(12, 1)                                    = 0x8068100
dbnextrow(0x80522b8, 6, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x80681b0
sprintf("row 007", "row %03d", 7)                = 7
strncmp("row 007   ", "row 007", 7)              = 0
Read a row of data -> 7 row 007   
printf("Read a row of data -> %d %s\n", 7, "row 007   ") = 35
calloc(12, 1)                                    = 0x80681c0
dbnextrow(0x80522b8, 7, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8068270
sprintf("row 008", "row %03d", 8)                = 7
strncmp("row 008   ", "row 008", 7)              = 0
Read a row of data -> 8 row 008   
printf("Read a row of data -> %d %s\n", 8, "row 008   ") = 35
calloc(12, 1)                                    = 0x8068280
dbnextrow(0x80522b8, 8, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8068330
sprintf("row 009", "row %03d", 9)                = 7
strncmp("row 009   ", "row 009", 7)              = 0
Read a row of data -> 9 row 009   
printf("Read a row of data -> %d %s\n", 9, "row 009   ") = 35
calloc(12, 1)                                    = 0x8068340
dbnextrow(0x80522b8, 9, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8068650
sprintf("row 010", "row %03d", 10)               = 7
strncmp("row 010   ", "row 010", 7)              = 0
Read a row of data -> 10 row 010   
printf("Read a row of data -> %d %s\n", 10, "row 010   ") = 36
clearing 10 rows from buffer
fprintf(0xc654c0, "clearing %d rows from buffer\n", 10) = 29
dbclrbuf(0x80522b8, 10, 10, -1, 0xbfb70043)      = 0
calloc(12, 1)                                    = 0x8068320
dbnextrow(0x80522b8, 10, 10, -1, 0xbfb70043)     = -1
calloc(12, 1)                                    = 0x8068250
sprintf("row 011", "row %03d", 11)               = 7
strncmp("row 011   ", "row 011", 7)              = 0
Read a row of data -> 11 row 011   
printf("Read a row of data -> %d %s\n", 11, "row 011   ") = 36
calloc(12, 1)                                    = 0x80681a0
dbnextrow(0x80522b8, 11, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x80680d0
sprintf("row 012", "row %03d", 12)               = 7
strncmp("row 012   ", "row 012", 7)              = 0
Read a row of data -> 12 row 012   
printf("Read a row of data -> %d %s\n", 12, "row 012   ") = 36
calloc(12, 1)                                    = 0x8068020
dbnextrow(0x80522b8, 12, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8067f50
sprintf("row 013", "row %03d", 13)               = 7
strncmp("row 013   ", "row 013", 7)              = 0
Read a row of data -> 13 row 013   
printf("Read a row of data -> %d %s\n", 13, "row 013   ") = 36
calloc(12, 1)                                    = 0x8067ea0
dbnextrow(0x80522b8, 13, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8067dd0
sprintf("row 014", "row %03d", 14)               = 7
strncmp("row 014   ", "row 014", 7)              = 0
Read a row of data -> 14 row 014   
printf("Read a row of data -> %d %s\n", 14, "row 014   ") = 36
calloc(12, 1)                                    = 0x8053410
dbnextrow(0x80522b8, 14, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8068090
sprintf("row 015", "row %03d", 15)               = 7
strncmp("row 015   ", "row 015", 7)              = 0
Read a row of data -> 15 row 015   
printf("Read a row of data -> %d %s\n", 15, "row 015   ") = 36
calloc(12, 1)                                    = 0x80680a0
dbnextrow(0x80522b8, 15, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x80681f0
sprintf("row 016", "row %03d", 16)               = 7
strncmp("row 016   ", "row 016", 7)              = 0
Read a row of data -> 16 row 016   
printf("Read a row of data -> %d %s\n", 16, "row 016   ") = 36
calloc(12, 1)                                    = 0x8068200
dbnextrow(0x80522b8, 16, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8068230
sprintf("row 017", "row %03d", 17)               = 7
strncmp("row 017   ", "row 017", 7)              = 0
Read a row of data -> 17 row 017   
printf("Read a row of data -> %d %s\n", 17, "row 017   ") = 36
calloc(12, 1)                                    = 0x8068240
dbnextrow(0x80522b8, 17, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x80686e0
sprintf("row 018", "row %03d", 18)               = 7
strncmp("row 018   ", "row 018", 7)              = 0
Read a row of data -> 18 row 018   
printf("Read a row of data -> %d %s\n", 18, "row 018   ") = 36
calloc(12, 1)                                    = 0x80686f0
dbnextrow(0x80522b8, 18, 0xbfb70043, -1, 0xbfb70043) = -1
calloc(12, 1)                                    = 0x8068780
sprintf("row 019", "row %03d", 19)               = 7
strncmp("row 019   ", "row 019", 7)              = 0
Read a row of data -> 19 row 019   
printf("Read a row of data -> %d %s\n", 19, "row 019   ") = 36
calloc(12, 1)                                    = 0x8068790
dbnextrow(0x80522b8, 19, 0xbfb70043, -1, 0xbfb70043) = -3
Failed: Expected a row (t0002.c:174)
fprintf(0xc65560, "Failed: Expected a row (%s:%d)\n", "t0002.c", 174) = 37
Failed: dbnextrow returned BUF_FULL (-3).  Fix dbclrbuf.
fprintf(0xc65560, "Failed: dbnextrow returned BUF_F"...) = 57
exit(1 <unfinished ...>
getenv("GCOV_PREFIX")                            = NULL
strcpy(0xbfb6fa10, "/home/freddy/cpp/freetds/"...) = 0xbfb6fa10
getpid()                                         = 3624
open("/home/freddy/cpp/freetds/"..., 66, 0666) = 7
fcntl(7, 7, 0xbfb6f9dc, 1, 0xff8760ae)           = 0
fdopen(7, 0x804e900, 0xbfb6f9dc, 1, 0xff8760ae)  = 0x80687a0
__fxstat(3, 7, 0xbfb6f984)                       = 0
setbuf(0x80687a0, NULL)                          = <void>
fread(0x80505fc, 1, 4096, 0x80687a0)             = 1456
fseek(0x80687a0, 0, 0, 0xaf1ac2, 0x6d6f682f)     = 0
fwrite("adcgp104V\374\243\200", 1408, 1, 0x80687a0) = 1
fseek(0x80687a0, 1408, 0, 0x804ccdd, 0x804cbb9)  = 0
ftell(0x80687a0, 1408, 0, 0x804ccdd, 0x804cbb9)  = 1408
fwrite("", 44, 1, 0x80687a0)                     = 1
fclose(0x80687a0)                                = 0
strcpy(0xbfb6fa10, "/home/freddy/cpp/freetds/"...) = 0xbfb6fa10
getpid()                                         = 3624
open("/home/freddy/cpp/freetds/"..., 66, 0666) = 7
fcntl(7, 7, 0xbfb6f9dc, 0x80687e7, 1408)         = 0
fdopen(7, 0x804e900, 0xbfb6f9dc, 0x80687e7, 1408) = 0x80687a0
__fxstat(3, 7, 0xbfb6f984)                       = 0
setbuf(0x80687a0, NULL)                          = <void>
fread(0x80505fc, 1, 4096, 0x80687a0)             = 2568
fseek(0x80687a0, 0, 0, 0xaf1ac2, 0x6d6f682f)     = 0
fwrite("adcgp104\340L\230\200", 1288, 1, 0x80687a0) = 1
fseek(0x80687a0, 1376, 0, 0x804ccdd, 0x804cbb9)  = 0
ftell(0x80687a0, 1376, 0, 0x804ccdd, 0x804cbb9)  = 1376
fwrite("", 44, 1, 0x80687a0)                     = 1
fclose(0x80687a0)                                = 0
+++ exited (status 1) +++