[asterisk-bugs] [Asterisk 0015867]: Corrupt Memory Issue - with Valgrind Trace

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Sep 9 17:30:31 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15867 
====================================================================== 
Reported By:                leobrown
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15867
Category:                   PBX/General
Reproducibility:            random
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-09-09 15:58 CDT
Last Modified:              2009-09-09 17:30 CDT
====================================================================== 
Summary:                    Corrupt Memory Issue - with Valgrind Trace
Description: 
Hi,

Have a CentOS 5 system running Asterisk 1.6.0.9 (have tried more recent
builds too but know this version well) and it is becoming unstable when
loading IAX2. Once the module is loaded, the asterisk console prompt no
longer appears unless connecting remotely, and even then it only gives
output to some commands.

Without IAX2 loaded the system is stable for a few hours, or shall i say a
few calls.

I know that there can be an issue with corrupt memory, but i am not sure
what this points to. I have created a valgrind trace and hopefully this may
shed some light on what is at fault.

I should not also astcanary is tweeting. Everything else on the stable,
webserver etc are running fine and stable. The problem has persists through
multiple reboots and disk checks.

Cheers
Leo
====================================================================== 

---------------------------------------------------------------------- 
 (0110445) leobrown (reporter) - 2009-09-09 17:30
 https://issues.asterisk.org/view.php?id=15867#c110445 
---------------------------------------------------------------------- 
Since it's chan_iax2.so that's stopping the system from working almost
totally (loading it causes chan_sip.so to stop talking to endpoints, for a
start), I thought I'd look at threads.

Before loading chan_iax2.so:

asterisk1*CLI> core show threads
0xb7c87bb0 ast_make_file_from_fd started at [  161] tcptls.c
ast_tcptls_server_root()
0xb7cc3bb0 netconsole           started at [ 1088] asterisk.c listener()
0xb7cffbb0 do_monitor           started at [19479] chan_sip.c
restart_monitor()
0xb7ea9bb0 device_state_thread  started at [ 8362] pbx.c load_pbx()
0xb7e6dbb0 do_parking_thread    started at [ 4000] features.c
ast_features_init()
0xb7fd8bb0 ast_event_dispatcher started at [  818] event.c
ast_event_init()
0xb7f9cbb0 listener             started at [ 1144] asterisk.c
ast_makesocket()
0xb7f60bb0 logger_thread        started at [  928] logger.c init_logger()
0xb7f21bb0 desc->accept_fn      started at [  346] tcptls.c
ast_tcptls_server_start()
0xb7ee5bb0 do_devstate_changes  started at [  529] devicestate.c
ast_device_state_engin                                                     
                 e_init()
10 threads listed.

After loading chan_iax2.so:

0xb76e9bb0 ast_make_file_from_fd started at [  161] tcptls.c
ast_tcptls_server_root()
0xb7761bb0 netconsole           started at [ 1088] asterisk.c listener()
0xb78d3bb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb7897bb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb785bbb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb781fbb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb77e3bb0 sched_thread         started at [10376] chan_iax2.c
start_network_thread()
0xb77a7bb0 network_thread       started at [10377] chan_iax2.c
start_network_thread()
0xb7c4bbb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb79ffbb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb79c3bb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb7987bb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb794bbb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb790fbb0 iax2_process_thread  started at [10366] chan_iax2.c
start_network_thread()
0xb7c87bb0 ast_make_file_from_fd started at [  161] tcptls.c
ast_tcptls_server_root()
0xb7cc3bb0 netconsole           started at [ 1088] asterisk.c listener()
0xb7cffbb0 do_monitor           started at [19479] chan_sip.c
restart_monitor()
0xb7ea9bb0 device_state_thread  started at [ 8362] pbx.c load_pbx()
0xb7e6dbb0 do_parking_thread    started at [ 4000] features.c
ast_features_init()
0xb7fd8bb0 ast_event_dispatcher started at [  818] event.c
ast_event_init()
0xb7f9cbb0 listener             started at [ 1144] asterisk.c
ast_makesocket()
0xb7f60bb0 logger_thread        started at [  928] logger.c init_logger()
0xb7f21bb0 desc->accept_fn      started at [  346] tcptls.c
ast_tcptls_server_start()
0xb7ee5bb0 do_devstate_changes  started at [  529] devicestate.c
ast_device_state_engin                                                     
                 e_init()
24 threads listed.

After loading the module, the console that i issued the load command from
doesn't process new commands, i have to connect another session. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-09 17:30 leobrown       Note Added: 0110445                          
======================================================================




More information about the asterisk-bugs mailing list