-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
segfault on ARM #813
Comments
What fmt version do you use and could you provide a stack trace of the segfault? |
the latest from master. |
Thanks. Could you by any chance post a stack trace for the debug version (with line numbers) which can be compiled with |
Sorry for a delay though I'm pretty sure the issue is well reproducible on any cpu with strict data alignment access. Core was generated by `./printf-test'. |
The segfault occurs in EXPECT_THROW_MSG(fmt::sprintf(format("%{}$", BIG_NUM)),
format_error, "number is too big"); which is a test that intentionally throws (and catches) an exception on invalid input and the segfault seem to happens during exception propagation ( |
Thanks vitaut for figuring out the problem! |
Thanks guys for awesome lib but can you please also make it work on ARM CPUs?
Total Test time (real) = 1.32 sec
The following tests FAILED:
2 - gtest-extra-test (SEGFAULT)
4 - format-test (Child aborted)
6 - ostream-test (SEGFAULT)
7 - printf-test (SEGFAULT)
9 - util-test (SEGFAULT)
13 - posix-test (SEGFAULT)
*** [Makefile:120: test] Error 8
The results are produced in termux (Android):
$ cat /proc/cpuinfo
Processor : ARMv7 Processor rev 1 (v7l)
processor : 0
BogoMIPS : 38.40
processor : 1
BogoMIPS : 38.40
processor : 2
BogoMIPS : 38.40
processor : 3
BogoMIPS : 38.40
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x51
CPU architecture: 7
CPU variant : 0x2
CPU part : 0x06f
CPU revision : 1
Hardware : Qualcomm MSM8974PRO-AC
The text was updated successfully, but these errors were encountered: