SIGBUS on ( double * )

BogDan Vatra taipanromania at gmail.com
Wed Oct 23 17:32:35 UTC 2013


Hi,

It happens because you are trying to access unaligned memory which on arm
is not allowed.

Cheers,
BogDan.
Pe 23.10.2013 20:12, "Marco Bernasocchi" <marco at bernawebdesign.ch> a scris:

> Hi all, I often get SIGBUS when my code (qgis.org) hits stuff like this:
>
> GEOSCoordSeq_getX( cs, j, ( double * )&mGeometry[position] );
>
> if I change the call to use memcpy like
>
> double a;
> memcpy( a, &mGeometry[position])
> GEOSCoordSeq_getX( cs, j, &a )
>
> 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.
>
> thanks a lot
> Marco
> --
> Marco Bernasocchi
> http://opengis.ch
>
> --
> You received this message because you are subscribed to the Google Groups
> "android-qt" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-qt+unsubscribe@**googlegroups.com<android-qt%2Bunsubscribe at googlegroups.com>
> .
> For more options, visit https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20131023/adec2c4e/attachment.html>


More information about the Necessitas-devel mailing list