Hello,

the logs show that you got a core dump:

"Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: ALERT: <core> [main.c:731]: handle_sigs(): core was generated"

Can you send the output of the following commands from gdb with the core file:

bt full
info locals
list

Cheers,
Daniel

On 18/11/15 10:43, Volkan Oransoy wrote:
Hi,

I try to enable auth_radius module with my kamailo box. But it  crashes on the first REGISTER request. 

I have enabled it with this two lines.
loadmodule "auth_radius.so"
modparam("auth_radius", "radius_config", "/etc/radiusclient/radiusclient.conf")

This is the authentication part of my script.
        if (is_method("REGISTER"))
        {
                if (!radius_www_authorize("$td")) {
                        switch ($rc) {
                        case -7:
                                send_reply("500", "Server Internal Error");
                                exit;
                        case -1:
                                send_reply("400", "Bad Request");
                                exit;
                        default:
                };
                if (defined($avp(digest_challenge)) &&
                        ($avp(digest_challenge) != "")) {
                        append_to_reply("$avp(digest_challenge)");
                };
                send_reply("401", "Unauthorized");
                exit;
                };
        }


And in the /etc/radiusclient/dictionary file, I included sip and kamailio dictionaries.
$INCLUDE dictionary.sip
$INCLUDE dictionary.kamailio

Service succesfully starts but it crashes on the first REGISTER request.

Nov 18 11:30:27 sip kernel: [159645.360105] traps: kamailio[6941] general protection ip:7f89b1660920 sp:7ffc8d3bac78 error:0 in libc-2.19.so[7f89b15cb000+19f000]
Nov 18 11:30:27 sip /usr/sbin/kamailio[6961]: CRITICAL: <core> [pass_fd.c:275]: receive_fd(): EOF on 17
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: ALERT: <core> [main.c:728]: handle_sigs(): child process 6941 exited by a signal 11
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: ALERT: <core> [main.c:731]: handle_sigs(): core was generated
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: INFO: <core> [main.c:743]: handle_sigs(): terminating due to SIGCHLD
Nov 18 11:30:27 sip /usr/sbin/kamailio[6961]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6959]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6951]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6936]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6948]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6944]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6937]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6953]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6945]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6938]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6955]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6943]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6942]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6957]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6939]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6940]: INFO: <core> [main.c:794]: sig_usr(): signal 15 received
Nov 18 11:30:27 sip /usr/sbin/kamailio[6934]: INFO: <core> [sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized

Thanks,


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Nov 30-Dec 2, Berlin - http://asipto.com/kat