Asterisk chrashes with MinivmNotify application

Hello everyone

I am trying to use application MinivmNotify and asterisk chrashes.

Asterisk version 10.9.0
Intel® Xeon® CPU E5620 @ 2.40GHz

My dialplan
exten => 34,1,set(
exten => 34,n,minivmRecord(${account})
exten => 34,n,minivmNotify(${account})

Users are generated from LDAP in realtime mode. The VM message is recorded successfully, but when i try to send notification using MinivmNotify asterisk crashes.

Here is logs:
Oct 18 17:11:04] DEBUG[19724]: app_minivm.c:1061 find_account: Looking for voicemail user mail in domain
[Oct 18 17:11:04] DEBUG[19724]: app_minivm.c:1072 find_account: Found account for
[Oct 18 17:11:04] DEBUG[19724]: app_minivm.c:1815 notify_new_message: MVM_COUNTER not found
[Oct 18 17:11:04] DEBUG[19724]: app_minivm.c:1268 sendmail: Sending mail to - Using template email-default
[Oct 18 17:11:04] DEBUG[19724]: app_minivm.c:1301 sendmail: Attaching file ‘/var/spool/asterisk/voicemail/0000_minivm_temp/mediafiles/kgCMfm’, format ‘wav’, uservm is ‘1’
[Oct 18 17:11:04] DEBUG[19724]: app_minivm.c:1312 sendmail: Opening temp file for e-mail: /tmp/astmail-3BmdxS
[Oct 18 17:11:04] WARNING[19724]: app_minivm.c:1189 ast_str_encode_mime: buffer =?ISO-8859-1?Q?New_message_in_mailbox_mail=40yahoo=2Ecom first section 1 maxlen 0

Disconnected from Asterisk server

Here is bt:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb701ab70 (LWP 17475)]
0x0819bb13 in __ast_str_helper (buf=0xb7014bd0, max_len=0, append=1, fmt=0xb7774088 “%s%s?=%s”, ap=0xb700f1dc “\350Aw\267\374\361”) at strings.c:64
64 strings.c: No such file or directory.
in strings.c
(gdb) bt full
#0 0x0819bb13 in __ast_str_helper (buf=0xb7014bd0, max_len=0, append=1, fmt=0xb7774088 “%s%s?=%s”, ap=0xb700f1dc “\350Aw\267\374\361”) at strings.c:64
res =
need =
offset = 0
PRETTY_FUNCTION = “__ast_str_helper”
#1 0x081ae29e in ast_str_append_va (buf=0xb7014bd0, max_len=0, fmt=0xb7774088 “%s%s?=%s”) at /home/asterisk_stable/asterisk/include/asterisk/strings.h:793
No locals.
#2 ast_str_append (buf=0xb7014bd0, max_len=0, fmt=0xb7774088 “%s%s?=%s”) at /home/asterisk_stable/asterisk/include/asterisk/strings.h:865
res = 1
#3 0xb7767165 in ast_str_encode_mime (end=0xb7014bd0, maxlen=0, charset=0x85c8ea4 “ISO-8859-1”, start=0x86129bc “New message in mailbox”, preamble=9, postamble=61) at app_minivm.c:1188
tmp = 0xb700f1f0
first_section = 1
#4 0xb776f24d in sendmail (template=0x85c8d38, vmu=0x85c8888, cidnum=0x85e0048 “143”, cidname=0x85e8920 “user_143”,
filename=0xb7014d60 “/var/spool/asterisk/voicemail/0000_minivm_temp/mediafiles/jgRvvl”, format=0xb7014c20 “wav”, duration=1, attach_user_voicemail=1, type=MVM_MESSAGE_EMAIL, counter=0x0)
at app_minivm.c:1423

So i can’t inderstand is my dialplan wrong or there is a bug.

Can someone point me in the right direction please.

A segmentation violation means there is either a bug or you have got an old module in your Asterisk modules directory.

It might be a low priority bug if it only happens when the system is misconfigured.

Before you report it as a bug, you will need to rebuild Asterisk with compiler optimisation disabled.

Thank you for reply. One more question. Is there something wrong in my dialplan when i call the application?