Summary: | ASTERISK-17614: Asterisk crashes with LOW_MEMORY defined | ||
Reporter: | Jeremy B (captainjez) | Labels: | |
Date Opened: | 2011-03-28 22:46:20 | Date Closed: | 2011-06-07 14:05:00 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | 1.8.3 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I've seen this issue for some time now. When I build Asterisk (its reproducible in 1.4, 1.6 and 1.8) and choose the LOW MEMORY compile time flag (with and without DONT OPTIMIZE enabled) , Asterisk will build fine, however once I have Asterisk running, issuing a "dialplan reload" or "module reload" will always cause Asterisk to die completely. It won't core dump either, however it does die on a Signal 11. pid 177 (asterisk), uid 0: exited on signal 11 pid 184 (asterisk), uid 0: exited on signal 11 pid 188 (asterisk), uid 0: exited on signal 11 Its unlikely a hardware issue as this is reproducible on various hardware running the same OS. I'm using FreeBSD, and i've had this issue with FreeBSD 6 and 8.2 (which i'm currently building with). # asterisk -r *CLI> module reload *CLI> Disconnected from Asterisk server # asterisk -r vtalk*CLI> dialplan reload vtalk*CLI> Disconnected from Asterisk server I have the following modules enabled: -rwxr-xr-x 1 root wheel 6174 Mar 29 14:40 app_cdr.so -rwxr-xr-x 1 root wheel 9682 Mar 29 14:40 app_chanisavail.so -rwxr-xr-x 1 root wheel 7913 Mar 29 14:40 app_channelredirect.so -rwxr-xr-x 1 root wheel 9560 Mar 29 14:40 app_db.so -rwxr-xr-x 1 root wheel 85859 Mar 29 14:40 app_dial.so -rwxr-xr-x 1 root wheel 23902 Mar 29 14:40 app_macro.so -rwxr-xr-x 1 root wheel 165523 Mar 29 14:40 app_meetme.so -rwxr-xr-x 1 root wheel 27785 Mar 29 14:40 app_mixmonitor.so -rwxr-xr-x 1 root wheel 10333 Mar 29 14:40 app_originate.so -rwxr-xr-x 1 root wheel 12547 Mar 29 14:40 app_parkandannounce.so -rwxr-xr-x 1 root wheel 18373 Mar 29 14:40 app_playback.so -rwxr-xr-x 1 root wheel 204085 Mar 29 14:40 app_queue.so -rwxr-xr-x 1 root wheel 17301 Mar 29 14:40 app_record.so -rwxr-xr-x 1 root wheel 6954 Mar 29 14:40 app_setcallerid.so -rwxr-xr-x 1 root wheel 10709 Mar 29 14:40 app_softhangup.so -rwxr-xr-x 1 root wheel 8821 Mar 29 14:40 app_verbose.so -rwxr-xr-x 1 root wheel 236459 Mar 29 14:40 app_voicemail.so -rwxr-xr-x 1 root wheel 17322 Mar 29 14:40 cdr_sqlite3_custom.so -rwxr-xr-x 1 root wheel 447795 Mar 29 14:40 chan_iax2.so -rwxr-xr-x 1 root wheel 37181 Mar 29 14:40 chan_local.so -rwxr-xr-x 1 root wheel 9407 Mar 29 14:40 chan_multicast_rtp.so -rwxr-xr-x 1 root wheel 831283 Mar 29 14:40 chan_sip.so -rwxr-xr-x 1 root wheel 8780 Mar 29 14:40 codec_a_mu.so -rwxr-xr-x 1 root wheel 279026 Mar 29 14:40 codec_g729.so -rwxr-xr-x 1 root wheel 9986 Mar 29 14:40 format_g729.so -rwxr-xr-x 1 root wheel 62302 Mar 29 14:40 format_mp3.so -rwxr-xr-x 1 root wheel 14210 Mar 29 14:40 format_pcm.so -rwxr-xr-x 1 root wheel 16304 Mar 29 14:40 format_wav.so -rwxr-xr-x 1 root wheel 32785 Mar 29 14:40 format_wav_gsm.so -rwxr-xr-x 1 root wheel 7332 Mar 29 14:40 func_callcompletion.so -rwxr-xr-x 1 root wheel 31359 Mar 29 14:40 func_callerid.so -rwxr-xr-x 1 root wheel 11026 Mar 29 14:40 func_cdr.so -rwxr-xr-x 1 root wheel 24173 Mar 29 14:40 func_channel.so -rwxr-xr-x 1 root wheel 10184 Mar 29 14:40 func_db.so -rwxr-xr-x 1 root wheel 14902 Mar 29 14:40 func_devstate.so -rwxr-xr-x 1 root wheel 8345 Mar 29 14:40 func_dialplan.so -rwxr-xr-x 1 root wheel 35611 Mar 29 14:40 func_env.so -rwxr-xr-x 1 root wheel 7595 Mar 29 14:40 func_extstate.so -rwxr-xr-x 1 root wheel 12327 Mar 29 14:40 func_global.so -rwxr-xr-x 1 root wheel 6463 Mar 29 14:40 func_module.so -rwxr-xr-x 1 root wheel 10524 Mar 29 14:40 func_timeout.so -rwxr-xr-x 1 root wheel 7002 Mar 29 14:40 func_vmcount.so -rwxr-xr-x 1 root wheel 52088 Mar 29 14:40 pbx_config.so -rwxr-xr-x 1 root wheel 149677 Mar 29 14:40 pbx_dundi.so -rwxr-xr-x 1 root wheel 10254 Mar 29 14:40 pbx_loopback.so -rwxr-xr-x 1 root wheel 27207 Mar 29 14:40 pbx_spool.so -rwxr-xr-x 1 root wheel 11589 Mar 29 14:40 res_clioriginate.so -rwxr-xr-x 1 root wheel 9619 Mar 29 14:40 res_convert.so -rwxr-xr-x 1 root wheel 23709 Mar 29 14:40 res_crypto.so -rwxr-xr-x 1 root wheel 10832 Mar 29 14:40 res_limit.so -rwxr-xr-x 1 root wheel 52969 Mar 29 14:40 res_musiconhold.so -rwxr-xr-x 1 root wheel 72325 Mar 29 14:40 res_rtp_asterisk.so -rwxr-xr-x 1 root wheel 11196 Mar 29 14:40 res_rtp_multicast.so -rwxr-xr-x 1 root wheel 9719 Mar 29 14:40 res_timing_dahdi.so I've even tried with an empty config just to rule out a configuration issue. | ||
Comments: | By: Leif Madsen (lmadsen) 2011-04-05 15:18:46 What hardware is this on? Do you really need LOW_MEMORY? It's likely that whatever you're building requires more memory than LOW_MEMORY will allow. By: Jeremy B (captainjez) 2011-04-05 16:21:58 I do need low memory, its running on an AMD Geode @ 500Mhz. It works fine without low memory enabled so it seems unlikely it is a memory issue. Its only when interacting with the manager interface and/or issuing a reload on the cli that it exhibits the crash. By: Leif Madsen (lmadsen) 2011-04-19 10:05:01 https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace By: Leif Madsen (lmadsen) 2011-05-10 14:50:37 Suspended due to lack of information. The reporter is welcome to reopen this issue if they can provide the requested information. |