[Home]

Summary:ASTERISK-06868: Asterisk causes the whole system to hang
Reporter:A.R. Nasir Qureshi (nasirq)Labels:
Date Opened:2006-04-28 09:45:29Date Closed:2011-06-07 14:00:48
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Asterisk hangs the whole system (requiring a hard boot) when using IAX protocol. The IAX client used is idefisk. There can be other reason, as it has also hanged when using SIP (ATA 186).

I got a core one time (attached). I do not get a core always.

I used gdb with bt and bt full. (Output included.)


****** STEPS TO REPRODUCE ******

I am making an IVR, using extensions in extensions.conf. to listen to and test IVR I used idefisk on my PC, and during the call, the system hanged. This has happened many times, and the system has also hanged when listening to IVR using ATA 186 (SIP).

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

Core was generated by `asterisk -T -p -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
(gdb) bt
#0  0x4019abff in mallopt () from /lib/libc.so.6
#1  0x40199a2f in free () from /lib/libc.so.6
#2  0x080d3c1d in el_end (el=0x4025160c) at el.c:125
#3  0x080b754d in quit_handler (num=1076175884, nice=-1082133072, safeshutdown=1, restart=135898136) at asterisk.c:892
#4  0x080b7664 in __quit_handler (num=1212074020) at asterisk.c:947
ASTERISK-1  0x4003bbe5 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
ASTERISK-2  0x00000000 in ?? ()
ASTERISK-3  0x00000000 in ?? ()
ASTERISK-4  0x0000002b in ?? ()
ASTERISK-5  0x0000002b in ?? ()
ASTERISK-6 0xbf7ffa2c in ?? ()
ASTERISK-7 0xffffffff in ?? ()
ASTERISK-8 0xbf7ff9c4 in ?? ()
ASTERISK-9 0xbf7ff998 in ?? ()
ASTERISK-10 0xbf7ffa2c in ?? ()
ASTERISK-11 0x7fffffff in ?? ()
ASTERISK-12 0x00000001 in ?? ()
ASTERISK-13 0xfffffffc in ?? ()
ASTERISK-14 0x00000000 in ?? ()
ASTERISK-15 0x00000000 in ?? ()
ASTERISK-16 0x401f97a2 in fts_children () from /lib/libc.so.6
Previous frame inner to this frame (corrupt stack?)




(gdb) bt full
#0  0x4019abff in mallopt () from /lib/libc.so.6
No symbol table info available.
#1  0x40199a2f in free () from /lib/libc.so.6
No symbol table info available.
#2  0x080d3c1d in el_end (el=0x4025160c) at el.c:125
No locals.
#3  0x080b754d in quit_handler (num=1076175884, nice=-1082133072, safeshutdown=1, restart=135898136) at asterisk.c:892
       filename = "//.asterisk_history", '\0' <repeats 60 times>
       s = 1146233300
       e = 1146233300
       x = -1082133072
#4  0x080b7664 in __quit_handler (num=1212074020) at asterisk.c:947
No locals.
ASTERISK-1  0x4003bbe5 in pthread_barrierattr_setpshared () from /lib/libpthread.so.0
No symbol table info available.
ASTERISK-2  0x00000000 in ?? ()
No symbol table info available.
ASTERISK-3  0x00000000 in ?? ()
No symbol table info available.
ASTERISK-4  0x0000002b in ?? ()
No symbol table info available.
ASTERISK-5  0x0000002b in ?? ()
No symbol table info available.
ASTERISK-6 0xbf7ffa2c in ?? ()
No symbol table info available.
ASTERISK-7 0xffffffff in ?? ()
No symbol table info available.
ASTERISK-8 0xbf7ff9c4 in ?? ()
No symbol table info available.
ASTERISK-9 0xbf7ff998 in ?? ()
No symbol table info available.
ASTERISK-10 0xbf7ffa2c in ?? ()
No symbol table info available.
ASTERISK-11 0x7fffffff in ?? ()
No symbol table info available.
ASTERISK-12 0x00000001 in ?? ()
No symbol table info available.
ASTERISK-13 0xfffffffc in ?? ()
No symbol table info available.
ASTERISK-14 0x00000000 in ?? ()
No symbol table info available.
ASTERISK-15 0x00000000 in ?? ()
No symbol table info available.
ASTERISK-16 0x401f97a2 in fts_children () from /lib/libc.so.6
No symbol table info available.
Comments:By: Tilghman Lesher (tilghman) 2006-04-28 10:39:24

Please turn off the realtime flag (-p) and try again.

By: A.R. Nasir Qureshi (nasirq) 2006-04-28 12:21:17

It does not seem to hang now, as I use IAX.

Let me test it for 2-3 days, and then I'll update this ticket.

But why does the Real Time option hangs the system ? For production enviorment, it seems a good option, because then the PBX gets top priority.

By: Tilghman Lesher (tilghman) 2006-04-28 12:54:19

There are any number of reasons why this could be.  The real answer is that you should not be using the realtime priority unless you really know what you're doing and understand all the implications of doing so.