[OpenSER-Devel] Error with child process (maybe memory )
Matheus Araújo Aguiar
matheus.pit at gmail.com
Wed Apr 16 22:17:38 CEST 2008
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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openser.org/pipermail/devel/attachments/20080416/45998e33/attachment.htm
More information about the Devel
mailing list