[OpenSIPS-Devel] [ opensips-Bugs-3605902 ] Opensips crashes when EXEC-Module is loaded
SourceForge.net
noreply at sourceforge.net
Thu Mar 7 13:01:20 CET 2013
Bugs item #3605902, was opened at 2013-02-25 03:45
Message generated for change (Comment added) made by chris-secusmart
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3605902&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.8.x
Status: Open
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Christian Lahme (chris-secusmart)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: Opensips crashes when EXEC-Module is loaded
Initial Comment:
If you try to configure
loadmodule \"exec.so\"
you will get something similiar to this in your logs:
CRITICAL:core:receive_fd: EOF on 10
INFO:core:handle_sigs: child process 9969 exited by a signal 11
INFO:core:handle_sigs: core was generated
INFO:core:handle_sigs: terminating due to SIGCHLD
----------------------------------------------------------------------
>Comment By: Christian Lahme (chris-secusmart)
Date: 2013-03-07 04:01
Message:
I will do a machine on saturday and send you all creds.
----------------------------------------------------------------------
Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-03-07 03:59
Message:
Are you able to reproduce this on any other machine ? if so, it is possible
to get access to such machine to investigate ?
Regards,
Bogdan
----------------------------------------------------------------------
Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2013-02-26 07:29
Message:
Chris, this is really strange - the crash shows that an aux process (of the
exec modules) was started (the exec_async_proc process). This process is
intended to start only if async is enabled (which by default is disabled)
.
If you look in modules/exec/exec_mod.c file, the mod_init() function (line
120) : if "async" is not enabled, the exports.procs = 0 setting will take
care and prevent the aux process to be started.
Are you sure you do not have some patching on the exec module ?
Regards,
Bogdan
----------------------------------------------------------------------
Comment By: Christian Lahme (chris-secusmart)
Date: 2013-02-26 05:45
Message:
#0 exec_async_proc (rank=<value optimized out>) at exec.c:160
pid = <value optimized out>
status = 0
cmd = <value optimized out>
prev = <value optimized out>
__FUNCTION__ = "exec_async_proc"
#1 0x0000000000468a13 in start_module_procs () at sr_module.c:585
m = 0x7fe378c13340
n = <value optimized out>
l = <value optimized out>
x = <value optimized out>
__FUNCTION__ = "start_module_procs"
#2 0x000000000042a491 in main_loop (argc=<value optimized out>,
argv=<value optimized out>) at main.c:818
i = <value optimized out>
pid = <value optimized out>
si = 0x0
startup_done = 0x0
chd_rank = 0
rc = <value optimized out>
load_p = 0x0
#3 main (argc=<value optimized out>, argv=<value optimized out>) at
main.c:1541
cfg_log_stderr = <value optimized out>
cfg_stream = <value optimized out>
c = <value optimized out>
r = 0
tmp = 0x7fffa49e2f79 ""
tmp_len = <value optimized out>
port = <value optimized out>
proto = <value optimized out>
options = 0x4ebf28 "f:cCm:M:b:l:n:N:rRvdDETSVhw:t:u:g:P:G:W:o:"
ret = -1
seed = 2443337210
rfd = <value optimized out>
__FUNCTION__ = "main"
----------------------------------------------------------------------
Comment By: Vladut-Stefan Paiu (vladut-paiu)
Date: 2013-02-26 05:28
Message:
Hello,
Could you please post here the 'bt full' output from the core file ?
If you need help in properly generating a core file or extracting the
backtrace from it, follow the steps described at
http://www.opensips.org/Resources/DocsTsCrash
Best Regards,
Vlad
----------------------------------------------------------------------
Comment By: Christian Lahme (chris-secusmart)
Date: 2013-02-25 07:22
Message:
and it crashes at startup ...
----------------------------------------------------------------------
Comment By: Christian Lahme (chris-secusmart)
Date: 2013-02-25 06:07
Message:
Hi Răzvan,
if async is not set, it crashes in Version 1.8.2.
BR
Chris
----------------------------------------------------------------------
Comment By: Razvan Crainea (razvancrainea)
Date: 2013-02-25 06:05
Message:
Hi, Christian!
Can you tell me the OpenSIPS version you are using? Also, does it crash
during startup or during message processing?
Best regards,
Răzvan
----------------------------------------------------------------------
Comment By: Christian Lahme (chris-secusmart)
Date: 2013-02-25 05:49
Message:
modparam("exec", "async", 1) needs to be set ... -> SOLVED!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3605902&group_id=232389
More information about the Devel
mailing list