[Freeswitch-dev] Core on module reload

Juan Antonio Ibañez Santorum juanito1982 at gmail.com
Thu Jul 1 04:57:33 PDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100701/fbba8424/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list