[Freeswitch-dev] Core on module reload
Anthony Minessale
anthony.minessale at gmail.com
Thu Jul 1 07:41:29 PDT 2010
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.
2010/7/1 Juan Antonio Ibañez Santorum <juanito1982 at gmail.com>
> Hello!
>
> 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:
>
> ----------------------------------
> #0 0x00b20010 in switch_core_session_run (session=0x87be678)
> at src/switch_core_state_machine.c:338
> 338 STATE_MACRO(init, "INIT");
> (gdb) bt full
> #0 0x00b20010 in switch_core_session_run (session=0x87be678)
> at src/switch_core_state_machine.c:338
> index = 2
> global_proceed = 1
> state = <value optimized out>
> endstate = 12771850
> endpoint_interface = <value optimized out>
> driver_state_handler = 0x65a660
> application_state_handler = 0x3910e0
> new_loops = 59994
> __PRETTY_FUNCTION__ = "switch_core_session_run"
> __func__ = "switch_core_session_run"
> #1 0x00b1ac16 in switch_core_session_thread (thread=0x873a250,
> obj=0x87be678)
> at src/switch_core_session.c:1162
> session = 0x87be678
> event = <value optimized out>
> event_str = 0x0
> val = 0x0
> __func__ = "switch_core_session_thread"
> __PRETTY_FUNCTION__ = "switch_core_session_thread"
> #2 0x00ba2456 in dummy_worker (opaque=0x873a250)
> at threadproc/unix/thread.c:138
> No locales.
> ---Type <return> to continue, or q <return> to quit---
> #3 0x0011596e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
> No symbol table info available.
> #4 0x001f6a0e in clone () from /lib/tls/i686/cmov/libc.so.6
> No symbol table info available.
>
> ----------------------------------
>
> But I don't see which could be the problem. Any idea?
>
> Regards
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100701/e4913048/attachment.html
More information about the FreeSWITCH-dev
mailing list