-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unit-conversions SIGSEGV on armv7hl #303
Comments
Thanks for reporting. Unfortunately, I do not have access to an armv7hl architecture, so I cannot debug into the problem. Can you please give me details on the compiler you are using? |
The compiler is gcc-c++ 6.2.1. Here is the full build.log: https://kojipkgs.fedoraproject.org//work/tasks/7056/15497056/build.log |
I've managed to run the conversions unit test via valgrind on the armv7hl machine, this is the output:
|
Meanwhile, the build log at https://kojipkgs.fedoraproject.org//work/tasks/7056/15497056/build.log is no longer available. Do you have a copy? |
It may not be 100% comparable, but the tests (current develop version) succeed on a Raspberry Pi:
Valgrind reports:
That said - I cannot reproduce the error with a Raspberry Pi. I am still lacking access to a armv7hl system. |
Thanks @navybk for helping debugging! |
@nlohmann Here's the build log as an attachment. |
I fear I have to mark this issue as "won't fix"... |
@nlohmann ok, I'll have to exclude amrv7 builds in Fedora then. |
Thanks for the quick response. Sorry I could not fix this, but I lack the hardware to debug into it. |
I was running into the same problem on armv7l. Using 32 bit data types instead of the default bsaic_json<> template fixed the problem. There seems to be a problem with memory alignment of structures on this platform. |
@mwittgen Thanks for the hint! Can you provide the concrete instantiation of the templates so I can update the README? |
basic_json<std::map, std::vector, std::string, bool, std::int32_t, std::uint32_t, float> I have only run our application code and switching to 32 bit values fixed it. This would need some detailed investigation to confirm what is actually going wrong. I might get to it later. |
Thanks a lot! This is really strange... |
I'll see if I can provide a simple test case with QEMU. |
Forgot to mention gcc 5.2 on ZYNQ (armv7l) running ArchLinux. Compiled natively or cross compiled with crosstool-ng. Both executables crashed on invalid memory pointers in different places. Switching off optimization made the crash go away. |
Hello,
when trying to build and run the test suite on armv7hl architecture, I get the following results:
The text was updated successfully, but these errors were encountered: