src/odbc/unittests/testodbc
Main
| Hostname | obon110 |
| gcc version | gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-13) |
| uname -a | Linux obon110 2.6.23.1-1smp #3 SMP Mon Nov 5 20:51:48 CET 2007 i686 i686 i386 GNU/Linux |
| date | 2008-07-03 |
==22509== Memcheck, a memory error detector.
==22509== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==22509== Using LibVEX rev 1658, a library for dynamic binary translation.
==22509== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP.
==22509== Using valgrind-3.2.1, a dynamic binary instrumentation framework.
==22509== Copyright (C) 2000-2006, and GNU GPL'd, by Julian Seward et al.
==22509==
--22509-- Command line
--22509-- ./testodbc
--22509-- Startup, with flags:
--22509-- --tool=memcheck
--22509-- --num-callers=20
--22509-- --leak-check=yes
--22509-- -v
--22509-- --show-reachable=yes
--22509-- --log-fd=3
--22509-- --suppressions=/home/winnt/fziglio/suppressions.supp
--22509-- Contents of /proc/version:
--22509-- Linux version 2.6.23.1-1smp (fziglio@obon110) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)) #3 SMP Mon Nov 5 20:51:48 CET 2007
--22509-- Arch and hwcaps: X86, x86-sse1-sse2
--22509-- Valgrind library directory: /usr/lib/valgrind
--22509-- Reading syms from /lib/ld-2.5.so (0xAE4000)
--22509-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp_old/src/odbc/unittests/testodbc (0x8048000)
--22509-- Reading syms from /usr/lib/valgrind/x86-linux/memcheck (0x38000000)
--22509-- object doesn't have a dynamic symbol table
--22509-- Reading suppressions file: /home/winnt/fziglio/suppressions.supp
--22509-- Reading suppressions file: /usr/lib/valgrind/default.supp
--22509-- REDIR: 0xAF9540 (index) redirected to 0x38027D0F (vgPlain_x86_linux_REDIR_FOR_index)
--22509-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_core.so (0x4001000)
--22509-- Reading syms from /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so (0x4003000)
==22509== WARNING: new redirection conflicts with existing -- ignoring it
--22509-- new: 0x00AF9540 (index ) R-> 0x040060C0 index
--22509-- REDIR: 0xAF96E0 (strlen) redirected to 0x4006290 (strlen)
--22509-- Reading syms from /home/winnt/fziglio/cpp/freetds/ftds_comp_old/src/odbc/.libs/libtdsodbc.so.0.0.0 (0x4009000)
--22509-- Reading syms from /usr/lib/libgnutls.so.13.0.6 (0x6A2D000)
--22509-- object doesn't have a symbol table
--22509-- Reading syms from /lib/libc-2.5.so (0xB29000)
--22509-- Reading syms from /usr/lib/libz.so.1.2.3 (0xB14000)
--22509-- object doesn't have a symbol table
--22509-- Reading syms from /usr/lib/libgcrypt.so.11.2.2 (0x65F1000)
--22509-- object doesn't have a symbol table
--22509-- Reading syms from /usr/lib/libgpg-error.so.0.3.0 (0xADB000)
--22509-- object doesn't have a symbol table
--22509-- Reading syms from /lib/libnsl-2.5.so (0x330000)
--22509-- REDIR: 0xB96330 (rindex) redirected to 0x4005FA0 (rindex)
--22509-- REDIR: 0xB95F90 (strlen) redirected to 0x4006270 (strlen)
--22509-- REDIR: 0xB91260 (malloc) redirected to 0x400537B (malloc)
--22509-- REDIR: 0xB976C0 (memcpy) redirected to 0x4006C60 (memcpy)
--22509-- REDIR: 0xB95A30 (strcmp) redirected to 0x4006340 (strcmp)
Running test 1: Raw ODBC direct query... TestRawODBCDirectQuery (in)
--22509-- REDIR: 0xB96CD0 (memchr) redirected to 0x4006460 (memchr)
--22509-- REDIR: 0xB95AA0 (strcpy) redirected to 0x40069F0 (strcpy)
--22509-- REDIR: 0xB92F20 (free) redirected to 0x4004F95 (free)
--22509-- REDIR: 0xB95710 (strcat) redirected to 0x4006660 (strcat)
--22509-- REDIR: 0xB958C0 (index) redirected to 0x4006090 (index)
--22509-- REDIR: 0xB96180 (strncmp) redirected to 0x40062D0 (strncmp)
--22509-- REDIR: 0xB93110 (realloc) redirected to 0x400542A (realloc)
--22509-- REDIR: 0xB971D0 (memset) redirected to 0x4006580 (memset)
odbctest
--------
connection parameters:
server: 'sybase'
user: 'testuser'
password: '????'
database: 'FreeTDS'
--22509-- REDIR: 0xB98040 (strchrnul) redirected to 0x4006610 (strchrnul)
--22509-- REDIR: 0xB973C0 (stpcpy) redirected to 0x4006910 (stpcpy)
--22509-- REDIR: 0xB90F60 (calloc) redirected to 0x40046A8 (calloc)
--22509-- Reading syms from /lib/libnss_files-2.5.so (0x40CA000)
--22509-- Reading syms from /lib/libnss_winbind.so.2 (0x41EF000)
--22509-- object doesn't have a symbol table
--22509-- REDIR: 0xB96280 (strncpy) redirected to 0x4006DE0 (strncpy)
--22509-- REDIR: 0xB97F70 (rawmemchr) redirected to 0x4006640 (rawmemchr)
--22509-- Reading syms from /usr/lib/gconv/ISO8859-1.so (0x40D5000)
--22509-- object doesn't have a symbol table
--22509-- REDIR: 0xAF9AA0 (stpcpy) redirected to 0x4006830 (stpcpy)
use FreeTDS
CREATE TABLE #Products (ProductID int NOT NULL ,ProductName varchar (40) ,SupplierID int NULL ,CategoryID int NULL ,QuantityPerUnit varchar (20) ,UnitPrice money NULL ,UnitsInStock smallint NULL ,UnitsOnOrder smallint NULL ,ReorderLevel smallint NULL ,Discontinued bit NOT NULL ) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(1,'Chai',1,1,'10 boxes x 20 bags',18.00,39,0,10,0) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(2,'Chang',1,1,'24 - 12 oz bottles',19.00,17,40,25,0) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(3,'Aniseed Syrup',1,2,'12 - 550 ml bottles',10.00,13,70,25,0) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(4,'Chef Anton''s Cajun Seasoning',2,2,'48 - 6 oz jars',22.00,53,0,0,0) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(5,'Chef Anton''s Gumbo Mix',2,2,'36 boxes',21.35,0,0,0,1)
--22509-- REDIR: 0xB97160 (memmove) redirected to 0x40065B0 (memmove)
Got 3 rows
TestRawODBCDirectQuery (out): ok
pass
Running test 2: Raw ODBC prepared query... TestRawODBCPreparedQuery (in)
odbctest
--------
connection parameters:
server: 'sybase'
user: 'testuser'
password: '????'
database: 'FreeTDS'
use FreeTDS
CREATE TABLE #Products (ProductID int NOT NULL ,ProductName varchar (40) ,SupplierID int NULL ,CategoryID int NULL ,QuantityPerUnit varchar (20) ,UnitPrice money NULL ,UnitsInStock smallint NULL ,UnitsOnOrder smallint NULL ,ReorderLevel smallint NULL ,Discontinued bit NOT NULL ) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(9,'Mishi Kobe Niku',4,6,'18 - 500 g pkgs.',97.00,29,0,0,1) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(10,'Ikura',4,8,'12 - 200 ml jars',31.00,31,0,0,0) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(74,'Longlife Tofu',4,7,'5 kg pkg.',10.00,4,20,5,0) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(11,'Queso Cabrales',5,4,'1 kg pkg.',21.00,22,30,30,0) INSERT INTO #Products(ProductID,ProductName,SupplierID,CategoryID,QuantityPerUnit,UnitPrice,UnitsInStock,UnitsOnOrder,ReorderLevel,Discontinued) VALUES(12,'Queso Manchego La Pastora',5,4,'10 - 500 g pkgs.',38.00,86,0,0,0)
Got 3 rows
TestRawODBCPreparedQuery (out): ok
pass
Running test 3: Raw ODBC GUID... TestRawODBCGuid (in)
odbctest
--------
connection parameters:
server: 'sybase'
user: 'testuser'
password: '????'
database: 'FreeTDS'
use FreeTDS
pass
All 3 tests passed.
--22509-- Discarding syms at 0x40D5000-0x40D8000 in /usr/lib/gconv/ISO8859-1.so due to munmap()
--22509-- Discarding syms at 0x40CA000-0x40D5000 in /lib/libnss_files-2.5.so due to munmap()
--22509-- Discarding syms at 0x41EF000-0x41FA000 in /lib/libnss_winbind.so.2 due to munmap()
==22509==
==22509== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 25 from 1)
--22509--
--22509-- supp: 25 Fedora-Core-6-hack3-ld25
==22509== malloc/free: in use at exit: 4 bytes in 1 blocks.
==22509== malloc/free: 625 allocs, 624 frees, 390,010 bytes allocated.
==22509==
==22509== searching for pointers to 1 not-freed blocks.
==22509== checked 226,684 bytes.
==22509==
==22509== LEAK SUMMARY:
==22509== definitely lost: 0 bytes in 0 blocks.
==22509== possibly lost: 0 bytes in 0 blocks.
==22509== still reachable: 0 bytes in 0 blocks.
==22509== suppressed: 4 bytes in 1 blocks.
--22509-- memcheck: sanity checks: 13 cheap, 1 expensive
--22509-- memcheck: auxmaps: 0 auxmap entries (0k, 0M) in use
--22509-- memcheck: auxmaps: 0 searches, 0 comparisons
--22509-- memcheck: SMs: n_issued = 29 (464k, 0M)
--22509-- memcheck: SMs: n_deissued = 0 (0k, 0M)
--22509-- memcheck: SMs: max_noaccess = 65535 (1048560k, 1023M)
--22509-- memcheck: SMs: max_undefined = 0 (0k, 0M)
--22509-- memcheck: SMs: max_defined = 42 (672k, 0M)
--22509-- memcheck: SMs: max_non_DSM = 29 (464k, 0M)
--22509-- memcheck: max sec V bit nodes: 6 (0k, 0M)
--22509-- memcheck: set_sec_vbits8 calls: 10 (new: 6, updates: 4)
--22509-- memcheck: max shadow mem size: 768k, 0M
--22509-- translate: fast SP updates identified: 10,021 ( 88.7%)
--22509-- translate: generic_known SP updates identified: 997 ( 8.8%)
--22509-- translate: generic_unknown SP updates identified: 269 ( 2.3%)
--22509-- tt/tc: 19,046 tt lookups requiring 20,376 probes
--22509-- tt/tc: 19,046 fast-cache updates, 6 flushes
--22509-- transtab: new 8,265 (234,784 -> 3,834,461; ratio 163:10) [0 scs]
--22509-- transtab: dumped 0 (0 -> ??)
--22509-- transtab: discarded 353 (7,025 -> ??)
--22509-- scheduler: 1,317,987 jumps (bb entries).
--22509-- scheduler: 13/13,392 major/minor sched events.
--22509-- sanity: 14 cheap, 1 expensive checks.
--22509-- exectx: 30,011 lists, 779 contexts (avg 0 per list)
--22509-- exectx: 1,205 searches, 439 full compares (364 per 1000)
--22509-- exectx: 0 cmp2, 73 cmp4, 0 cmpAll
Main