I seem to have this fixed and have been able to run both normal boring X as well as xfce4. Taking out the memcpy seems to do the trick and doing the copying of memory in a loop "by hand". It's obviously a step back in speed but OTOH no more SIGBUS' due to alignment rules being broken.
I managed to fix the long mis-rendering bug as well.
I seem to have this fixed and have been able to run both normal boring X as well as xfce4. Taking out the memcpy seems to do the trick and doing the copying of memory in a loop "by hand". It's obviously a step back in speed but OTOH no more SIGBUS' due to alignment rules being broken.
I managed to fix the long mis-rendering bug as well.