VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
mrene_lists at avgs.ca Guest
|
Posted: Tue Aug 18, 2009 10:15 am Post subject: [Freeswitch-users] memory leak with switch_core_hash_insert |
|
|
Hi,
You're missing:
switch_core_hash_destroy(&hash)
Mathieu Rene
Avant-Garde Solutions Inc
Office: + 1 (514) 664-1044 x100
Cell: +1 (514) 664-1044 x200
mrene@avgs.ca (mrene@avgs.ca)
On 18-Aug-09, at 11:04 AM, Juan Backson wrote:
Quote: | Hi,
I am getting some strange vg malloc error message in switch_core_hash_insert. Does anyone know what is wrong with these few lines? Am I missing something?
switch_core_hash_init(&hash,pool);
param_name =switch_core_sprintf(pool,"%s", key);
param_value =switch_core_sprintf(pool,"%s", value);
switch_core_hash_insert(hash,param_name,param_value);
==5459==
==5459== 8,973 (2,344 direct, 6,629 indirect) bytes in 10 blocks are definitely lost in loss record 62 of 89
==5459== at 0x4A05809: malloc (vg_replace_malloc.c:149)
==5459== by 0x4CEBB68: sqlite3MallocX (sqliteInt.h:278)
==5459== by 0x4CE1C7E: rehash (hash.c:227)
==5459== by 0x4CE206F: sqlite3HashInsert (hash.c:386)
==5459== by 0x4C70EA4: switch_core_hash_insert (switch_core_hash.c:67)
==5459== by 0x7CEAD07: ??? (mod_specialivr.c:343)
==5459== by 0x7CEBF87: ??? (mod_specialivr.c:784)
==5459== by 0x7CEDBF0: ??? (mod_specialivr.c:1778)
==5459== by 0x4C790AC: switch_core_session_run (switch_core_state_machine.c:109)
==5459== by 0x4C751FF: switch_core_session_thread (switch_core_session.c:1066)
==5459== by 0x4FBC306: start_thread (in /lib64/libpthread-2.5.so)
==5459== by 0x35018D1DEC: clone (in /lib64/libc-2.5.so)
==5459==
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
juanbackson at gmail.com Guest
|
Posted: Tue Aug 18, 2009 10:16 am Post subject: [Freeswitch-users] memory leak with switch_core_hash_insert |
|
|
Hi,
I am getting some strange vg malloc error message in switch_core_hash_insert. Does anyone know what is wrong with these few lines? Am I missing something?
switch_core_hash_init(&hash,pool);
param_name =switch_core_sprintf(pool,"%s", key);
param_value =switch_core_sprintf(pool,"%s", value);
switch_core_hash_insert(hash,param_name,param_value);
==5459==
==5459== 8,973 (2,344 direct, 6,629 indirect) bytes in 10 blocks are definitely lost in loss record 62 of 89
==5459== at 0x4A05809: malloc (vg_replace_malloc.c:149)
==5459== by 0x4CEBB68: sqlite3MallocX (sqliteInt.h:278)
==5459== by 0x4CE1C7E: rehash (hash.c:227)
==5459== by 0x4CE206F: sqlite3HashInsert (hash.c:386)
==5459== by 0x4C70EA4: switch_core_hash_insert (switch_core_hash.c:67)
==5459== by 0x7CEAD07: ??? (mod_specialivr.c:343)
==5459== by 0x7CEBF87: ??? (mod_specialivr.c:784)
==5459== by 0x7CEDBF0: ??? (mod_specialivr.c:1778)
==5459== by 0x4C790AC: switch_core_session_run (switch_core_state_machine.c:109)
==5459== by 0x4C751FF: switch_core_session_thread (switch_core_session.c:1066)
==5459== by 0x4FBC306: start_thread (in /lib64/libpthread-2.5.so)
==5459== by 0x35018D1DEC: clone (in /lib64/libc-2.5.so)
==5459== |
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Tue Aug 18, 2009 10:29 am Post subject: [Freeswitch-users] memory leak with switch_core_hash_insert |
|
|
try running freeswitch with -vg command line arg.
Mike
On Aug 18, 2009, at 11:04 AM, Juan Backson wrote:
Quote: | Hi,
I am getting some strange vg malloc error message in switch_core_hash_insert. Does anyone know what is wrong with these few lines? Am I missing something?
switch_core_hash_init(&hash,pool);
param_name =switch_core_sprintf(pool,"%s", key);
param_value =switch_core_sprintf(pool,"%s", value);
switch_core_hash_insert(hash,param_name,param_value);
==5459==
==5459== 8,973 (2,344 direct, 6,629 indirect) bytes in 10 blocks are definitely lost in loss record 62 of 89
==5459== at 0x4A05809: malloc (vg_replace_malloc.c:149)
==5459== by 0x4CEBB68: sqlite3MallocX (sqliteInt.h:278)
==5459== by 0x4CE1C7E: rehash (hash.c:227)
==5459== by 0x4CE206F: sqlite3HashInsert (hash.c:386)
==5459== by 0x4C70EA4: switch_core_hash_insert (switch_core_hash.c:67)
==5459== by 0x7CEAD07: ??? (mod_specialivr.c:343)
==5459== by 0x7CEBF87: ??? (mod_specialivr.c:784)
==5459== by 0x7CEDBF0: ??? (mod_specialivr.c:1778)
==5459== by 0x4C790AC: switch_core_session_run (switch_core_state_machine.c:109)
==5459== by 0x4C751FF: switch_core_session_thread (switch_core_session.c:1066)
==5459== by 0x4FBC306: start_thread (in /lib64/libpthread-2.5.so)
==5459== by 0x35018D1DEC: clone (in /lib64/libc-2.5.so)
==5459==
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Tue Aug 18, 2009 11:13 am Post subject: [Freeswitch-users] memory leak with switch_core_hash_insert |
|
|
Just a heads up: this is a rather technical subject. I highly recommend that you use freeswitch-dev list for this kind of thing.
-MC
On Tue, Aug 18, 2009 at 8:04 AM, Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)> wrote:
Quote: | Hi,
I am getting some strange vg malloc error message in switch_core_hash_insert. Does anyone know what is wrong with these few lines? Am I missing something?
switch_core_hash_init(&hash,pool);
param_name =switch_core_sprintf(pool,"%s", key);
param_value =switch_core_sprintf(pool,"%s", value);
switch_core_hash_insert(hash,param_name,param_value);
==5459==
==5459== 8,973 (2,344 direct, 6,629 indirect) bytes in 10 blocks are definitely lost in loss record 62 of 89
==5459== at 0x4A05809: malloc (vg_replace_malloc.c:149)
==5459== by 0x4CEBB68: sqlite3MallocX (sqliteInt.h:278)
==5459== by 0x4CE1C7E: rehash (hash.c:227)
==5459== by 0x4CE206F: sqlite3HashInsert (hash.c:386)
==5459== by 0x4C70EA4: switch_core_hash_insert (switch_core_hash.c:67)
==5459== by 0x7CEAD07: ??? (mod_specialivr.c:343)
==5459== by 0x7CEBF87: ??? (mod_specialivr.c:784)
==5459== by 0x7CEDBF0: ??? (mod_specialivr.c:1778)
==5459== by 0x4C790AC: switch_core_session_run (switch_core_state_machine.c:109)
==5459== by 0x4C751FF: switch_core_session_thread (switch_core_session.c:1066)
==5459== by 0x4FBC306: start_thread (in /lib64/libpthread-2.5.so)
==5459== by 0x35018D1DEC: clone (in /lib64/libc-2.5.so)
==5459==
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|