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

Matheus Araújo Aguiar matheus.pit at gmail.com
Thu Apr 17 16:03:24 CEST 2008


Thanks, both of you, Daniel and Henning.

After some tests on other machine, i've discovered that it was working
fine(except for the function protoype, which i had already corrected).
I just downloaded new sources of OpenSER and compiled and installed them,
and everything started working right.

Cheers!
Thank you again,
On Thu, Apr 17, 2008 at 4:21 AM, Daniel-Constantin Mierla <miconda at gmail.com>
wrote:

> 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
>
>


-- 
Matheus Araújo Aguiar
Computer Science Student
matheus.pit at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openser.org/pipermail/devel/attachments/20080417/9ef527c7/attachment.htm 


More information about the Devel mailing list