[asterisk-bugs] [JIRA] Commented: (ASTERISK-17163) Asterisk consumes 100% of CPU on Mac OS X

Charles Day (JIRA) noreply at issues.asterisk.org
Sun Sep 30 18:14:27 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-17163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197765#comment-197765 ] 

Charles Day commented on ASTERISK-17163:
----------------------------------------

I can also confirm this bug in the {{pbx_spool.so}} module of Asterisk 10.8.0 running under OSX 10.8.2 (Mountain Lion).

The 100% CPU occurs when {{pbx_spool.so}} is loaded by modules.conf. Without {{pbx_spool.so}}, CPU usage is only about 0.9%.

However, I tried adding the code suggested by John Papandriopoulos to {{pbx/pbx_spool.c}} and rebuilding (make clean, make, sudo make install). It didn't seem to help, as CPU usage was still 100%.

> Asterisk consumes 100% of CPU on Mac OS X
> -----------------------------------------
>
>                 Key: ASTERISK-17163
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-17163
>             Project: Asterisk
>          Issue Type: Bug
>          Components: Core/Portability
>            Reporter: Steven Sokol
>         Attachments: asterisk_sample.txt
>
>
> I've run Asterisk 1.8.0 and 1.8.1 on several Macs (all running Mac OS X 10.6.5) and in every case it sucks up 100.x% of available CPU.  (Note that in call cases the system has at least 2 cores, so this is possible).  I've run a profile (or what the Mac calls a "sample") and it shows a lot of this:
>     2169 Thread_29623
>       2169 thread_start
>         2169 _pthread_start
>           2169 dummy_start
>             2169 do_devstate_changes
>               2169 _pthread_cond_wait
>                 2169 __semwait_signal
>     2169 Thread_29624
>       2169 thread_start
>         2169 _pthread_start
>           2169 dummy_start
>             2169 tps_processing_function
>               2169 _pthread_cond_wait
>                 2169 __semwait_signal
>     2169 Thread_29625
>       2169 thread_start
>         2169 _pthread_start
>           2169 dummy_start
>             2169 do_parking_thread
>               2169 ast_internal_poll
>                 2169 select$DARWIN_EXTSN
> I'll attach the complete sample file.  Please let me know what else you need to help figure this out.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list