[Home]

Summary:ASTERISK-15035: Asterisk crashes randomly with a segmentation fault in __res_vinit ()
Reporter:wimnat (wimnat)Labels:
Date Opened:2009-10-25 21:21:47Date Closed:2009-11-04 15:18:22.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) output.txt
Description:I am having Asterisk crash randomly many times during the day. Asterisk is just acting as a registrar for around 30 SIP peers.

These phones makes a SIP call to Asterisk which does a B2B call to another piece of hardware.

I'm running safe_asterisk and getting 'Asterisk died' emails randomly throughout the day. For example, yesterday I had 4 crashes (10.36, 10.41, 12.58, 19.50).

My core dumps are always the same...

Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1

warning: Can't read pathname for load map: Input/output error.

warning: Can't read pathname for load map: Input/output error.

warning: Can't read pathname for load map: Input/output error.

warning: Can't read pathname for load map: Input/output error.
Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
[New process 27165]
#0  0x005994e8 in __res_vinit () from /lib/libc.so.6
(gdb)

I'm not really a developer but I hope this information is useful.


****** ADDITIONAL INFORMATION ******

# rpm -q glibc
glibc-2.5-34.el5_3.1

OS: CentOS 5.3
Kernel: 2.6.18-128.el5
Comments:By: wimnat (wimnat) 2009-10-25 21:26:41

Just been checking the asterisk log... it would appear I get a bunch of SIP warnings before the crash:

[Oct 25 19:33:29] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:35] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:35] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:35] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:36] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:36] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:37] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:40] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:41] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.
[Oct 25 19:33:42] WARNING[30784] chan_sip.c: Re-invite to non-existing call leg on other UA. SIP dialog 'call-F19F89C7-70A3-2C10-1B04-556@10.152.7.116'. Givin
g up.

By: Leif Madsen (lmadsen) 2009-10-26 08:31:36

Please provide a backtrace per doc/backtrace.txt in your Asterisk source.

By: wimnat (wimnat) 2009-10-26 18:01:09

I've attached as output.txt

By: Russell Bryant (russell) 2009-11-04 15:18:22.000-0600

There isn't much we can do here, since the crash it outside of our code (inside of glibc).  I would recommend upgrading your system.