[OpenSIPS-Devel] [ opensips-Bugs-2936343 ] 'opensipsctl fifo get_statistics all' crashes opensips

Richard Revels rrevels at bandwidth.com
Thu Jan 21 19:16:48 CET 2010


Oh yeah.  I get same result.  I am using unix domain socket for MI.  get_statistics core: no problem.  get_statistics all dumps opensips.  No core generated.  Here is the opensips log when it happens:

Jan 21 18:08:19 guinea-pig1 osips-log[3931]: INFO:core:handle_sigs: child process 3943 exited by a signal 12 
Jan 21 18:08:19 guinea-pig1 osips-log[3931]: INFO:core:handle_sigs: core was not generated 
Jan 21 18:08:19 guinea-pig1 osips-log[3931]: INFO:core:handle_sigs: terminating due to SIGCHLD 

Richard Revels


On Jan 21, 2010, at 12:51 PM, SourceForge.net wrote:

> Bugs item #2936343, was opened at 2010-01-21 15:51
> Message generated for change (Comment added) made by bogdan_iancu
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2936343&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.6.x
> Status: Open
> Resolution: None
> Priority: 5
> Private: No
> Submitted By: Alex Massover (cupotka2008)
>> Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
> Summary: 'opensipsctl fifo get_statistics all' crashes opensips
> 
> Initial Comment:
> Hi!
> 
> 'opensipsctl fifo get_statistics all' always crashes opensips. Core is somehow not produced.
> Always reproducible for me on 1.6.1.
> 
> Here's a strace of parent process:
> 
> Process 9509 attached - interrupt to quit
> pause()                                 = ? ERESTARTNOHAND (To be restarted)
> --- SIGUSR2 (User defined signal 2) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> pause()                                 = ? ERESTARTNOHAND (To be restarted)
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> waitpid(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGUSR2}], WNOHANG) = 9520
> waitpid(-1, 0xbf84b4c8, WNOHANG)        = 0
> kill(0, SIGTERM)                        = 0
> --- SIGTERM (Terminated) @ 0 (0) ---
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [TERM])
> sigreturn()                             = ? (mask now [])
> rt_sigaction(SIGALRM, {0x8065920, [ALRM], SA_RESTART}, {SIG_DFL}, 8) = 0
> alarm(60)                               = 0
> wait4(-1, NULL, 0, NULL)                = 9514
> wait4(-1, NULL, 0, NULL)                = 9519
> wait4(-1, NULL, 0, NULL)                = 9521
> wait4(-1, NULL, 0, NULL)                = 9522
> wait4(-1, NULL, 0, NULL)                = 9512
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> wait4(-1, NULL, 0, NULL)                = 9510
> wait4(-1, NULL, 0, NULL)                = 9516
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> wait4(-1, NULL, 0, NULL)                = 9515
> wait4(-1, NULL, 0, NULL)                = 9517
> wait4(-1, NULL, 0, NULL)                = 9524
> wait4(-1, NULL, 0, NULL)                = 9525
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> --- SIGCHLD (Child exited) @ 0 (0) ---
> sigreturn()                             = ? (mask now [])
> wait4(-1, NULL, 0, NULL)                = 9511
> wait4(-1, NULL, 0, NULL)                = 9513
> wait4(-1, NULL, 0, NULL)                = 9518
> wait4(-1, NULL, 0, NULL)                = 9523
> wait4(-1, NULL, 0, NULL)                = -1 ECHILD (No child processes)
> rt_sigaction(SIGALRM, {0x8066080, [ALRM], SA_RESTART}, {0x8065920, [ALRM], SA_RESTART}, 8) = 0 stat64("/tmp/opensips_fifo", {st_mode=S_IFIFO|0660, st_size=0, ...}) = 0
> unlink("/tmp/opensips_fifo")            = 0
> munmap(0xaed25000, 134217728)           = 0
> unlink("/var/run/opensips/opensips.pid") = 0
> alarm(0)                                = 60
> rt_sigaction(SIGALRM, {SIG_IGN}, {0x8066080, [ALRM], SA_RESTART}, 8) = 0
> exit_group(0)                           = ?
> Process 9509 detached
> 
> 
> ----------------------------------------------------------------------
> 
>> Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
> Date: 2010-01-21 19:51
> 
> Message:
> Hi Alex,
> 
> The strace of the main proc is irrelevant here - what is important is the
> bt or strace of the FIFO/xmlrpc process. BTW, what MI backend do you use ?
> 
> Regards,
> Bogdan
> 
> ----------------------------------------------------------------------
> 
> You can respond by visiting: 
> https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=2936343&group_id=232389
> 
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel




More information about the Devel mailing list