[Freeswitch-users] memory leak
Rupa Schomaker
rupa at rupa.com
Fri Sep 4 07:10:24 PDT 2009
Worst offenders (leakers over 100K). The last one is the worst (672M)
-- looks like a lua script. What are you doing in lua again?
==28624== 105,725 bytes in 1,804 blocks are still reachable in loss
record 497 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x50384F2: xmlrpc_strdupnull (asprintf.c:92)
==28624== by 0x503F86D: RequestRead (http.c:57)
==28624== by 0x5044413: ??? (server.c:538)
==28624== by 0x5039FAF: ??? (conn.c:37)
==28624== by 0x50486F1: ??? (thread_pthread.c:48)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 116,772 bytes in 3,156 blocks are definitely lost in loss
record 498 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x4088664: switch_channel_perform_hangup (switch_channel.c:1674)
==28624== by 0x64A12EA: ??? (mod_dptools.c:633)
==28624== by 0x409AA45: switch_core_session_exec (switch_core_session.c:1476)
==28624== by 0x409AF88: switch_core_session_execute_application
(switch_core_session.c:1398)
==28624== by 0x409E674: switch_core_session_run
(switch_core_state_machine.c:166)
==28624== by 0x409A48E: switch_core_session_thread
(switch_core_session.c:1066)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624==
==28624==
==28624== 119,658 (119,621 direct, 37 indirect) bytes in 3,233 blocks
are definitely lost in loss record 499 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x4088664: switch_channel_perform_hangup (switch_channel.c:1674)
==28624== by 0x50B6790: sofia_event_callback (sofia.c:3863)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DD75: su_base_port_step (su_base_port.c:454)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624== by 0x5190938: su_root_step (su_root.c:858)
==28624==
==28624==
==28624== 124,209 bytes in 3,357 blocks are still reachable in loss
record 500 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x409A5EC: switch_core_session_thread
(switch_core_session.c:1086)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 124,290 bytes in 4,143 blocks are still reachable in loss
record 501 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x443B957: vasprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x5038532: xmlrpc_vasprintf (asprintf.c:61)
==28624== by 0x5038581: xmlrpc_asprintf (asprintf.c:81)
==28624== by 0x503B881: DateToString (date.c:43)
==28624== by 0x5036D09: handler_hook (mod_xml_rpc.c:733)
==28624== by 0x504456F: ??? (server.c:515)
==28624== by 0x5039FAF: ??? (conn.c:37)
==28624== by 0x50486F1: ??? (thread_pthread.c:48)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 137,085 bytes in 3,705 blocks are still reachable in loss
record 502 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x409921F: switch_core_session_perform_destroy
(switch_core_session.c:947)
==28624== by 0x409A60D: switch_core_session_thread
(switch_core_session.c:1088)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 145,589 bytes in 1,837 blocks are possibly lost in loss
record 503 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x50384F2: xmlrpc_strdupnull (asprintf.c:92)
==28624== by 0x503F86D: RequestRead (http.c:57)
==28624== by 0x5044413: ??? (server.c:538)
==28624== by 0x5039FAF: ??? (conn.c:37)
==28624== by 0x50486F1: ??? (thread_pthread.c:48)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 151,929 (151,922 direct, 7 indirect) bytes in 4,106 blocks
are definitely lost in loss record 504 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x4088664: switch_channel_perform_hangup (switch_channel.c:1674)
==28624== by 0x40C124A: audio_bridge_on_exchange_media
(switch_ivr_bridge.c:503)
==28624== by 0x409DB8B: switch_core_session_run
(switch_core_state_machine.c:494)
==28624== by 0x409A48E: switch_core_session_thread
(switch_core_session.c:1066)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 200,704 bytes in 1 blocks are still reachable in loss record
505 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x410C0EC: apr_palloc (apr_pools.c:300)
==28624== by 0x4101A3A: apr_queue_create (apr_queue.c:129)
==28624== by 0x407FFEA: switch_queue_create (switch_apr.c:897)
==28624== by 0x509F2B5: mod_sofia_load (mod_sofia.c:3371)
==28624== by 0x40AF30D: switch_loadable_module_load_module_ex
(switch_loadable_module.c:846)
==28624== by 0x40AFCCF: switch_loadable_module_init
(switch_loadable_module.c:1174)
==28624== by 0x40A8320: switch_core_init_and_modload (switch_core.c:1451)
==28624== by 0x804A7EC: main (switch.c:731)
==28624==
==28624==
==28624== 200,704 bytes in 1 blocks are still reachable in loss record
506 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x410C0EC: apr_palloc (apr_pools.c:300)
==28624== by 0x4101A3A: apr_queue_create (apr_queue.c:129)
==28624== by 0x407FFEA: switch_queue_create (switch_apr.c:897)
==28624== by 0x509F295: mod_sofia_load (mod_sofia.c:3370)
==28624== by 0x40AF30D: switch_loadable_module_load_module_ex
(switch_loadable_module.c:846)
==28624== by 0x40AFCCF: switch_loadable_module_init
(switch_loadable_module.c:1174)
==28624== by 0x40A8320: switch_core_init_and_modload (switch_core.c:1451)
==28624== by 0x804A7EC: main (switch.c:731)
==28624==
==28624==
==28624== 225,280 bytes in 11 blocks are still reachable in loss
record 507 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x503AC39: ??? (mallocvar.h:43)
==28624== by 0x503ACBD: PoolAlloc (data.c:602)
==28624== by 0x503AD2C: PoolStrdup (data.c:674)
==28624== by 0x5043442: MIMETypeAdd2 (response.c:356)
==28624== by 0x50434DD: MIMETypeAdd (response.c:415)
==28624== by 0x503586D: mod_xml_rpc_runtime (mod_xml_rpc.c:936)
==28624== by 0x40AF772: switch_loadable_module_exec
(switch_loadable_module.c:94)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 246,312 bytes in 311 blocks are possibly lost in loss record
508 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x50D7759: sofia_glue_do_invite (sofia_glue.c:1677)
==28624== by 0x50A2400: sofia_on_init (mod_sofia.c:102)
==28624== by 0x409D587: switch_core_session_run
(switch_core_state_machine.c:481)
==28624== by 0x409A48E: switch_core_session_thread
(switch_core_session.c:1066)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 303,104 bytes in 37 blocks are still reachable in loss
record 509 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x410BB2F: apr_pool_create_ex (apr_pools.c:300)
==28624== by 0x4092416: switch_core_perform_new_memory_pool
(switch_core_memory.c:357)
==28624== by 0x40AF24E: switch_loadable_module_load_module_ex
(switch_loadable_module.c:785)
==28624== by 0x40AFCCF: switch_loadable_module_init
(switch_loadable_module.c:1174)
==28624== by 0x40A8320: switch_core_init_and_modload (switch_core.c:1451)
==28624== by 0x804A7EC: main (switch.c:731)
==28624==
==28624==
==28624== 399,637 (399,600 direct, 37 indirect) bytes in 10,800 blocks
are definitely lost in loss record 510 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x4088664: switch_channel_perform_hangup (switch_channel.c:1674)
==28624== by 0x50B2A5E: sofia_handle_sip_i_bye (sofia.c:327)
==28624== by 0x50B4A76: sofia_event_callback (sofia.c:508)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DD75: su_base_port_step (su_base_port.c:454)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624==
==28624==
==28624== 444,777 bytes in 12,021 blocks are definitely lost in loss
record 511 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x4088664: switch_channel_perform_hangup (switch_channel.c:1674)
==28624== by 0x50B6790: sofia_event_callback (sofia.c:3863)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DE27: su_base_port_step (su_base_port.c:473)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624== by 0x5190938: su_root_step (su_root.c:858)
==28624==
==28624==
==28624== 2,261,847 (2,261,810 direct, 37 indirect) bytes in 61,130
blocks are definitely lost in loss record 512 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x408A4B7: switch_channel_perform_mark_answered
(switch_channel.c:1914)
==28624== by 0x50B8528: sofia_event_callback (sofia.c:3807)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DD75: su_base_port_step (su_base_port.c:454)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624== by 0x5190938: su_root_step (su_root.c:858)
==28624==
==28624==
==28624== 2,413,880 (2,413,843 direct, 37 indirect) bytes in 65,239
blocks are definitely lost in loss record 513 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x4088664: switch_channel_perform_hangup (switch_channel.c:1674)
==28624== by 0x50B2A5E: sofia_handle_sip_i_bye (sofia.c:327)
==28624== by 0x50B4A76: sofia_event_callback (sofia.c:508)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DE27: su_base_port_step (su_base_port.c:473)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624==
==28624==
==28624== 2,416,640 bytes in 295 blocks are still reachable in loss
record 514 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x410C0EC: apr_palloc (apr_pools.c:300)
==28624== by 0x41110E6: apr_thread_create (thread.c:150)
==28624== by 0x4080878: switch_thread_create (switch_apr.c:631)
==28624== by 0x6C278E9: lua_thread (mod_lua.cpp:372)
==28624== by 0x6C27948: ??? (mod_lua.cpp:407)
==28624== by 0x40AADFC: switch_api_execute (switch_loadable_module.c:1567)
==28624== by 0x583A7FC: ??? (mod_commands.c:2426)
==28624== by 0x40A8881: switch_scheduler_execute (switch_scheduler.c:61)
==28624== by 0x40A8DE0: task_thread_loop (switch_scheduler.c:127)
==28624== by 0x40A8EA3: switch_scheduler_task_thread (switch_scheduler.c:168)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624==
==28624==
==28624== 2,671,215 (2,671,178 direct, 37 indirect) bytes in 72,194
blocks are definitely lost in loss record 515 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x408ACF4: switch_channel_perform_mark_ring_ready
(switch_channel.c:1697)
==28624== by 0x50B6E29: sofia_event_callback (sofia.c:3366)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DD75: su_base_port_step (su_base_port.c:454)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624== by 0x5190938: su_root_step (su_root.c:858)
==28624==
==28624==
==28624== 2,826,171 bytes in 76,383 blocks are definitely lost in loss
record 516 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x4088664: switch_channel_perform_hangup (switch_channel.c:1674)
==28624== by 0x40C1049: signal_bridge_on_hangup (switch_ivr_bridge.c:710)
==28624== by 0x409D7CF: switch_core_session_run
(switch_core_state_machine.c:434)
==28624== by 0x409A48E: switch_core_session_thread
(switch_core_session.c:1066)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 2,968,658 bytes in 80,234 blocks are definitely lost in loss
record 517 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x692F07B: ??? (mod_dialplan_xml.c:315)
==28624== by 0x409EFFD: switch_core_session_run
(switch_core_state_machine.c:109)
==28624== by 0x409A48E: switch_core_session_thread
(switch_core_session.c:1066)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 2,974,282 (2,974,245 direct, 37 indirect) bytes in 80,385
blocks are definitely lost in loss record 518 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x40DDF32: switch_ivr_session_transfer (switch_ivr.c:1350)
==28624== by 0x5840B54: ??? (mod_commands.c:2319)
==28624== by 0x40AADFC: switch_api_execute (switch_loadable_module.c:1567)
==28624== by 0x5036FAA: handler_hook (mod_xml_rpc.c:777)
==28624== by 0x504456F: ??? (server.c:515)
==28624== by 0x5039FAF: ??? (conn.c:37)
==28624== by 0x50486F1: ??? (thread_pthread.c:48)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624==
==28624==
==28624== 2,976,983 (2,976,909 direct, 74 indirect) bytes in 80,457
blocks are definitely lost in loss record 519 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x408B204: switch_channel_set_name (switch_channel.c:602)
==28624== by 0x50D3FDD: sofia_glue_attach_private (sofia_glue.c:527)
==28624== by 0x50A35EF: sofia_outgoing_channel (mod_sofia.c:2854)
==28624== by 0x409B970: switch_core_session_outgoing_channel
(switch_core_session.c:410)
==28624== by 0x40C53D8: switch_ivr_originate (switch_ivr_originate.c:1508)
==28624== by 0x64A7F2F: ??? (mod_dptools.c:2092)
==28624== by 0x409AA45: switch_core_session_exec (switch_core_session.c:1476)
==28624== by 0x409AF88: switch_core_session_execute_application
(switch_core_session.c:1398)
==28624==
==28624==
==28624== 3,085,393 bytes in 83,389 blocks are definitely lost in loss
record 520 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x408ACF4: switch_channel_perform_mark_ring_ready
(switch_channel.c:1697)
==28624== by 0x50B6E29: sofia_event_callback (sofia.c:3366)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DE27: su_base_port_step (su_base_port.c:473)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624== by 0x5190938: su_root_step (su_root.c:858)
==28624==
==28624==
==28624== 3,110,961 (3,107,016 direct, 3,945 indirect) bytes in 3,923
blocks are definitely lost in loss record 521 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x50D7759: sofia_glue_do_invite (sofia_glue.c:1677)
==28624== by 0x50A2400: sofia_on_init (mod_sofia.c:102)
==28624== by 0x409D587: switch_core_session_run
(switch_core_state_machine.c:481)
==28624== by 0x409A48E: switch_core_session_thread
(switch_core_session.c:1066)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 3,550,402 (3,550,261 direct, 141 indirect) bytes in 95,953
blocks are definitely lost in loss record 522 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x408B204: switch_channel_set_name (switch_channel.c:602)
==28624== by 0x50D3FDD: sofia_glue_attach_private (sofia_glue.c:527)
==28624== by 0x50A35EF: sofia_outgoing_channel (mod_sofia.c:2854)
==28624== by 0x409B970: switch_core_session_outgoing_channel
(switch_core_session.c:410)
==28624== by 0x40C53D8: switch_ivr_originate (switch_ivr_originate.c:1508)
==28624== by 0x5840AF1: ??? (mod_commands.c:2285)
==28624== by 0x40AADFC: switch_api_execute (switch_loadable_module.c:1567)
==28624== by 0x5036FAA: handler_hook (mod_xml_rpc.c:777)
==28624==
==28624==
==28624== 3,687,864 (3,687,790 direct, 74 indirect) bytes in 99,670
blocks are definitely lost in loss record 523 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x408A4B7: switch_channel_perform_mark_answered
(switch_channel.c:1914)
==28624== by 0x50B8528: sofia_event_callback (sofia.c:3807)
==28624== by 0x5146787: nua_application_event (nua_stack.c:393)
==28624== by 0x519DB28: su_base_port_execute_msgs (su_base_port.c:280)
==28624== by 0x519D8CF: su_base_port_getmsgs (su_base_port.c:202)
==28624== by 0x519DE27: su_base_port_step (su_base_port.c:473)
==28624== by 0x5190968: su_port_step (su_port.h:340)
==28624== by 0x5190938: su_root_step (su_root.c:858)
==28624==
==28624==
==28624== 4,833,280 bytes in 590 blocks are still reachable in loss
record 524 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x410C0EC: apr_palloc (apr_pools.c:300)
==28624== by 0x41112CF: apr_threadattr_create (thread.c:45)
==28624== by 0x4080953: switch_threadattr_create (switch_apr.c:589)
==28624== by 0x6C27891: lua_thread (mod_lua.cpp:369)
==28624== by 0x6C27948: ??? (mod_lua.cpp:407)
==28624== by 0x40AADFC: switch_api_execute (switch_loadable_module.c:1567)
==28624== by 0x583A7FC: ??? (mod_commands.c:2426)
==28624== by 0x40A8881: switch_scheduler_execute (switch_scheduler.c:61)
==28624== by 0x40A8DE0: task_thread_loop (switch_scheduler.c:127)
==28624== by 0x40A8EA3: switch_scheduler_task_thread (switch_scheduler.c:168)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624==
==28624==
==28624== 6,502,484 (6,502,269 direct, 215 indirect) bytes in 175,737
blocks are definitely lost in loss record 525 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x409921F: switch_core_session_perform_destroy
(switch_core_session.c:947)
==28624== by 0x409A60D: switch_core_session_thread
(switch_core_session.c:1088)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 6,515,323 (6,515,219 direct, 104 indirect) bytes in 176,087
blocks are definitely lost in loss record 526 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x40E4EA9: switch_log_vprintf (switch_log.c:438)
==28624== by 0x40E5130: switch_log_printf (switch_log.c:308)
==28624== by 0x409A5EC: switch_core_session_thread
(switch_core_session.c:1086)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 7,557,720 bytes in 251,924 blocks are definitely lost in
loss record 527 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x443B957: vasprintf (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x5038532: xmlrpc_vasprintf (asprintf.c:61)
==28624== by 0x5038581: xmlrpc_asprintf (asprintf.c:81)
==28624== by 0x503B881: DateToString (date.c:43)
==28624== by 0x5036D09: handler_hook (mod_xml_rpc.c:733)
==28624== by 0x504456F: ??? (server.c:515)
==28624== by 0x5039FAF: ??? (conn.c:37)
==28624== by 0x50486F1: ??? (thread_pthread.c:48)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 8,700,546 (8,700,436 direct, 110 indirect) bytes in 253,570
blocks are definitely lost in loss record 528 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x444AFCF: strdup (in /lib/tls/i686/cmov/libc-2.7.so)
==28624== by 0x50384F2: xmlrpc_strdupnull (asprintf.c:92)
==28624== by 0x503F86D: RequestRead (http.c:57)
==28624== by 0x5044413: ??? (server.c:538)
==28624== by 0x5039FAF: ??? (conn.c:37)
==28624== by 0x50486F1: ??? (thread_pthread.c:48)
==28624== by 0x42114FA: start_thread (in
/lib/tls/i686/cmov/libpthread-2.7.so)
==28624== by 0x44AFE5D: clone (in /lib/tls/i686/cmov/libc-2.7.so)
==28624==
==28624==
==28624== 672,268,288 bytes in 82,064 blocks are still reachable in
loss record 529 of 529
==28624== at 0x4022AB8: malloc (vg_replace_malloc.c:207)
==28624== by 0x410BB2F: apr_pool_create_ex (apr_pools.c:300)
==28624== by 0x4111176: apr_thread_create (thread.c:171)
==28624== by 0x4080878: switch_thread_create (switch_apr.c:631)
==28624== by 0x6C278E9: lua_thread (mod_lua.cpp:372)
==28624== by 0x6C27948: ??? (mod_lua.cpp:407)
==28624== by 0x40AADFC: switch_api_execute (switch_loadable_module.c:1567)
==28624== by 0x583A7FC: ??? (mod_commands.c:2426)
==28624== by 0x40A8881: switch_scheduler_execute (switch_scheduler.c:61)
==28624== by 0x40A8DE0: task_thread_loop (switch_scheduler.c:127)
==28624== by 0x40A8EA3: switch_scheduler_task_thread (switch_scheduler.c:168)
==28624== by 0x4110E05: dummy_worker (thread.c:138)
==28624==
==28624== LEAK SUMMARY:
==28624== definitely lost: 63,113,740 bytes in 1,690,880 blocks.
==28624== indirectly lost: 35,632 bytes in 491 blocks.
==28624== possibly lost: 645,758 bytes in 9,150 blocks.
==28624== still reachable: 681,849,684 bytes in 113,077 blocks.
==28624== suppressed: 0 bytes in 0 blocks.
On Fri, Sep 4, 2009 at 7:42 AM, Benedikt
Fraunhofer<fraunhofer.lists.freeswitch-001 at traced.net> wrote:
> Hello Anthony,
>
> 2009/9/2 Anthony Minessale <anthony.minessale at gmail.com>:
>
>> yes if you have a version that only has log-file you can use that.
>>
>> if you find me on irc and send me the credentials privately I will examine
>> your box for you.
>
> thanks for that offer, but the box is pretty deep inside our internal
> network with no routing to the outside, several stepping-stones in
> between and all that "security" stuff.
>
> I finally found the right amount of load where the memory leak builds
> up quickly enough and was able to stop freeswitch before it started
> swapping. The result is available on
>
> http://ns42.ath.cx/B0GdWh/vg-2.log.bz2
>
> (19k)
>
> Thx in advance
> Beni.
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
--
-Rupa
More information about the FreeSWITCH-users
mailing list