Jump to content

Obsolete:Dump memory leak

From Wikitech

This page is kept for historical purposes only.

:(
[brion@srv31 ~]$ vmstat 3
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  0  72612 183792  10836  30464    1    2    31    69    1     5 11  1 81  7
 0  0  72612  31768  10836  30464    0    0     0     1 8566  4763  6 14 80  0
 2  2 118144  14388   7532  13688    0 15823    41 15963 6909  1957  3 28 19 50
 2  2 249640  15992   7568  13928   57 43817   136 43833 13393  4044  6 40 19 34
 0  0 387136  15636   7584  13276  139 45832   399 45839 15494  4821  6 28 33 33
 1  0 548844  16856   7604  12064   43 53905    83 53995 16165  4959  7 27 61  5
 1  4 698100  14892   7616  11480   51 49752   292 49756 15711  4899  7 29 46 18
 0  1 821488  15512   7656  11596   32 41129   261 41249 12978  3766  6 39 15 40
 1  0 974700  15884   7648  11264   43 51069    51 51147 15546  4706  7 33 45 16
 1  0 1129500  16008   7668  11132   12 51600    12 51613 15655  4843  7 23 69  0
 0  0 1285968  15684   7680  11256   21 52164    21 52173 15919  4814  7 28 61  4
 1  1 1452688  14016   7660  10668    0 55593    73 55616 16158  4902  8 29 51 13
 0  0 1605860  16148   7716  10668   21 51067    25 51095 16029  4806  7 25 60  7
 1  0 1779756  16076   7716  10504    0 57967     0 57967 17955  5524  8 28 63  0
 0  0 1950832  15388   7720  10388    0 57027     0 57037 17607  5395  8 28 64  0
 1  0 2056240  15836   7732  10032    0 35165     0 35261 10974  3116  5 59 34  3
 8 16 2096472  14248   7524   7484  415 16989  2132 16989 7939  1957  1 73  6 20
 0  4  81440 1988404   7680  12824  585   64  2383    96 1512   291  0  8 14 78 <- oom kill
 0  0  81440 1986296   7800  14520   88    0   631   207 1434   369  0  0 70 29
#0  0x00ddc402 in ?? ()
#1  0x0039b3d3 in __read_nocancel () from /lib/tls/libpthread.so.0
#2  0x005598cf in vio_read () from /usr/lib/mysql/libmysqlclient.so.10
#3  0x005593e8 in net_write_command () from /usr/lib/mysql/libmysqlclient.so.10
#4  0x0055977b in my_net_read () from /usr/lib/mysql/libmysqlclient.so.10
#5  0x0055558d in net_safe_read () from /usr/lib/mysql/libmysqlclient.so.10
#6  0x00555a72 in mysql_free_result () from /usr/lib/mysql/libmysqlclient.so.10
#7  0x00557d1b in mysql_store_result ()
   from /usr/lib/mysql/libmysqlclient.so.10
#8  0x0812c17f in php_mysql_do_query_general ()
#9  0x0812c372 in zif_mysql_query ()
#10 0x08230241 in zend_do_fcall_common_helper_SPEC ()
#11 0x0822fc55 in execute ()
#12 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#13 0x0822fc55 in execute ()
#14 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#15 0x0822fc55 in execute ()
#16 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#17 0x0822fc55 in execute ()
#18 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#19 0x0822fc55 in execute ()
#20 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#21 0x0822fc55 in execute ()
---Type <return> to continue, or q <return> to quit---
#22 0x08215e36 in zend_execute_scripts ()
#23 0x081d8a58 in php_execute_script ()
#24 0x0827d947 in main ()



(gdb) bt
#0  0x002a3570 in memcpy () from /lib/tls/libc.so.6
#1  0x005559fa in mysql_free_result () from /usr/lib/mysql/libmysqlclient.so.10
#2  0x00557d1b in mysql_store_result ()
   from /usr/lib/mysql/libmysqlclient.so.10
#3  0x0812c17f in php_mysql_do_query_general ()
#4  0x0812c372 in zif_mysql_query ()
#5  0x08230241 in zend_do_fcall_common_helper_SPEC ()
#6  0x0822fc55 in execute ()
#7  0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#8  0x0822fc55 in execute ()
#9  0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#10 0x0822fc55 in execute ()
#11 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#12 0x0822fc55 in execute ()
#13 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#14 0x0822fc55 in execute ()
#15 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#16 0x0822fc55 in execute ()
#17 0x08215e36 in zend_execute_scripts ()
#18 0x081d8a58 in php_execute_script ()
#19 0x0827d947 in main ()


#0  0x002a3581 in memcpy () from /lib/tls/libc.so.6
#1  0x005559fa in mysql_free_result () from /usr/lib/mysql/libmysqlclient.so.10
#2  0x00557d1b in mysql_store_result ()
   from /usr/lib/mysql/libmysqlclient.so.10
#3  0x0812c17f in php_mysql_do_query_general ()
#4  0x0812c372 in zif_mysql_query ()
#5  0x08230241 in zend_do_fcall_common_helper_SPEC ()
#6  0x0822fc55 in execute ()
#7  0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#8  0x0822fc55 in execute ()
#9  0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#10 0x0822fc55 in execute ()
#11 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#12 0x0822fc55 in execute ()
#13 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#14 0x0822fc55 in execute ()
#15 0x0822fe42 in zend_do_fcall_common_helper_SPEC ()
#16 0x0822fc55 in execute ()
#17 0x08215e36 in zend_execute_scripts ()
#18 0x081d8a58 in php_execute_script ()
#19 0x0827d947 in main ()