Advertisement
Guest User

Riadh Djebrouni

a guest
Sep 29th, 2010
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.78 KB | None | 0 0
  1. 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
  2. ==50891== Memcheck, a memory error detector
  3. ==50891== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
  4. ==50891== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
  5. ==50891== Command: /srv/php-5.3.3/bin/php /_DESK/php-pdo-odbc.php
  6. ==50891==
  7. --50891-- Valgrind options:
  8. --50891-- -v
  9. --50891-- --tool=memcheck
  10. --50891-- --num-callers=30
  11. --50891-- --leak-check=full
  12. --50891-- Contents of /proc/version:
  13. --50891-- can't open /proc/version
  14. --50891-- Arch and hwcaps: AMD64, amd64-sse3-cx16
  15. --50891-- Page sizes: currently 4096, max supported 4096
  16. --50891-- Valgrind library directory: /usr/local/lib/valgrind
  17. --50891-- /srv/php-5.3.3/bin/php (0x100000000)
  18. --50891-- reading syms from primary file (1514 51282)
  19. --50891-- dSYM directory is missing; consider using --dsymutil=yes
  20. --50891-- /usr/lib/dyld (0x7fff5fc00000)
  21. --50891-- reading syms from primary file (6 1186)
  22. --50891-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
  23. --50891-- REDIR: 0x7fff5fc22fb0 (strcmp) redirected to 0x7fff55045bb5 (???)
  24. --50891-- REDIR: 0x7fff5fc20693 (arc4random) redirected to 0x7fff55045c53 (???)
  25. --50891-- REDIR: 0x7fff5fc22e90 (strlen) redirected to 0x7fff55045b84 (???)
  26. --50891-- REDIR: 0x7fff5fc22ee0 (strcpy) redirected to 0x7fff55045bd1 (???)
  27. --50891-- REDIR: 0x7fff5fc2306f (strcat) redirected to 0x7fff55045b95 (???)
  28. --50891-- /usr/local/lib/valgrind/vgpreload_core-amd64-darwin.so (0x1009dc000)
  29. --50891-- reading syms from primary file (3 135)
  30. --50891-- dSYM= /usr/local/lib/valgrind/vgpreload_core-amd64-darwin.so.dSYM/Contents/Resources/DWARF/vgpreload_core-amd64-darwin.so
  31. --50891-- reading dwarf3 from dsyms file
  32. --50891-- /usr/local/lib/valgrind/vgpreload_memcheck-amd64-darwin.so (0x1009e7000)
  33. --50891-- reading syms from primary file (103 564)
  34. --50891-- dSYM= /usr/local/lib/valgrind/vgpreload_memcheck-amd64-darwin.so.dSYM/Contents/Resources/DWARF/vgpreload_memcheck-amd64-darwin.so
  35. --50891-- reading dwarf3 from dsyms file
  36. ==50891== WARNING: new redirection conflicts with existing -- ignoring it
  37. --50891-- new: 0x7fff5fc1dcd0 (strlcat ) R-> 0x1009eb4b0 strlcat
  38. ==50891== WARNING: new redirection conflicts with existing -- ignoring it
  39. --50891-- new: 0x7fff5fc22ee0 (strcpy ) R-> 0x1009eb310 strcpy
  40. --50891-- REDIR: 0x7fff5fc227b0 (strncmp) redirected to 0x1009e9e90 (strncmp)
  41. --50891-- REDIR: 0x7fff5fc234f0 (memcpy) redirected to 0x1009eabb0 (memcpy)
  42. --50891-- REDIR: 0x7fff5fc234e4 (memmove) redirected to 0x1009ea230 (memmove)
  43. --50891-- REDIR: 0x7fff5fc23398 (memset) redirected to 0x1009ea180 (memset)
  44. --50891-- /usr/lib/libresolv.9.dylib (0x1009fb000)
  45. --50891-- reading syms from primary file (198 94)
  46. --50891-- /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib (0x100a26000)
  47. --50891-- reading syms from primary file (345 2697)
  48. --50891-- dSYM directory is missing; consider using --dsymutil=yes
  49. --50891-- /srv/mysql-5.1.51/lib/mysql/libmysqlclient.16.dylib (0x100a92000)
  50. --50891-- reading syms from primary file (749 3949)
  51. --50891-- dSYM directory is missing; consider using --dsymutil=yes
  52. --50891-- /usr/lib/libiconv.2.dylib (0x100b1f000)
  53. --50891-- reading syms from primary file (17 1061)
  54. --50891-- /usr/lib/libSystem.B.dylib (0x100c27000)
  55. --50891-- reading syms from primary file (4603 3781)
  56. --50891-- /usr/lib/libxml2.2.dylib (0x100e78000)
  57. --50891-- reading syms from primary file (1715 1)
  58. --50891-- /usr/lib/libz.1.2.3.dylib (0x100fb8000)
  59. --50891-- reading syms from primary file (58 1)
  60. --50891-- /usr/lib/libicucore.A.dylib (0x100fce000)
  61. --50891-- reading syms from primary file (3643 1)
  62. --50891-- /srv/unixodbc-2.3.0/lib/libodbc.1.dylib (0x1011fb000)
  63. --50891-- reading syms from primary file (161 3896)
  64. --50891-- dSYM directory is missing; consider using --dsymutil=yes
  65. --50891-- /usr/lib/libstdc++.6.0.9.dylib (0x101289000)
  66. --50891-- reading syms from primary file (3306 365)
  67. --50891-- REDIR: 0x7fff5fc21a36 (strrchr) redirected to 0x1009e9bb0 (strrchr)
  68. --50891-- REDIR: 0x7fff5fc204b0 (strlcpy) redirected to 0x1009eae90 (strlcpy)
  69. --50891-- REDIR: 0x100c297fc (memcpy) redirected to 0x1009ead20 (memcpy)
  70. --50891-- REDIR: 0x100c28434 (memset) redirected to 0x1009ea130 (memset)
  71. --50891-- REDIR: 0x100c29caf (__memcpy_chk) redirected to 0x1009ea690 (__memcpy_chk)
  72. --50891-- REDIR: 0x100c2a1dc (malloc) redirected to 0x1009e8cf0 (malloc)
  73. --50891-- REDIR: 0x100c2b170 (strlen) redirected to 0x1009e9e10 (strlen)
  74. --50891-- REDIR: 0x100c2a800 (strncmp) redirected to 0x1009e9e30 (strncmp)
  75. ==50891== Warning: bad signal number 13 in sigaction()
  76. --50891-- REDIR: 0x100c31c02 (calloc) redirected to 0x1009e7e8d (calloc)
  77. --50891-- REDIR: 0x100c2b32c (strrchr) redirected to 0x1009e9b50 (strrchr)
  78. --50891-- REDIR: 0x100c2d2a0 (strcpy) redirected to 0x1009eb3e0 (strcpy)
  79. --50891-- REDIR: 0x100c4029b (strchr) redirected to 0x1009e9c10 (strchr)
  80. --50891-- REDIR: 0x100c2b350 (strcmp) redirected to 0x1009e9ef0 (strcmp)
  81. --50891-- REDIR: 0x100c65883 (strcat) redirected to 0x1009ea5b0 (strcat)
  82. --50891-- REDIR: 0x100c2e450 (bcmp) redirected to 0x1009ea010 (bcmp)
  83. --50891-- REDIR: 0x100c31a9c (memmove) redirected to 0x1009ea1d0 (memmove)
  84. --50891-- REDIR: 0x100c3bfed (realloc) redirected to 0x1009e8eb8 (realloc)
  85. --50891-- REDIR: 0x100c2e595 (free) redirected to 0x1009e8845 (free)
  86. --50891-- REDIR: 0x100c33df0 (strlcpy) redirected to 0x1009eafa0 (strlcpy)
  87. --50891-- REDIR: 0x100c400a0 (strlcat) redirected to 0x1009eb5f0 (strlcat)
  88. --50891-- REDIR: 0x100c68680 (memchr) redirected to 0x1009e9f30 (memchr)
  89. --50891-- REDIR: 0x100c72358 (stpcpy) redirected to 0x1009ea970 (stpcpy)
  90. --50891-- REDIR: 0x100c2df96 (malloc_default_zone) redirected to 0x1009e7853 (malloc_default_zone)
  91. --50891-- REDIR: 0x100c2e13e (malloc_zone_calloc) redirected to 0x1009e7dc2 (malloc_zone_calloc)
  92. ==50891== Warning: bad signal number 13 in sigaction()
  93. ==50891== Warning: bad signal number 27 in sigaction()
  94. --50891-- REDIR: 0x100c652a0 (strncpy) redirected to 0x1009eb1e0 (strncpy)
  95. --50891-- REDIR: 0x100c653c2 (__strcpy_chk) redirected to 0x1009ea4f0 (__strcpy_chk)
  96. --50891-- REDIR: 0x7fff5fc23050 (strchr) redirected to 0x1009e9c70 (strchr)
  97. --50891-- /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so (0x101768000)
  98. --50891-- reading syms from primary file (236 2321)
  99. --50891-- dSYM directory is missing; consider using --dsymutil=yes
  100. --50891-- /srv/unixodbc-2.3.0/lib/libodbcinst.1.dylib (0x1017c9000)
  101. --50891-- reading syms from primary file (66 1952)
  102. --50891-- dSYM directory is missing; consider using --dsymutil=yes
  103. ==50891== Invalid free() / delete / delete[]
  104. ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
  105. ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  106. ==50891== by 0x101775B47: parse_server (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  107. ==50891== by 0x101776112: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  108. ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  109. ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
  110. ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
  111. ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
  112. ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
  113. ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
  114. ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
  115. ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
  116. ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
  117. ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
  118. ==50891==
  119. ==50891== Invalid free() / delete / delete[]
  120. ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
  121. ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  122. ==50891== by 0x101775FE7: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  123. ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  124. ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
  125. ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
  126. ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
  127. ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
  128. ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
  129. ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
  130. ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
  131. ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
  132. ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
  133. ==50891==
  134. ==50891== Invalid free() / delete / delete[]
  135. ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
  136. ==50891== by 0x101798C56: tds_dstr_free (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  137. ==50891== by 0x101776047: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  138. ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  139. ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
  140. ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
  141. ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
  142. ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
  143. ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
  144. ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
  145. ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
  146. ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
  147. ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
  148. ==50891==
  149. ==50891== Warning: bad signal number 13 in sigaction()
  150. ==50891== Warning: bad signal number 13 in sigaction()
  151. PDO_ODBC connected with no errors==50891== Warning: bad signal number 13 in sigaction()
  152. ==50891== Warning: bad signal number 13 in sigaction()
  153. ==50891==
  154. ==50891== HEAP SUMMARY:
  155. ==50891== in use at exit: 113,314 bytes in 146 blocks
  156. ==50891== total heap usage: 13,499 allocs, 13,357 frees, 3,535,419 bytes allocated
  157. ==50891==
  158. ==50891== Searching for pointers to 146 not-freed blocks
  159. ==50891== Checked 1,514,856 bytes
  160. ==50891==
  161. ==50891== LEAK SUMMARY:
  162. ==50891== definitely lost: 0 bytes in 0 blocks
  163. ==50891== indirectly lost: 0 bytes in 0 blocks
  164. ==50891== possibly lost: 0 bytes in 0 blocks
  165. ==50891== still reachable: 113,314 bytes in 146 blocks
  166. ==50891== suppressed: 0 bytes in 0 blocks
  167. ==50891== Reachable blocks (those to which a pointer was found) are not shown.
  168. ==50891== To see them, rerun with: --leak-check=full --show-reachable=yes
  169. ==50891==
  170. ==50891== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 0 from 0)
  171. ==50891==
  172. ==50891== 1 errors in context 1 of 3:
  173. ==50891== Invalid free() / delete / delete[]
  174. ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
  175. ==50891== by 0x101798C56: tds_dstr_free (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  176. ==50891== by 0x101776047: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  177. ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  178. ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
  179. ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
  180. ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
  181. ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
  182. ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
  183. ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
  184. ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
  185. ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
  186. ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
  187. ==50891==
  188. ==50891==
  189. ==50891== 1 errors in context 2 of 3:
  190. ==50891== Invalid free() / delete / delete[]
  191. ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
  192. ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  193. ==50891== by 0x101775B47: parse_server (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  194. ==50891== by 0x101776112: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  195. ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  196. ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
  197. ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
  198. ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
  199. ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
  200. ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
  201. ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
  202. ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
  203. ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
  204. ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
  205. ==50891==
  206. ==50891==
  207. ==50891== 2 errors in context 3 of 3:
  208. ==50891== Invalid free() / delete / delete[]
  209. ==50891== at 0x1009E88CC: free (vg_replace_malloc.c:325)
  210. ==50891== by 0x101798D93: tds_dstr_copyn (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  211. ==50891== by 0x101775FE7: odbc_parse_connect_string (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  212. ==50891== by 0x1017739F8: SQLDriverConnect (in /srv/freetds-0.82/lib/libtdsodbc.0.0.0.so)
  213. ==50891== by 0x1012084DE: SQLDriverConnect (in /srv/unixodbc-2.3.0/lib/libodbc.1.dylib)
  214. ==50891== by 0x10014DD32: pdo_odbc_handle_factory (in /srv/php-5.3.3/bin/php)
  215. ==50891== by 0x100141D9A: zim_PDO_dbh_constructor (in /srv/php-5.3.3/bin/php)
  216. ==50891== by 0x1002EC839: zend_do_fcall_common_helper_SPEC (in /srv/php-5.3.3/bin/php)
  217. ==50891== by 0x1002E8BDA: execute (in /srv/php-5.3.3/bin/php)
  218. ==50891== by 0x1002C451A: zend_execute_scripts (in /srv/php-5.3.3/bin/php)
  219. ==50891== by 0x10026CA81: php_execute_script (in /srv/php-5.3.3/bin/php)
  220. ==50891== by 0x100354794: main (in /srv/php-5.3.3/bin/php)
  221. ==50891== Address 0x100a6758b is in the Text segment of /srv/freetds-0.82/lib/libsybdb.5.0.0.dylib
  222. ==50891==
  223. ==50891== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement