Hi Andrea,
it's strange that the issue doesn't happen when not
optimized.
which asterisk version are you using?
Christian
Andrea Spadaccini wrote:
> Hello everybody,
> I'm having some trouble with checking VoiceMail from
external BRI lines.
>
> When the VoiceMailMain app is called from an mISDN
channel, Asterisk segfaults.
> I've attached bt, bt full, thread apply all bt as seen
on README.backtrace. I'm
> unsure on filing a bug on this.
>
> Another strange thing: if I compile asterisk using make
dont-optimize, I don't
> get the crash. O_O
>
> Thanks in advance,
>
>
>
------------------------------------------------------------
------------
>
> #0 0xb7e3d8c7 in vfprintf () from /lib/tls/libc.so.6
> #1 0xb7e5926b in vsprintf () from /lib/tls/libc.so.6
> #2 0xb7e4632d in sprintf () from /lib/tls/libc.so.6
> #3 0xb75fbc4b in chan_misdn_log (level=-1236417964,
port=-1236161616, tmpl=0x0) at chan_misdn.c:4829
> #4 0xb75fb9cb in misdn_jb_fill (jb=0x8203828,
> data=0x8208530
"` 20221Ï`ØCàÑ 22224225 32Ë235 24~áPõav235m 2
3231Â 37ìægÔpçç 34ü237 34g236emûÔüyo235Õ 30221ë 37
Ïî}Ty÷225 23177232i 21235ßiôUû^ 26227ì 32û235 21r
é Ó{E220h 27233] 36225æoÜYùó 23ç222 36r231mlâÔ
Æ}g223I 36222í 31þëf\O÷ì 20 233", len=128)
> at chan_misdn.c:4721
> #5 0xb7602733 in misdn_write (ast=0x82084c0,
frame=0x82084c0) at chan_misdn.c:2310
> #6 0x0806328a in ast_write (chan=0x814c9f8,
fr=0xb64dc890) at channel.c:2336
> #7 0xb7b91c87 in adsi_careful_send (chan=0x814c9f8,
> buf=0xb64dc930
"H9ºÞHêaÈö7½¾/ܶ=PÉsÛIX¶E8²à4ÄÊKýVËË5Ò´5K³MEÎüÒOC¶ÿ1º¿4
ÞÂS Ù¾8Q¯A:¶í
AÚ}Îl;¼Ä/ζ:TÁbóNg¹ <°o3¾ÊCîkÏÕ8Ë·3T²EDÆüäSK¸]3·Å2пJn^ÙÄ9b°<<³k
>ÎêÛc?»Ì/Æ·6]½VhZÿ½? °W4ºÍ>ßéÙá;Ç»2g±>D¿qlZTºR6µÌ0È¿BoóÜÌ;ò³:?±X<
Æâÿ"..., len=680, remainder=0x0) at res_adsi.c:177
> #8 0xb7b8fc4d in __adsi_transmit_messages
(chan=0x814c9f8, msg=0xb64f9e90, msglen=0xb64f9e70,
msgtype=0xb64f9e50) at res_adsi.c:219
> #9 0xb7b8e64a in adsi_transmit_message_full
(chan=0x814c9f8, msg=0x4 <Address 0x4 out of bounds>,
msglen=9, msgtype=0, dowait=0) at res_adsi.c:405
> #10 0xb7b8f84c in adsi_load_session (chan=0x814c9f8,
app=0xb653f3e0 "", ver=1, data=1) at
res_adsi.c:984
> #11 0xb65379a2 in vm_authenticate (chan=0x814c9f8,
mailbox=0xb6509480 "203", mailbox_size=80,
res_vmu=0xb6508fe0, context=0x0, prefix=0xb650d5f0
"",
> skipuser=1, maxlogins=3, silent=0) at
app_voicemail.c:2945
> #12 0xb652d4c5 in vm_execmain (chan=0x814c9f8,
data=0xb6508fe0) at strings.h:34
> #13 0x0808f052 in pbx_extension_helper (c=0x814c9f8,
con=0x0, context=0x814cb48 "macro-voicemail",
exten=0x814cc3c "s", priority=3, label=0x0,
> callerid=0xb65180e0 "voicemail|203",
action=136304184) at pbx.c:554
> #14 0x0808d634 in ast_spawn_extension (c=0x0,
context=0x0, exten=0x0, priority=0, callerid=0x0) at
pbx.c:2230
> #15 0xb657b89a in macro_exec (chan=0x814c9f8,
data=0xb65180e0) at app_macro.c:228
> #16 0x0808f052 in pbx_extension_helper (c=0x814c9f8,
con=0x0, context=0x814cb48 "macro-voicemail",
exten=0x814cc3c "s", priority=1, label=0x0,
> callerid=0x0, action=0) at pbx.c:554
> #17 0x0808fc7f in __ast_pbx_run (c=0x814c9f8) at
pbx.c:2230
> #18 0x0809096f in pbx_thread (data=0x0) at pbx.c:2517
> #19 0xb7fcb0fb in start_thread () from
/lib/tls/libpthread.so.0
> #20 0xb7ebb99e in clone () from /lib/tls/libc.so.6
>
>
------------------------------------------------------------
------------
>
> #0 0xb7e3d8c7 in vfprintf () from /lib/tls/libc.so.6
> No symbol table info available.
> #1 0xb7e5926b in vsprintf () from /lib/tls/libc.so.6
> No symbol table info available.
> #2 0xb7e4632d in sprintf () from /lib/tls/libc.so.6
> No symbol table info available.
> #3 0xb75fbc4b in chan_misdn_log (level=-1236417964,
port=-1236161616, tmpl=0x0) at chan_misdn.c:4829
> buf = ' ' <repeats 944 times>,
"ÌÍ 04b`ÇM¶ 33Àþ·p 33 05bÜܸ·", ' '
<repeats 20 times>,
"X8 05b¬î 04b,¤ 04bФÿ· 26 00 00 00È$ 25bçÑ
ü·Ø237ÿ·$ò 24b´235¾·"
> port_buf =
" |