[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Misaligned memory writes on ARM and other runtime errors
From: |
Stefan Weil |
Subject: |
[Qemu-devel] Misaligned memory writes on ARM and other runtime errors |
Date: |
Tue, 9 Apr 2019 21:12:27 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
When QEMU for ARM is compiled with sanitizers
(--extra-cflags=-fsanitize=address,undefined), I see runtime errors for
qemu-arm which indicate misaligned memory writes:
/qemu/linux-user/fd-trans.c:1389:18: runtime error: store to misaligned
address 0x42ff4b34 for type 'uint64_t', which requires 8 byte alignment
The full sanitizer report is available from
https://qemu.weilnetz.de/doc/sanitizer.txt. Some of the reported runtime
errors can easily be fixed, for example by replacing "1 << 31"
(currently 188 matches) by "1U << 31" (currently only 70 matches).
The test results are from running "arm-linux-user/qemu-arm
/usr/bin/scite" on Ubuntu ARM, but running other binaries with qemu-arm
shows similar runtime errors.
Regards,
Stefan Weil
- [Qemu-devel] Misaligned memory writes on ARM and other runtime errors,
Stefan Weil <=