Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sh-3.2# valgrind -v --tool=memcheck --num-callers=30 --leak-check=full /srv/php-5.3.3/bin/php /_DESK/php-pdo-odbc.php
- ==50891== Memcheck, a memory error detector
- ==50891== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
- ==50891== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
- ==50891== Command: /srv/php-5.3.3/bin/php /_DESK/php-pdo-odbc.php
- ==50891==
- --50891-- Valgrind options:
- --50891-- -v
- --50891-- --tool=memcheck
- --50891-- --num-callers=30
- --50891-- --leak-check=full
- --50891-- Contents of /proc/version:
- --50891-- can't open /proc/version
- --50891-- Arch and hwcaps: AMD64, amd64-sse3-cx16
- --50891-- Page sizes: currently 4096, max supported 4096
- --50891-- Valgrind library directory: /usr/local/lib/valgrind
- --50891-- /srv/php-5.3.3/bin/php (0x100000000)
- --50891-- reading syms from primary file (1514 51282)
- --50891-- dSYM directory is missing; consider using --dsymutil=yes
- --50891-- /usr/lib/dyld (0x7fff5fc00000)
- --50891-- reading syms from primary file (6 1186)
- --50891-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
- --50891-- REDIR: 0x7fff5fc22fb0 (strcmp) redirected to 0x7fff55045bb5 (???)
- --50891-- REDIR: 0x7fff5fc20693 (arc4random) redirected to 0x7fff55045c53 (???)
- --50891-- REDIR: 0x7fff5fc22e90 (strlen) redirected to 0x7fff55045b84 (???)
- --50891-- REDIR: 0x7fff5fc22ee0 (strcpy) redirected to 0x7fff55045bd1 (???)
- --50891-- REDIR: 0x7fff5fc2306f (strcat) redirected to 0x7fff55045b95 (???)
- --50891-- /usr/local/lib/valgrind/vgpreload_core-amd64-darwin.so (0x1009dc000)
- --50891-- reading syms from primary file (3 135)
- --50891-- dSYM= /usr/local/lib/valgrind/vgpreload_core-amd64-darwin.so.dSYM/Contents/Resources/DWARF/vgpreload_core-amd64-darwin.so
- --50891-- reading dwarf3 from dsyms file
- --50891-- /usr/local/lib/valgrind/vgpreload_memcheck-amd64-darwin.so (0x1009e7000)
- --50891-- reading syms from primary file (103 564)
- --50891-- dSYM= /usr/local/lib/valgrind/vgpreload_memcheck-amd64-darwin.so.dSYM/Contents/Resources/DWARF/vgpreload_memcheck-amd64-darwin.so
- --50891-- reading dwarf3 from dsyms file
- ==50891== WARNING: new redirection conflicts with existing -- ignoring it
- --50891-- new: 0x7fff5fc1dcd0 (strlcat ) R-> 0x1009eb4b0 strlcat
- ==50891== WARNING: new redirection conflicts with existing -- ignoring it
- --50891-- new: 0x7fff5fc22ee0 (strcpy ) R-> 0x1009eb310 strcpy
- --50891-- REDIR: 0x7fff5fc227b0 (strncmp) redirected to 0x1009e9e90 (strncmp)
- --50891-- REDIR: 0x7fff5fc234f0 (memcpy) redirected to 0x1009eabb0 (memcpy)
- --50891-- REDIR: 0x7fff5fc234e4 (memmove) redirected to 0x1009ea230 (memmove)
- --50891-- REDIR: 0x7fff5fc23398 (memset) redirected to 0x1009ea180 (memset)
- --50891-- /usr/lib/libresolv.9.dylib (0x1009fb000)
- --50891-- reading syms from primary file (198 94)
- --50891-- /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib (0x100a26000)
- --50891-- reading syms from primary file (345 2697)
- --50891-- dSYM directory is missing; consider using --dsymutil=yes
- --50891-- /srv/mysql-5.1.51/lib/mysql/libmysqlclient.16.dylib (0x100a92000)
- --50891-- reading syms from primary file (749 3949)
- --50891-- dSYM directory is missing; consider using --dsymutil=yes
- --50891-- /usr/lib/libiconv.2.dylib (0x100b1f000)
- --50891-- reading syms from primary file (17 1061)
- --50891-- /usr/lib/libSystem.B.dylib (0x100c27000)
- --50891-- reading syms from primary file (4603 3781)
- --50891-- /usr/lib/libxml2.2.dylib (0x100e78000)
- --50891-- reading syms from primary file (1715 1)
- --50891-- /usr/lib/libz.1.2.3.dylib (0x100fb8000)
- --50891-- reading syms from primary file (58 1)
- --50891-- /usr/lib/libicucore.A.dylib (0x100fce000)
- --50891-- reading syms from primary file (3643 1)
- --50891-- /srv/unixodbc-2.3.0/lib/libodbc.1.dylib (0x1011fb000)
- --50891-- reading syms from primary file (161 3896)
- --50891-- dSYM directory is missing; consider using --dsymutil=yes
- --50891-- /usr/lib/libstdc++.6.0.9.dylib (0x101289000)
- --50891-- reading syms from primary file (3306 365)
- --50891-- REDIR: 0x7fff5fc21a36 (strrchr) redirected to 0x1009e9bb0 (strrchr)
- --50891-- REDIR: 0x7fff5fc204b0 (strlcpy) redirected to 0x1009eae90 (strlcpy)
- --50891-- REDIR: 0x100c297fc (memcpy) redirected to 0x1009ead20 (memcpy)
- --50891-- REDIR: 0x100c28434 (memset) redirected to 0x1009ea130 (memset)
- --50891-- REDIR: 0x100c29caf (__memcpy_chk) redirected to 0x1009ea690 (__memcpy_chk)
- --50891-- REDIR: 0x100c2a1dc (malloc) redirected to 0x1009e8cf0 (malloc)
- --50891-- REDIR: 0x100c2b170 (strlen) redirected to 0x1009e9e10 (strlen)
- --50891-- REDIR: 0x100c2a800 (strncmp) redirected to 0x1009e9e30 (strncmp)
- ==50891== Warning: bad signal number 13 in sigaction()
- --50891-- REDIR: 0x100c31c02 (calloc) redirected to 0x1009e7e8d (calloc)
- --50891-- REDIR: 0x100c2b32c (strrchr) redirected to 0x1009e9b50 (strrchr)
- --50891-- REDIR: 0x100c2d2a0 (strcpy) redirected to 0x1009eb3e0 (strcpy)
- --50891-- REDIR: 0x100c4029b (strchr) redirected to 0x1009e9c10 (strchr)
- --50891-- REDIR: 0x100c2b350 (strcmp) redirected to 0x1009e9ef0 (strcmp)
- --50891-- REDIR: 0x100c65883 (strcat) redirected to 0x1009ea5b0 (strcat)
- --50891-- REDIR: 0x100c2e450 (bcmp) redirected to 0x1009ea010 (bcmp)
- --50891-- REDIR: 0x100c31a9c (memmove) redirected to 0x1009ea1d0 (memmove)
- --50891-- REDIR: 0x100c3bfed (realloc) redirected to 0x1009e8eb8 (realloc)
- --50891-- REDIR: 0x100c2e595 (free) redirected to 0x1009e8845 (free)
- --50891-- REDIR: 0x100c33df0 (strlcpy) redirected to 0x1009eafa0 (strlcpy)
- --50891-- REDIR: 0x100c400a0 (strlcat) redirected to 0x1009eb5f0 (strlcat)
- --50891-- REDIR: 0x100c68680 (memchr) redirected to 0x1009e9f30 (memchr)
- --50891-- REDIR: 0x100c72358 (stpcpy) redirected to 0x1009ea970 (stpcpy)
- --50891-- REDIR: 0x100c2df96 (malloc_default_zone) redirected to 0x1009e7853 (malloc_default_zone)
- --50891-- REDIR: 0x100c2e13e (malloc_zone_calloc) redirected to 0x1009e7dc2 (malloc_zone_calloc)
- ==50891== Warning: bad signal number 13 in sigaction()
- ==50891== Warning: bad signal number 27 in sigaction()
- --50891-- REDIR: 0x100c652a0 (strncpy) redirected to 0x1009eb1e0 (strncpy)
- --50891-- REDIR: 0x100c653c2 (__strcpy_chk) redirected to 0x1009ea4f0 (__strcpy_chk)
- --50891-- REDIR: 0x7fff5fc23050 (strchr) redirected to 0x1009e9c70 (strchr)
- --50891-- /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so (0x101768000)
- --50891-- reading syms from primary file (236 2321)
- --50891-- dSYM directory is missing; consider using --dsymutil=yes
- --50891-- /srv/unixodbc-2.3.0/lib/libodbcinst.1.dylib (0x1017c9000)
- --50891-- reading syms from primary file (66 1952)
- --50891-- dSYM directory is missing; consider using --dsymutil=yes
- ==50891== Invalid free() / delete / delete[]
- ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
- ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101775B47: parse_server (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101776112: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
- ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
- ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
- ==50891==
- ==50891== Invalid free() / delete / delete[]
- ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
- ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101775FE7: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
- ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
- ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
- ==50891==
- ==50891== Invalid free() / delete / delete[]
- ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
- ==50891== by 0x101798C56: tds_dstr_free (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101776047: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
- ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
- ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
- ==50891==
- ==50891== Warning: bad signal number 13 in sigaction()
- ==50891== Warning: bad signal number 13 in sigaction()
- PDO_ODBC connected with no errors==50891== Warning: bad signal number 13 in sigaction()
- ==50891== Warning: bad signal number 13 in sigaction()
- ==50891==
- ==50891== HEAP SUMMARY:
- ==50891== in use at exit: 113,314 bytes in 146 blocks
- ==50891== total heap usage: 13,499 allocs, 13,357 frees, 3,535,419 bytes allocated
- ==50891==
- ==50891== Searching for pointers to 146 not-freed blocks
- ==50891== Checked 1,514,856 bytes
- ==50891==
- ==50891== LEAK SUMMARY:
- ==50891== definitely lost: 0 bytes in 0 blocks
- ==50891== indirectly lost: 0 bytes in 0 blocks
- ==50891== possibly lost: 0 bytes in 0 blocks
- ==50891== still reachable: 113,314 bytes in 146 blocks
- ==50891== suppressed: 0 bytes in 0 blocks
- ==50891== Reachable blocks (those to which a pointer was found) are not shown.
- ==50891== To see them, rerun with: --leak-check=full --show-reachable=yes
- ==50891==
- ==50891== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 0 from 0)
- ==50891==
- ==50891== 1 errors in context 1 of 3:
- ==50891== Invalid free() / delete / delete[]
- ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
- ==50891== by 0x101798C56: tds_dstr_free (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101776047: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
- ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
- ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
- ==50891==
- ==50891==
- ==50891== 1 errors in context 2 of 3:
- ==50891== Invalid free() / delete / delete[]
- ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
- ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101775B47: parse_server (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101776112: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
- ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
- ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
- ==50891==
- ==50891==
- ==50891== 2 errors in context 3 of 3:
- ==50891== Invalid free() / delete / delete[]
- ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
- ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x101775FE7: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
- ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
- ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
- ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
- ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
- ==50891==
- ==50891== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement