<p dir="ltr">Hi,</p>
<p dir="ltr">It happens because you are trying to access unaligned memory which on arm is not allowed.</p>
<p dir="ltr">Cheers,<br>
BogDan.</p>
<div class="gmail_quote">Pe 23.10.2013 20:12, "Marco Bernasocchi" <<a href="mailto:marco@bernawebdesign.ch">marco@bernawebdesign.ch</a>> a scris:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all, I often get SIGBUS when my code (<a href="http://qgis.org" target="_blank">qgis.org</a>) hits stuff like this:<br>
<br>
GEOSCoordSeq_getX( cs, j, ( double * )&mGeometry[position] );<br>
<br>
if I change the call to use memcpy like<br>
<br>
double a;<br>
memcpy( a, &mGeometry[position])<br>
GEOSCoordSeq_getX( cs, j, &a )<br>
<br>
then all works correctly, the issue is that I've a lot of those calls and If I'm not wrong in the past it used to work). could this be because of a compiler setting? I'm using necessitas Qt sdk with ndk r8b1 compiling both with -mthumb and without has the same issue.<br>

<br>
thanks a lot<br>
Marco<br>
-- <br>
Marco Bernasocchi<br>
<a href="http://opengis.ch" target="_blank">http://opengis.ch</a><br>
<br>
-- <br>
You received this message because you are subscribed to the Google Groups "android-qt" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:android-qt%2Bunsubscribe@googlegroups.com" target="_blank">android-qt+unsubscribe@<u></u>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/groups/opt_out" target="_blank">https://groups.google.com/<u></u>groups/opt_out</a>.<br>
</blockquote></div>