[OpenSER-Devel] Error with child process (maybe memory )

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 17 09:21:44 CEST 2008


Hello,

you are "lucky" as you got a core. Investigate it with the gdb.

In the first place, the prototype of your function is wrong. It must 
have a sip_msg parameter plus char* parameters as you need, up to 6. See:

http://www.asipto.com/pub/openser-devel-guide/#c16moduledev

Cheers,
Daniel


On 04/16/08 23:17, Matheus Araújo Aguiar wrote:
> Hi guys,
>
> I'm developing a module for OpenSER to suit the need of the company I 
> work for.
> I've just started doing it, and made a simple code, just to test the 
> interface with OpenSER e see if everything's working fine.
>
> I've created a function called test_module(), as you can see below:
>
>            static void test_module(void) {
>
>                   LM_DBG("XXXXXXXXXXXX");
>
>           }
>
> Also, I created the mod_init and child_init functions as well.
>
> So I placed a call to test_module in the first line of the routing 
> logic, just to see if it would work.
> But when a client sends a register request, OpenSER crashes and I got 
> the following error messages:
>
>          Apr 16 16:45:59 [12071] DBG:core:receive_msg: preparing to 
> run routing scripts...
>          Apr 16 16:45:59 [12080] CRITICAL:core:receive_fd: EOF on 7
>          Apr 16 16:45:59 [12080] DBG:core:handle_ser_child: dead child 
> 3, pid 12071 (shutting down?)
>          Apr 16 16:45:59 [12080] DBG:core:io_watch_del: io_watch_del 
> (0x8156ca0, 7, -1, 0x0) fd_no=14 called
>          Apr 16 16:45:59 [12068] INFO:core:handle_sigs: child process 
> 12071 exited by a signal 11
>          Apr 16 16:45:59 [12068] INFO:core:handle_sigs: core was generated
>          Apr 16 16:45:59 [12068] INFO:core:handle_sigs: terminating 
> due to SIGCHLD
>          Apr 16 16:45:59 [12080] INFO:core:sig_usr: signal 15 received
>
>
> I'm suspecting it has something to do with threads. Maybe it's 
> something easy to solve, but I don't have much experience with 
> threads, so I ask for your help.
>
> Best regards,
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Devel mailing list
> Devel at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/devel
>   

-- 
http://www.asipto.com




More information about the Devel mailing list