[SR-Users] Kamailio 4.2.4 segfault and crash

Federico San Martín fsanmartin at telecentro.net.ar
Mon May 18 17:10:09 CEST 2015


Hi Daniel, thanks for your prompt response. I read the module's GitHub readme and there it says that it can be installed with 4.2: 



Fetch kamailio code: 
git clone --depth 1 --no-single-branch git://git.sip-router.org/kamailio kamailio
cd kamailio
git checkout -b 4.2 origin/4.2 


Add the module: 
git submodule add https://github.com/eloycoto/statsd modules/statsd
git submodule update 


Compile the module: 
make include_modules="statsd" cfg
make 


I can't reproduce it, it happened only once last Friday and I've monitored the system over the weekend and didn't happen again... I checked the logs (/var/log/messages and /var/log/kamailio.log) and I don't see any other messages for PID 21149. What I did is enable the CORE Dump after the issue so that now if it happens again I can have it. 

Thanks! 

Federico 

----- Original Message -----

From: "Daniel-Constantin Mierla" <miconda at gmail.com> 
To: "Kamailio (SER) - Users Mailing List" <sr-users at lists.sip-router.org> 
Sent: Friday, May 15, 2015 5:45:56 PM 
Subject: Re: [SR-Users] Kamailio 4.2.4 segfault and crash 

Hello, 

I see you have statsd module, but that is not part of the 4.2.x series. Have you backport that? 

Can you reproduce it? Or it happened once? 

Also, the error logs after crash are not that relevant, can you see what log messages were printed by PID 21149 before the crash? 

Cheers, 
Daniel 

On 15/05/15 21:55, Federico San Martín wrote: 



Hi all, I just experienced a sudden crash from one of my Kamailio servers. I'm using v4.2.4 built from git repository (branch remotes/origin/4.2). The error logs show this at the time of the crash (I'm using debug=1 on config file) 



May 15 15:59:53 KAMAILIO-ERS1 kamailio[21162]: CRITICAL: <core> [pass_fd.c:293]: receive_fd(): EOF on 19 
May 15 15:59:53 KAMAILIO-ERS1 kamailio[21141]: ALERT: <core> [main.c:784]: handle_sigs(): child process 21149 exited by a signal 11 
May 15 15:59:53 KAMAILIO-ERS1 kamailio[21141]: ALERT: <core> [main.c:787]: handle_sigs(): core was not generated 




May 15 15:59:53 KAMAILIO-ERS1 kernel: [2156637.186585] kamailio[21149]: segfault at 20b6 ip 00000000000020b6 sp 00007ffeb0c2bc88 error 14 in kamailio[400000+3c3000] 
May 15 15:59:53 KAMAILIO-ERS1 kernel: [2156637.214933] kamailio[21141]: segfault at 2290 ip 0000000000002290 sp 00007ffeb0c2c4d8 error 14 in kamailio[400000+3c3000] 




The modules I'm using are: 




loadmodule "mi_fifo.so" 
loadmodule "db_mysql.so" 
loadmodule "sqlops.so" 
loadmodule "tm.so" 
loadmodule "sl.so" 
loadmodule "pv.so" 
loadmodule "xlog.so" 
loadmodule "maxfwd.so" 
loadmodule "siputils.so" 
loadmodule "sanity.so" 
loadmodule "textops.so" 
loadmodule "rr.so" 
loadmodule "statsd.so" 




Have you noticed this error before? This server has a very simple config, for every invite received, it queries a MySQL database to replace the called number from 3 digits to 8-10 digits (for example 135 is translated to 1152751135) and sends back a 300 Redirect with the new number. 




Another thing to notice is that this server was working at 3-4% CPU load and when the issue happen it spiked to 53%... 




Let me know I can provide any other info that could be useful. 




Thanks! 




Federico 

Federico San Martín 
Ingeniería de Telefonía 
TeleCentro S.A. 
Cnel. Apolinario Figueroa 254 Piso 4to 


CABA - C1414EDF 

Fijo : +54 11 3977 10 45 

Móvil : +54 9 11 5824 3240 

e-mail : fsanmartin at telecentro.net.ar 








_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users at 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 Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150518/d7a605b1/attachment.html>


More information about the sr-users mailing list