I'll try to find any allocated memory not being freed.<br><br>I can see some modules use switch_mutex_init but no switch_mutex_destroy. I thought that they were allocated from pool not being necessary to free manually. Must I use switch_mutex_destroy when unloading? What about switch_core_hash_init and switch_core_hash_destroy for hash items?<br>
<br>Regards<br><br><div class="gmail_quote">2010/7/1 Anthony Minessale <span dir="ltr"><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
everything that you allocated or reserved from FS must be given back and unreserved when you unload or it will create invalid pointers in memory.<div><br><div><br><div class="gmail_quote">2010/7/1 Juan Antonio Ibaņez Santorum <span dir="ltr"><<a href="mailto:juanito1982@gmail.com" target="_blank">juanito1982@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">Hello!<br><br> I've made one module with one api function and one app function. I added one extension to call my app. I only print a console message whitin the app function. If I unload the module, make one change on the code, compile, install an reaload the module, when calling the extension which exec the app I get a core. I can see with gdb:<br>
<br>----------------------------------<br>#0 0x00b20010 in switch_core_session_run (session=0x87be678)<br> at src/switch_core_state_machine.c:338<br>338 STATE_MACRO(init, "INIT");<br>
(gdb) bt full<br>#0 0x00b20010 in switch_core_session_run (session=0x87be678)<br> at src/switch_core_state_machine.c:338<br> index = 2<br> global_proceed = 1<br> state = <value optimized out><br>
endstate = 12771850<br> endpoint_interface = <value optimized out><br> driver_state_handler = 0x65a660<br> application_state_handler = 0x3910e0<br> new_loops = 59994<br> __PRETTY_FUNCTION__ = "switch_core_session_run"<br>
__func__ = "switch_core_session_run"<br>#1 0x00b1ac16 in switch_core_session_thread (thread=0x873a250, obj=0x87be678)<br> at src/switch_core_session.c:1162<br> session = 0x87be678<br> event = <value optimized out><br>
event_str = 0x0<br> val = 0x0<br> __func__ = "switch_core_session_thread"<br> __PRETTY_FUNCTION__ = "switch_core_session_thread"<br>#2 0x00ba2456 in dummy_worker (opaque=0x873a250)<br>
at threadproc/unix/thread.c:138<br>No locales.<br>---Type <return> to continue, or q <return> to quit---<br>#3 0x0011596e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0<br>No symbol table info available.<br>
#4 0x001f6a0e in clone () from /lib/tls/i686/cmov/libc.so.6<br>No symbol table info available.<br><br>----------------------------------<br><br>But I don't see which could be the problem. Any idea?<br><br>Regards<br>
<br></div></div><div class="im">_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></div></blockquote></div><br><br clear="all"><div class="im"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>