<div dir="ltr">Some of this is a bit of unfamiliar territory for me, but I am learning. I will try enabling core dumps, etc. and see if I can get some more information. I will open up a jira ticket in the next couple of days.<div><br></div><div>Thanks for your help.</div><div><br></div><div>Jason</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 10, 2015 at 4:19 PM, Stanislav Sinyagin <span dir="ltr"><<a href="mailto:ssinyagin@gmail.com" target="_blank">ssinyagin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">if coredumps are not made, you need to enable them, and then install<br>
debug symbols (-dbg packages), and run gdb on the core fule. Then it<br>
shoul dindicate the line number in the sources where it crashed.<br>
<br>
Here's one suspect: mod_spandsp_fax.c, mod_spandsp_fax_process_fax:<br>
<br>
int16_t *buf = NULL;<br>
....<br>
buf = switch_core_session_alloc(session,<br>
SWITCH_RECOMMENDED_BUFFER_SIZE);<br>
<br>
are we guaranteed that alloc returns a 16-bit aligned pointer?<br>
<br>
I think it makes sense to open a jira ticket anyway<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
On Thu, Dec 10, 2015 at 10:51 PM, Komar, Jason <<a href="mailto:jkomar@jbox.ca">jkomar@jbox.ca</a>> wrote:<br>
> This is on FreeSWITCH Version 1.6.5+git-20151209T192325Z~70b8c17763~32bit<br>
> (git 70b8c17 2015-12-09 19:23:25Z 32bit) by the way.<br>
><br>
><br>
> On Thu, Dec 10, 2015 at 2:49 PM, Komar, Jason <<a href="mailto:jkomar@jbox.ca">jkomar@jbox.ca</a>> wrote:<br>
>><br>
>> I get nothing in debug or sip trace. It always dies at mod_spandsp_fax so<br>
>> I figured it was in that module. At that point freeswitch just restarts<br>
>> without throwing any errors.<br>
>><br>
>> Kernel log shows:<br>
>><br>
>> Dec 10 14:16:17 antman kernel: [ 5949.832802] Alignment trap: not handling<br>
>> instruction ecb17a01 at [<b44fe32c>]<br>
>> Dec 10 14:16:17 antman kernel: [ 5949.834290] Unhandled fault: alignment<br>
>> exception (0x001) at 0xb4546e4a<br>
>><br>
>> The only part of the exception that is the same every time it happens is<br>
>> "instruction ecb17a01."<br>
>><br>
>> I would have just opened a JIRA, but I didn't think this was enough<br>
>> information. I have been Googling trying to figure out how to get more info.<br>
>><br>
>> Jason<br>
>><br>
>><br>
>> On Thu, Dec 10, 2015 at 2:37 PM, Stanislav Sinyagin <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hi, I didn't see any errors, but I'm not using fax, and mostly it's<br>
>>> bridging the calls and connecting users to a conference. Do you have more<br>
>>> debugging information?<br>
>>><br>
>>> Most probably the source of the problem is that x86 allows unaligned<br>
>>> memory access: a word pointer can have any value. And other architectures<br>
>>> don't allow this, and require the pointers to be aligned to word boundaries.<br>
>>> Mongodb, for example, is known to fail on any non-x86 CPU because of that.<br>
>>><br>
>>> So, probably mod_spandsp needs an audit.<br>
>>><br>
>>> On 10 Dec 2015 21:11, "Komar, Jason" <<a href="mailto:jkomar@jbox.ca">jkomar@jbox.ca</a>> wrote:<br>
>>>><br>
>>>> Your instructions worked great for me building on/for my Odroid-U3 (arm)<br>
>>>> running Debian Jessie.<br>
>>>><br>
>>>> I know you are running on arm at scaleway. Do you ever run into any<br>
>>>> alignment issues? I'm getting alignment exception faults receiving faxes and<br>
>>>> I'm having trouble pulling any useful debug messages.<br>
>>>><br>
>>>> Thanks,<br>
>>>> Jason<br>
>>>><br>
>>>> On Mon, Nov 30, 2015 at 9:27 AM, Stanislav Sinyagin<br>
>>>> <<a href="mailto:ssinyagin@gmail.com">ssinyagin@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>> hi,<br>
>>>>><br>
>>>>> I put together the build scenario that I tested for ARM (armhf at<br>
>>>>> <a href="http://scaleway.com" rel="noreferrer" target="_blank">scaleway.com</a>), and it should also work for other architectures:<br>
>>>>><br>
>>>>><br>
>>>>> <a href="https://freeswitch.org/confluence/display/FREESWITCH/Building+debs+for+other+architectures" rel="noreferrer" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Building+debs+for+other+architectures</a><br>
>>>>><br>
>>>>> It will be great if someone tests them on other architectures too.<br>
>>>>><br>
>>>>><br>
>>>>> cheers,<br>
>>>>> stanislav<br>
>>>>><br>
>>>>><br>
>>>>> _________________________________________________________________________<br>
>>>>> Professional FreeSWITCH Consulting Services:<br>
>>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>>><br>
>>>>> Official FreeSWITCH Sites<br>
>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>>>><br>
>>>>> FreeSWITCH-users mailing list<br>
>>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>>><br>
>>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _________________________________________________________________________<br>
>>>> Professional FreeSWITCH Consulting Services:<br>
>>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>>><br>
>>>> Official FreeSWITCH Sites<br>
>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>>><br>
>>>> FreeSWITCH-users mailing list<br>
>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>>><br>
>>> _________________________________________________________________________<br>
>>> Professional FreeSWITCH Consulting Services:<br>
>>> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
>>> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
>>><br>
>>> Official FreeSWITCH Sites<br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>>> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
>>> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
>>><br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
>><br>
>><br>
><br>
><br>
> _________________________________________________________________________<br>
> Professional FreeSWITCH Consulting Services:<br>
> <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
> <a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
><br>
> Official FreeSWITCH Sites<br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
> <a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
> <a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
><br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>