You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @mariasfiraiala . Thanks for this. It's indeed an issue with any aarch64 app. Attached (arm-helloworld.zip) is an archive to quickly build and run a helloworld app on aarch64, both with and without newlib, highlighting the issue
Describe the bug
Default size of the data model for
AArch64
is 8 (64 bits) forlong
types, howevernewlibc
ends up definingLONG_MAX
as 32 bits.This issue causes extremely optimized functions, such as
memchr
(which parses DTB for apps likeSQLite
orredis
), to crash when compiled forAArch64
.Steps to reproduce
Build and run
SQLite
onAArch64
usingnewlib
support.Expected behavior
Run the
SQLite
app without any errors.Which architectures were you using or does this bug affect?
AArch64
Which platforms were you using or does this bug affect?
KVM
Relevant log output
When I run the
SQLite
app this is the error I get:Most likely it is caused by the behaviour of
memchr
when parsing DTB.The text was updated successfully, but these errors were encountered: