Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552 FS#500 : core dump not working properly in CentOS 7 (and most probably in Fedora > 15)

sip-router

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

SIP Router Project

Tasklist

FS#500 - core dump not working properly in CentOS 7 (and most probably in Fedora > 15)

Attached to Project: sip-router
Opened by Nuno Miguel Reis (nmreis) - Thursday, 04 December 2014, 04:24 GMT
Task Type Bug Report
Category Core
Status Unconfirmed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

I’ve just did a couple of tests and verifyied that kamailio only generates a core dump if

kernel.core_pattern is set with a full path:

eg:

kernel.core_pattern = /var/run/kamailio/core.%e.sig%s.%p

if kernel.core_pattern is only:

kernel.core_pattern = core.%e.sig%s.%p

kamailio simply doesn’t generate a core.

I’m using systemd to launch kamailio with LimitCORE=infinity set which should be enough to get the cores.

This is my current kamailio.service

[Unit]
Description=Kamailio (OpenSER) - the Open Source SIP Server
After=syslog.target network.target postgresql-9.3.service systemd-tmpfiles-setup.service

[Service]
Type=forking
EnvironmentFile=/etc/sysconfig/kamailio
PIDFile=/var/run//kamailio/kamailio.pid
ExecStart=/usr/sbin/kamailio -P /var/run/kamailio/kamailio.pid $OPTIONS
WorkingDirectory=/var/run/kamailio
TimeoutSec=45s
Restart=always
LimitCORE=infinity

[Install]
WantedBy=multi-user.target


This task depends upon

Comment by Daniel-Constantin Mierla (miconda) - Monday, 08 December 2014, 10:26 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

Not sure if there is something that can be done in kamailio, looks like an OS config thing.

Comment by Alekzander Spiridonov (alekz) - Monday, 08 December 2014, 10:44 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

If not abs path it uses path from process working directory. So if kamailio runs as user other than root - it could have no permissions to write core file there.

There are various circumstances in which a core dump file is not
       produced:

       *  The process does not have permission to write the core file.  (By
          default, the core file is called core or core.pid, where pid is
          the ID of the process that dumped core, and is created in the
          current working directory.  See below for details on naming.)

Src: http://man7.org/linux/man-pages/man5/core.5.html

Loading...