Summary: | ASTERISK-01272: Asterisk Crash when given Reload when a Call is in Progress | ||
Reporter: | mochouinard (mochouinard) | Labels: | |
Date Opened: | 2004-03-22 19:54:52.000-0600 | Date Closed: | 2004-09-25 02:53:47 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | IVe being doing reload when I was in a call between 2 SIP phone, and * crash every time... Here the backtrace Note running recent CVS ****** ADDITIONAL INFORMATION ****** Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1074398976 (LWP 23975)] 0x4207492e in _int_free () from /lib/tls/libc.so.6 (gdb) bt #0 0x4207492e in _int_free () from /lib/tls/libc.so.6 #1 0x42073908 in free () from /lib/tls/libc.so.6 #2 0x08069b2b in __ast_context_destroy (con=0x0, registrar=0x41d8aa4d "pbx_config", lock=1) at pbx.c:4063 #3 0x0806acd0 in ast_context_destroy (con=0x0, registrar=0x0) at pbx.c:4142 #4 0x41d86e3a in reload () at pbx_config.c:1709 ASTERISK-1 0x08056122 in ast_module_reload () at loader.c:170 ASTERISK-2 0x0806e7aa in handle_reload (fd=1, argc=1, argv=0xbfffda40) at cli.c:106 ASTERISK-3 0x0806e59a in ast_cli_command (fd=1, s=0x0) at cli.c:1009 ASTERISK-4 0x080853be in main (argc=135121608, argv=0x80c8f08) at asterisk.c:614 ASTERISK-5 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 | ||
Comments: | By: mochouinard (mochouinard) 2004-03-22 20:04:10.000-0600 I've tryed it again, with the lastest Stable CVS Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1074398976 (LWP 29197)] 0x420738c9 in free () from /lib/tls/libc.so.6 (gdb) bt #0 0x420738c9 in free () from /lib/tls/libc.so.6 #1 0x0808eadd in ast_unregister_indication_country (country=0x0) at indications.c:319 #2 0x418c42a0 in reload () at res_indications.c:392 #3 0x08056122 in ast_module_reload () at loader.c:170 #4 0x0806e7aa in handle_reload (fd=1, argc=1, argv=0xbfffe9d0) at cli.c:106 ASTERISK-1 0x0806e59a in ast_cli_command (fd=1, s=0x34 <Address 0x34 out of bounds>) at cli.c:1009 ASTERISK-2 0x080853be in main (argc=135121608, argv=0x80c8f08) at asterisk.c:614 ASTERISK-3 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 Same thing By: mochouinard (mochouinard) 2004-03-22 20:14:13.000-0600 Here another one : == Parsing '/etc/asterisk/rtp.conf': Found == RTP Allocating from port range 10000 -> 20000 -- Reloading module 'cdr_addon_mysql.so' (MySQL CDR Backend) == Parsing '/etc/asterisk/cdr_mysql.conf': Found -- Reloading module 'cdr_csv.so' (Comma Separated Values CDR Backend) -- Reloading module 'app_enumlookup.so' (ENUM Lookup) == Parsing '/etc/asterisk/enum.conf': Found -- Reloading module 'app_queue.so' (True Call Queueing) == Parsing '/etc/asterisk/queues.conf': Found -- Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System)) == Parsing '/etc/asterisk/voicemail.conf': Found -- Reloading module 'pbx_config.so' (Text Extension Configuration) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1074398976 (LWP 29268)] 0x4207492e in _int_free () from /lib/tls/libc.so.6 (gdb) (gdb) bt #0 0x4207492e in _int_free () from /lib/tls/libc.so.6 #1 0x42073908 in free () from /lib/tls/libc.so.6 #2 0x08069b2b in __ast_context_destroy (con=0x0, registrar=0x41d8aa4d "pbx_config", lock=1) at pbx.c:4063 #3 0x0806acd0 in ast_context_destroy (con=0x0, registrar=0x0) at pbx.c:4142 #4 0x41d86e3a in reload () at pbx_config.c:1709 ASTERISK-1 0x08056122 in ast_module_reload () at loader.c:170 ASTERISK-2 0x0806e7aa in handle_reload (fd=1, argc=1, argv=0xbffff350) at cli.c:106 ASTERISK-3 0x0806e59a in ast_cli_command (fd=1, s=0x0) at cli.c:1009 ASTERISK-4 0x080853be in main (argc=135121608, argv=0x80c8f08) at asterisk.c:614 ASTERISK-5 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 (gdb) By: mochouinard (mochouinard) 2004-03-22 20:16:33.000-0600 Ok ok.... 1 More : == Parsing '/etc/asterisk/queues.conf': Found -- Reloading module 'app_voicemail.so' (Comedian Mail (Voicemail System)) == Parsing '/etc/asterisk/voicemail.conf': Found -- Reloading module 'pbx_config.so' (Text Extension Configuration) Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1074398976 (LWP 29306)] 0x4207492e in _int_free () from /lib/tls/libc.so.6 (gdb) bt #0 0x4207492e in _int_free () from /lib/tls/libc.so.6 #1 0x42073908 in free () from /lib/tls/libc.so.6 #2 0x08069b2b in __ast_context_destroy (con=0x0, registrar=0x41d8aa4d "pbx_config", lock=1) at pbx.c:4063 #3 0x0806acd0 in ast_context_destroy (con=0x0, registrar=0x0) at pbx.c:4142 #4 0x41d86e3a in reload () at pbx_config.c:1709 ASTERISK-1 0x08056122 in ast_module_reload () at loader.c:170 ASTERISK-2 0x0806e7aa in handle_reload (fd=1, argc=1, argv=0xbfffe9d0) at cli.c:106 ASTERISK-3 0x0806e59a in ast_cli_command (fd=1, s=0x0) at cli.c:1009 ASTERISK-4 0x080853be in main (argc=135121608, argv=0x80c8f08) at asterisk.c:614 ASTERISK-5 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 By: mochouinard (mochouinard) 2004-03-22 20:35:17.000-0600 I got this using valgrind, I'll try again thought to be sure of the dump is the right thing : valgrind: vg_scheduler.c:3570 (scheduler_sanity): Assertion `mx->__m_count > 0' failed. sched status: Thread 1: status = WaitMX, associated_mx = 0x80C7170, associated_cv = 0x0 ==6830== at 0x4022FB10: __pthread_mutex_lock (vg_libpthread.c:951) ==6830== by 0x8053039: ast_verbose (logger.c:507) ==6830== by 0x808EB5E: ast_unregister_indication_country (indications.c:398) ==6830== by 0x41C3729F: reload (res_indications.c:392) Thread 2: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6830== by 0x40180B67: __select (vg_intercept.c:722) ==6830== by 0x8087A11: listener (channel.h:796) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 3: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6830== by 0x40180B67: __select (vg_intercept.c:722) ==6830== by 0x41749ED8: ??? (channel.h:796) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 4: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6830== by 0x40180B67: __select (vg_intercept.c:722) ==6830== by 0x419EB1BC: ??? (channel.h:796) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 5: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6830== by 0x40180160: __poll (vg_intercept.c:386) ==6830== by 0x8051703: ast_io_wait (io.c:254) ==6830== by 0x420FB519: ??? (chan_iax.c:4528) Thread 6: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6830== by 0x40180160: __poll (vg_intercept.c:386) ==6830== by 0x8051703: ast_io_wait (io.c:254) ==6830== by 0x426BEB53: ??? (chan_sip.c:5786) Thread 7: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6830== by 0x40180160: __poll (vg_intercept.c:386) ==6830== by 0x8051703: ast_io_wait (io.c:254) ==6830== by 0x42AB8A44: ??? (chan_mgcp.c:2543) Thread 8: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6830== by 0x40180160: __poll (vg_intercept.c:386) ==6830== by 0x8051703: ast_io_wait (io.c:254) ==6830== by 0x42D20E51: ??? (chan_iax2.c:5191) Thread 9: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6830== by 0x40180160: __poll (vg_intercept.c:386) ==6830== by 0x40181016: vgAllRoadsLeadToRome_wait_for_fd_to_be_readable_or_erring (vg_intercept.c:925) ==6830== by 0x40180361: vgAllRoadsLeadToRome_accept (vg_intercept.c:501) Thread 10: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6830== by 0x40180160: __poll (vg_intercept.c:386) ==6830== by 0x8051703: ast_io_wait (io.c:254) ==6830== by 0x43208353: ??? (chan_skinny.c:2413) Thread 11: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6830== by 0x40180B67: __select (vg_intercept.c:722) ==6830== by 0x436AD210: ??? (channel.h:796) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 12: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6830== by 0x40180B67: __select (vg_intercept.c:722) ==6830== by 0x439187A2: ??? (channel.h:796) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 13: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6830== by 0x40180B67: __select (vg_intercept.c:722) ==6830== by 0x4397CA77: ??? (channel.h:796) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 14: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x40377835: __GI___libc_nanosleep (in /lib/libc-2.3.2.so) ==6830== by 0x43EB224B: ??? (pbx_spool.c:325) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) ==6830== by 0x4016F6DE: do__quit (vg_scheduler.c:2146) Thread 15: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x40377835: __GI___libc_nanosleep (in /lib/libc-2.3.2.so) ==6830== by 0x44256F8A: ??? (app_qcall.c:167) ==6830== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) ==6830== by 0x4016F6DE: do__quit (vg_scheduler.c:2146) Thread 16: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6830== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6830== by 0x40180B67: __select (vg_intercept.c:722) ==6830== by 0x80586EA: ast_waitfor_nandfds (channel.h:796) ==6830== by 0x805D0EC: ast_safe_sleep (channel.c:930) By: mochouinard (mochouinard) 2004-03-22 20:39:07.000-0600 Another one : valgrind: vg_scheduler.c:3570 (scheduler_sanity): Assertion `mx->__m_count > 0' failed. sched status: Thread 1: status = WaitMX, associated_mx = 0x80C7188, associated_cv = 0x0 ==6853== at 0x4022FB10: __pthread_mutex_lock (vg_libpthread.c:951) ==6853== by 0x8052B30: ast_log (logger.c:423) ==6853== by 0x8053186: ast_verbose (logger.c:551) ==6853== by 0x8067903: ast_context_create (pbx.c:2814) Thread 2: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6853== by 0x40180B67: __select (vg_intercept.c:722) ==6853== by 0x8087A11: listener (channel.h:796) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 3: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6853== by 0x40180B67: __select (vg_intercept.c:722) ==6853== by 0x41749ED8: ??? (channel.h:796) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 4: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6853== by 0x40180B67: __select (vg_intercept.c:722) ==6853== by 0x419EB1BC: ??? (channel.h:796) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 5: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6853== by 0x40180160: __poll (vg_intercept.c:386) ==6853== by 0x8051703: ast_io_wait (io.c:254) ==6853== by 0x420FB519: ??? (chan_iax.c:4528) Thread 6: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6853== by 0x40180160: __poll (vg_intercept.c:386) ==6853== by 0x8051703: ast_io_wait (io.c:254) ==6853== by 0x426BEB53: ??? (chan_sip.c:5786) Thread 7: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6853== by 0x40180160: __poll (vg_intercept.c:386) ==6853== by 0x8051703: ast_io_wait (io.c:254) ==6853== by 0x42AB8A44: ??? (chan_mgcp.c:2543) Thread 8: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6853== by 0x40180160: __poll (vg_intercept.c:386) ==6853== by 0x8051703: ast_io_wait (io.c:254) ==6853== by 0x42D20E51: ??? (chan_iax2.c:5191) Thread 9: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6853== by 0x40180160: __poll (vg_intercept.c:386) ==6853== by 0x40181016: vgAllRoadsLeadToRome_wait_for_fd_to_be_readable_or_erring (vg_intercept.c:925) ==6853== by 0x40180361: vgAllRoadsLeadToRome_accept (vg_intercept.c:501) Thread 10: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6853== by 0x40180160: __poll (vg_intercept.c:386) ==6853== by 0x8051703: ast_io_wait (io.c:254) ==6853== by 0x43208353: ??? (chan_skinny.c:2413) Thread 11: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6853== by 0x40180B67: __select (vg_intercept.c:722) ==6853== by 0x436AD210: ??? (channel.h:796) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 12: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6853== by 0x40180B67: __select (vg_intercept.c:722) ==6853== by 0x439187A2: ??? (channel.h:796) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 13: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6853== by 0x40180B67: __select (vg_intercept.c:722) ==6853== by 0x4397CA77: ??? (channel.h:796) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 14: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x40377835: __GI___libc_nanosleep (in /lib/libc-2.3.2.so) ==6853== by 0x43EB224B: ??? (pbx_spool.c:325) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) ==6853== by 0x4016F6DE: do__quit (vg_scheduler.c:2146) Thread 15: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x40377835: __GI___libc_nanosleep (in /lib/libc-2.3.2.so) ==6853== by 0x44256F8A: ??? (app_qcall.c:167) ==6853== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) ==6853== by 0x4016F6DE: do__quit (vg_scheduler.c:2146) Thread 16: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6853== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6853== by 0x40180B67: __select (vg_intercept.c:722) ==6853== by 0x80586EA: ast_waitfor_nandfds (channel.h:796) ==6853== by 0x805D695: ast_waitfor (channel.c:930) By: mochouinard (mochouinard) 2004-03-22 20:44:01.000-0600 Another Valgrind Dump : valgrind: vg_scheduler.c:3570 (scheduler_sanity): Assertion `mx->__m_count > 0' failed. sched status: Thread 1: status = WaitMX, associated_mx = 0x80C7170, associated_cv = 0x0 ==6902== at 0x4022FB10: __pthread_mutex_lock (vg_libpthread.c:951) ==6902== by 0x8053039: ast_verbose (logger.c:507) ==6902== by 0x808EB5E: ast_unregister_indication_country (indications.c:398) ==6902== by 0x41C3729F: reload (res_indications.c:392) Thread 2: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6902== by 0x40180B67: __select (vg_intercept.c:722) ==6902== by 0x8087A11: listener (channel.h:796) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 3: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6902== by 0x40180B67: __select (vg_intercept.c:722) ==6902== by 0x41749ED8: ??? (channel.h:796) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 4: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6902== by 0x40180B67: __select (vg_intercept.c:722) ==6902== by 0x419EB1BC: ??? (channel.h:796) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 5: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6902== by 0x40180160: __poll (vg_intercept.c:386) ==6902== by 0x8051703: ast_io_wait (io.c:254) ==6902== by 0x420FB519: ??? (chan_iax.c:4528) Thread 6: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6902== by 0x40180160: __poll (vg_intercept.c:386) ==6902== by 0x8051703: ast_io_wait (io.c:254) ==6902== by 0x426D0B53: ??? (chan_sip.c:5786) Thread 7: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6902== by 0x40180160: __poll (vg_intercept.c:386) ==6902== by 0x8051703: ast_io_wait (io.c:254) ==6902== by 0x42ACAA44: ??? (chan_mgcp.c:2543) Thread 8: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6902== by 0x40180160: __poll (vg_intercept.c:386) ==6902== by 0x8051703: ast_io_wait (io.c:254) ==6902== by 0x42D44E51: ??? (chan_iax2.c:5191) Thread 9: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6902== by 0x40180160: __poll (vg_intercept.c:386) ==6902== by 0x40181016: vgAllRoadsLeadToRome_wait_for_fd_to_be_readable_or_erring (vg_intercept.c:925) ==6902== by 0x40180361: vgAllRoadsLeadToRome_accept (vg_intercept.c:501) Thread 10: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401800AE: vgAllRoadsLeadToRome_poll (vg_intercept.c:96) ==6902== by 0x40180160: __poll (vg_intercept.c:386) ==6902== by 0x8051703: ast_io_wait (io.c:254) ==6902== by 0x4322C353: ??? (chan_skinny.c:2413) Thread 11: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6902== by 0x40180B67: __select (vg_intercept.c:722) ==6902== by 0x436D1210: ??? (channel.h:796) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 12: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6902== by 0x40180B67: __select (vg_intercept.c:722) ==6902== by 0x4393C7A2: ??? (channel.h:796) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 13: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6902== by 0x40180B67: __select (vg_intercept.c:722) ==6902== by 0x439A0A77: ??? (channel.h:796) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) Thread 14: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x40377835: __GI___libc_nanosleep (in /lib/libc-2.3.2.so) ==6902== by 0x43EE824B: ??? (pbx_spool.c:325) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) ==6902== by 0x4016F6DE: do__quit (vg_scheduler.c:2146) Thread 15: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x40377835: __GI___libc_nanosleep (in /lib/libc-2.3.2.so) ==6902== by 0x4428CF8A: ??? (app_qcall.c:167) ==6902== by 0x4022F51D: thread_wrapper (vg_libpthread.c:667) ==6902== by 0x4016F6DE: do__quit (vg_scheduler.c:2146) Thread 16: status = Sleeping, associated_mx = 0x0, associated_cv = 0x0 ==6902== at 0x401809C5: vgAllRoadsLeadToRome_select (vg_intercept.c:96) ==6902== by 0x40180B67: __select (vg_intercept.c:722) ==6902== by 0x80586EA: ast_waitfor_nandfds (channel.h:796) ==6902== by 0x805AA19: ast_readstring (channel.c:930) By: mochouinard (mochouinard) 2004-03-22 20:50:13.000-0600 Using Valgrind 2.1.1 -- Setting default indication country to 'us' -- Reloading module 'res_crypto.so' (Cryptographic Digital Signatures) -- Registered to '216.234.116.189', who sees us as 64.235.196.163:4569 ==7464== ==7464== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==7464== Access not within mapped region at address 0xC ==7464== at 0x42074D7E: malloc_consolidate (in /lib/tls/libc-2.3.2.so) ==7464== by 0x420743C8: _int_malloc (in /lib/tls/libc-2.3.2.so) ==7464== by 0x42073E8F: calloc (in /lib/tls/libc-2.3.2.so) ==7464== by 0x420A8481: opendir (in /lib/tls/libc-2.3.2.so) ==7464== ==7464== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) Segmentation fault By: mochouinard (mochouinard) 2004-03-22 20:53:06.000-0600 Another Valgrind -- Unregistered indication country 'za' -- Unregistered indication country 'it' ==7535== ==7535== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==7535== Access not within mapped region at address 0x6F2D737D ==7535== at 0x42074931: _int_free (in /lib/tls/libc-2.3.2.so) ==7535== by 0x42073907: __cfree (in /lib/tls/libc-2.3.2.so) ==7535== by 0x808EAEA: ast_unregister_indication_country (indications.c:320) ==7535== by 0x813FB29F: reload (res_indications.c:392) ==7535== ==7535== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) Segmentation fault By: mochouinard (mochouinard) 2004-03-22 20:58:28.000-0600 More from Valgrind -- Unregistered indication country 'us' -- Registered to '216.234.116.189', who sees us as 64.235.196.163:4569 -- Unregistered indication country 'au' valgrind: vg_malloc2.c:535 (bszW_to_pszW): Assertion `pszW >= 0' failed. ==7575== at 0xB8029F95: vgPlain_skin_assert_fail (vg_mylibc.c:1211) ==7575== by 0xB8029F94: assert_fail (vg_mylibc.c:1207) ==7575== by 0xB8029FD2: vgPlain_core_assert_fail (vg_mylibc.c:1218) ==7575== by 0xB8026CFB: vgPlain_arena_free (vg_malloc2.c:535) sched status: Thread 1: status = Runnable, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0x8101DD1D: free (vg_replace_malloc.c:127) ==7575== by 0x808EADC: ast_unregister_indication_country (indications.c:319) ==7575== by 0x8150129F: reload (res_indications.c:392) ==7575== by 0x8056121: ast_module_reload (loader.c:170) Thread 2: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 3: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 4: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 5: status = Runnable, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0x816CC651: ??? (chan_iax.c:789) ==7575== by 0x816D06AC: ??? (chan_iax.c:3694) ==7575== by 0x805182F: ast_io_wait (io.c:267) ==7575== by 0x816CE519: ??? (chan_iax.c:4528) Thread 6: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8051703: ast_io_wait (io.c:254) ==7575== by 0x818EAB53: ??? (chan_sip.c:5786) ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) Thread 7: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8051703: ast_io_wait (io.c:254) ==7575== by 0x81A24A44: ??? (chan_mgcp.c:2543) ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) Thread 8: status = Runnable, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8051703: ast_io_wait (io.c:254) ==7575== by 0x81B38E51: ??? (chan_iax2.c:5191) ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) Thread 9: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x81D76078: ??? (chan_skinny.c:2353) ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 10: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8051703: ast_io_wait (io.c:254) ==7575== by 0x81D76353: ??? (chan_skinny.c:2413) ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) Thread 11: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 12: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 13: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 14: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x822EE24B: ??? (pbx_spool.c:325) ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 15: status = WaitSys, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8243FF8A: ??? (app_qcall.c:167) ==7575== by 0x8102FD84: thread_wrapper (vg_libpthread.c:837) ==7575== by 0xB800F464: do__quit (vg_scheduler.c:1792) Thread 16: status = Runnable, associated_mx = 0x0, associated_cv = 0x0 ==7575== at 0xABFFF042: ??? ==7575== by 0x8079264: ast_rtp_read (rtp.c:380) ==7575== by 0x818F19AD: ??? (chan_sip.c:1645) ==7575== by 0x818F02E8: ??? (chan_sip.c:1678) By: mochouinard (mochouinard) 2004-03-22 21:07:22.000-0600 another but gdb bt full (gdb) bt #0 0x420743b0 in _int_malloc () from /lib/tls/libc.so.6 #1 0x4207378d in malloc () from /lib/tls/libc.so.6 #2 0x4207a5f0 in strdup () from /lib/tls/libc.so.6 #3 0x0809f29f in history_def_insert (h=0x421328d4, ev=0x1, str=0x80dcac8 "reload") at history.c:388 #4 0x0809f324 in history_def_enter (p=0x80de188, ev=0xbfffe108, str=0x80dcac8 "reload") at history.c:413 ASTERISK-1 0x0809fa66 in history (h=0x80de158, ev=0xbfffe108, fun=1108554272) at history.c:775 ASTERISK-2 0x080853a9 in main (argc=135121608, argv=0xbfffe11c) at asterisk.c:1061 ASTERISK-3 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 -------------- FULL --------------------------------------- -- Registered indication country 'gr' -- Setting default indication country to 'us' -- Reloading module 'res_crypto.so' (Cryptographic Digital Signatures) -- Reloading module 'res_adsi.so' (ADSI Resource) == Parsing '/etc/asterisk/adsi.conf': Found -- Registered to '216.234.116.189', who sees us as 64.235.196.163:4569 reload Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1074398976 (LWP 7615)] 0x420743b0 in _int_malloc () from /lib/tls/libc.so.6 (gdb) (gdb) bt full #0 0x420743b0 in _int_malloc () from /lib/tls/libc.so.6 No symbol table info available. #1 0x4207378d in malloc () from /lib/tls/libc.so.6 No symbol table info available. #2 0x4207a5f0 in strdup () from /lib/tls/libc.so.6 No symbol table info available. #3 0x0809f29f in history_def_insert (h=0x421328d4, ev=0x1, str=0x80dcac8 "reload") at history.c:388 No locals. #4 0x0809f324 in history_def_enter (p=0x80de188, ev=0xbfffe108, str=0x80dcac8 "reload") at history.c:413 h = (history_t *) 0x80de188 ASTERISK-1 0x0809fa66 in history (h=0x80de158, ev=0xbfffe108, fun=1108554272) at history.c:775 va = 0x8117608 "" str = 0xbfffe108 "" retval = 1108554272 ASTERISK-2 0x080853a9 in main (argc=135121608, argv=0xbfffe11c) at asterisk.c:1061 title = "Asterisk Console on 'usg3.m0c.com' (pid 7615)\000\000\000\006\000\000\000\000\a\n@��\017\000Q", '\0' <repeats 55 times>, "A\231\000@�\r\001B$�\001@A\231\000@f \002@��\001@�\230\000@�T\001@x�\001@\000\000\000\000\f���\215\226\000@]\016\001B� \002@\n\n\000@ \a\000@\000\001\000\000t\016\001B`�\000B�3\000B��\001@\b\000\000\000,�\001@�T\001@\234�\001@v\022\002@����v\206\000@v\022\002@D\005\236\004\\\v\002@\234���H"... c = 135362056 filename = "/root/.asterisk_history", '\0' <repeats 56 times> hostname = "usg3.m0c.com\000�\004\b\000\000\000\000\224)\023B \000\000\000t\016\001B`�\000B�3\000B��\001@\b\000\000\000,�\001@�T\001@\224X\001@��\004\b ���v\206\000@��\004\b\216�w\001L�\004\b����HX\001@\006\000\000\000p�\001@\000\000\000\000\001", '\0' <repeats 12 times>, "(no\220���\000\000\000\000 \000\000\000\000\000\200\000�����.\002@\000\000\000\000\001\000\000\000\000\000\000\000\237\205\000@�T\001@S\037\000\000��������\003�\000@\214�\001@\000\000\000\000\216�w\001`����V\001@\000\000"... tmp = "\e[1;37;40mAsterisk Ready.\n\e[0;37;40m\000�\000B\202\211�\npj\000B\\���A\231\000@��\004\b��\001@�\230\000@�T\001@x�\001@\000\000\000" xarg = 0xbfffe108 "" x = 1108554272 f = (FILE *) 0x80dcac8 sigs = {__val = {134238211, 0 <repeats 31 times>}} num = 7 buf = 0x80dcac8 "reload" ASTERISK-3 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 No symbol table info available. By: mochouinard (mochouinard) 2004-03-22 21:09:59.000-0600 It SEEM like if system is under any type of load, it happen more offen, here another one : Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1074398976 (LWP 7657)] __ast_context_destroy (con=0x0, registrar=0x41d8aa4d "pbx_config", lock=1) at pbx.c:4114 4114 en = en->peer; (gdb) bt #0 __ast_context_destroy (con=0x0, registrar=0x41d8aa4d "pbx_config", lock=1) at pbx.c:4114 #1 0x0806acd0 in ast_context_destroy (con=0x8148910, registrar=0x8148910 "dserv") at pbx.c:4142 #2 0x41d86e3a in reload () at pbx_config.c:1709 #3 0x08056122 in ast_module_reload () at loader.c:170 #4 0x0806e7aa in handle_reload (fd=1, argc=1, argv=0xbfffefc0) at cli.c:106 ASTERISK-1 0x0806e59a in ast_cli_command (fd=1, s=0x8148910 "dserv") at cli.c:1009 ASTERISK-2 0x080853be in main (argc=135121608, argv=0x80c8f08) at asterisk.c:614 ASTERISK-3 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 ---------------- FULL ---------------- (gdb) bt full #0 __ast_context_destroy (con=0x0, registrar=0x41d8aa4d "pbx_config", lock=1) at pbx.c:4114 tmp = (struct ast_context *) 0x8148910 tmpl = (struct ast_context *) 0x3c tmpi = (struct ast_include *) 0x3c tmpil = (struct ast_include *) 0x8148910 sw = (struct ast_sw *) 0x3c swl = (struct ast_sw *) 0x8148910 e = (struct ast_exten *) 0x8118b78 el = (struct ast_exten *) 0x3c en = (struct ast_exten *) 0x3c ipi = (struct ast_ignorepat *) 0x3c ipl = (struct ast_ignorepat *) 0x8148910 #1 0x0806acd0 in ast_context_destroy (con=0x8148910, registrar=0x8148910 "dserv") at pbx.c:4142 No locals. #2 0x41d86e3a in reload () at pbx_config.c:1709 No locals. #3 0x08056122 in ast_module_reload () at loader.c:170 m = (struct module *) 0x3c #4 0x0806e7aa in handle_reload (fd=1, argc=1, argv=0xbfffefc0) at cli.c:106 No locals. ASTERISK-1 0x0806e59a in ast_cli_command (fd=1, s=0x8148910 "dserv") at cli.c:1009 argv = {0x80de520 "reload", 0x0, 0x400a08f0 "�(\023B P\001@\004�\n\b\210���p����V\001B", 0x80d6df8 "tor", 0x18 <Address 0x18 out of bounds>, 0x10 <Address 0x10 out of bounds>, 0x42133220 "", 0x421328d4 "�'\023B��\001@��", 0x42133220 "", 0x1 <Address 0x1 out of bounds>, 0xbffff008 "\213H\aB�(\023B 2\023B\b�\r\b8���\b9\aB 2\023B\b�\r\bX���\b�\r\b\210�\r\b\b���X���h�\t\b\b�\r\b", 0x4207378d "\205�\211�t\031e\203=\f", 0x42133220 "", 0x7 <Address 0x7 out of bounds>, 0x42133220 "", 0x421328d4 "�'\023B��\001@��", 0x7 <Address 0x7 out of bounds>, 0x80dcac8 "reload", 0x4207488b "\201�I�\v", 0x421328d4 "�'\023B��\001@��", 0x42133220 "", 0x80de508 "", 0xbffff038 "X���h�\t\b\b�\r\b", 0x42073908 "e\203=\f", 0x42133220 "", 0x80de508 "", 0xbffff058 "x���J�\t\b\210�\r\b\b���\b�\r\b", 0x80de508 "", 0x80de188 "", 0xbffff108 "�", 0xbffff058 "x���J�\t\b\210�\r\b\b���\b�\r\b", 0x809f268 "�N\030\215e�[^��U\211�WVS\203�\030\213]\b\213}\fj\020��\e��\211�\211C\020\203�\020\205�t \203�\f�u\020��\037��\211F\004\203�\020\203{\020", 0x80de508 "", 0x40016000 "\r\e[1;30;40m -- \e[0;37;40mReloading module 'pbx_config.so' (Text Extension Configuration)\nstem))\n25\e[0;37;40m \e[1;37;40mast_iax_frame_free\e[0;37;40m: untry\e[0;37;40m: ", 0xa <Address 0xa out of bounds>, 0x80de188 "", 0x80de188 "", 0xbffff108 "�", 0xbffff078 "����f�\t\b\210�\r\b\b�����\r\b�\034\006B����", 0x809f34a "\203�\020\213C\030;C\024~\004\205�\177��", 0x80de188 "", 0xbffff108 "�", 0x80de508 "", 0x0, 0xbffff108 "�", 0x80de158 "\210�\r\b�", 0xbffff0d8 "h����S\b\b\001", 0x809fa66 "\211�\203�\020\203��\017\204�\001", 0x80de188 "", ---Type <return> to continue, or q <return> to quit--- 0xbffff108 "�", 0x80dcac8 "reload", 0x42061ca4 "��\211|$\b\213\203@\001", 0xbffff0b0 "�\207\002@", 0x0, 0x42130d00 "\204*��", 0xffffffff <Address 0xffffffff out of bounds>, 0x80d72b0 "\020m\r\b", 0x7 <Address 0x7 out of bounds>, 0x4204542d "\201���\016", 0x1 <Address 0x1 out of bounds>, 0x400287b0 "U\211�\213E\b\213PH\213B\004H\211B\004\205�u\r�B\b", 0x42130d00 "\204*��", 0x0, 0x0} e = (struct ast_cli_entry *) 0x80c8f08 x = 1 dup = 0x80de520 "reload" ASTERISK-2 0x080853be in main (argc=135121608, argv=0x80c8f08) at asterisk.c:614 title = "Asterisk Console on 'usg3.m0c.com' (pid 7657)\000\000\000\006\000\000\000\000\a\n@��\017\000Q", '\0' <repeats 55 times>, "A\231\000@�\r\001B$�\001@A\231\000@f \002@��\001@�\230\000@�T\001@x�\001@\000\000\000\000\f���\215\226\000@]\016\001B� \002@\n\n\000@ \a\000@\000\001\000\000t\016\001B`�\000B�3\000B��\001@\b\000\000\000,�\001@�T\001@\234�\001@v\022\002@����v\206\000@v\022\002@D\005\236\004\\\v\002@\234���H"... c = 135563536 filename = "/root/.asterisk_history", '\0' <repeats 56 times> hostname = "usg3.m0c.com\000�\004\b\000\000\000\000\224)\023B \000\000\000t\016\001B`�\000B�3\000B��\001@\b\000\000\000,�\001@�T\001@\224X\001@��\004\b ���v\206\000@��\004\b\216�w\001L�\004\b����HX\001@\006\000\000\000p�\001@\000\000\000\000\001", '\0' <repeats 12 times>, "(no\220���\000\000\000\000 \000\000\000\000\000\200\000�����.\002@\000\000\000\000\001\000\000\000\000\000\000\000\237\205\000@�T\001@S\037\000\000��������\003�\000@\214�\001@\000\000\000\000\216�w\001`����V\001@\000\000"... tmp = "\e[1;37;40mAsterisk Ready.\n\e[0;37;40m\000�\000B\202\211�\npj\000B\\���A\231\000@��\004\b��\001@�\230\000@�T\001@x�\001@\000\000\000" xarg = 0xbfffefc0 " �\r\b" x = 135563616 f = (FILE *) 0x80dcac8 sigs = {__val = {134238211, 0 <repeats 31 times>}} num = 7 buf = 0x80dcac8 "reload" ASTERISK-3 0x42015704 in __libc_start_main () from /lib/tls/libc.so.6 No symbol table info available. By: Mark Spencer (markster) 2004-03-23 00:14:20.000-0600 The culprit was actually chan_iax which is now removed from the normal asterisk build process. |