[Home]

Summary:ASTERISK-09895: When Sending A "restart when convenient" There Is a Segfault
Reporter:Gregory Hinton Nietsky (irroot)Labels:
Date Opened:2007-07-18 01:50:44Date Closed:2007-07-18 09:03:19
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:PBX/pbx_dundi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:
here is a odd ball segfault every night at midnight i rotate the logs and do a restart on the system.this is happening like clock work on all the servers i have installed as it only happens at this time when  the logs for the day are been dealt with it is possibly related to other events on the server.

here is the BT for any one intrested to figgure this one out.

i currently am not using dundi and am will not load it until i plan to use it.

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

Core was generated by `/usr/sbin/asterisk -f -vvvg -c'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7f46507 in pthread_join () from /lib/libpthread.so.0
(gdb) bt
#0  0xb7f46507 in pthread_join () from /lib/libpthread.so.0
#1  0xb309b0fd in unload_module () at pbx_dundi.c:4477
#2  0x080a9a55 in ast_module_shutdown () at loader.c:446
#3  0x08069ba5 in quit_handler (num=0, nice=2, safeshutdown=<value optimized out>, restart=1) at asterisk.c:1259
#4  0x0806a09f in handle_restart_when_convenient (fd=74, argc=3, argv=0xb2f05034) at asterisk.c:1539
ASTERISK-1  0x0808cceb in ast_cli_command (fd=74, s=0xb2f051ac "restart when convenient") at cli.c:1979
ASTERISK-2  0x0806c062 in netconsole (vconsole=0x8166d40) at asterisk.c:932
ASTERISK-3  0x080f67d9 in dummy_start (data=0x844af28) at utils.c:545
ASTERISK-4  0xb7f45554 in ?? () from /lib/libpthread.so.0
ASTERISK-5  0x0844af28 in ?? ()
ASTERISK-6 0xb2f054a0 in ?? ()
ASTERISK-7 0xb2f054a0 in ?? ()
ASTERISK-8 0xb2f054a0 in ?? ()
ASTERISK-9 0xb2f054a0 in ?? ()
ASTERISK-10 0x00000000 in ?? ()
Comments:By: Digium Subversion (svnbot) 2007-07-18 09:01:54

Repository: asterisk
Revision: 75583

------------------------------------------------------------------------
r75583 | file | 2007-07-18 09:01:53 -0500 (Wed, 18 Jul 2007) | 5 lines

(closes issue ASTERISK-9895)
Reported by: irroot

Record the threadid of each running thread before shutting them down as the thread themselves may change the value.

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-07-18 09:03:19

Repository: asterisk
Revision: 75584

------------------------------------------------------------------------
r75584 | file | 2007-07-18 09:03:19 -0500 (Wed, 18 Jul 2007) | 13 lines

Merged revisions 75583 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r75583 | file | 2007-07-18 11:18:53 -0300 (Wed, 18 Jul 2007) | 5 lines

(closes issue ASTERISK-9895)
Reported by: irroot

Record the threadid of each running thread before shutting them down as the thread themselves may change the value.

........

------------------------------------------------------------------------