Skip to content
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

unaligned 64-bit atomic operation on arm7 architecture #2011

Closed
GuangchaoDeng opened this issue Mar 16, 2021 · 3 comments · Fixed by #2915
Closed

unaligned 64-bit atomic operation on arm7 architecture #2011

GuangchaoDeng opened this issue Mar 16, 2021 · 3 comments · Fixed by #2915
Assignees

Comments

@GuangchaoDeng
Copy link

GuangchaoDeng commented Mar 16, 2021

panic : unaligned 64-bit atomic operation on arm7 architecture

Describe:

i deploy cluster on ARMV7l use nats-server-v2.2.0-linux-arm7,but the nast-server crash when i create stream by natscli

Crash information is as follows:

the panic info: unaligned 64-bit atomic operation

crash

Environment

nats-server package : nats-server-v2.2.0-linux-arm7.tar.gz

my environment cpu info:

cpu-info

@derekcollison
Copy link
Member

Thanks, booting up my RPI-Zero now.. Will get it fixed. Apologies.

@derekcollison derekcollison self-assigned this Mar 16, 2021
derekcollison added a commit that referenced this issue Mar 16, 2021
derekcollison added a commit that referenced this issue Mar 16, 2021
Fix for #2011 and atomics on 32bit systems.
@derekcollison
Copy link
Member

ok should be fixed and is merged into main branch. Will be part of next 2.2.1 release and of course you can build yourself now and should work fine.

@mlorenz-tug
Copy link

This seems to have reappeared in the latest version on the armv7l-architecture using the binary from nats-server-v2.7.3-linux-arm7.zip.

The /connz monitoring endpoint works as expected, but calling the /varz endpoint results in the unaligned 64-bit atomic operation panic. After the panic the NATS server also has to be killed with SIGKILL as the server no longer reacts to SIGINTs.

image

image

@kozlovic kozlovic reopened this Mar 9, 2022
@kozlovic kozlovic assigned kozlovic and unassigned derekcollison Mar 9, 2022
kozlovic added a commit that referenced this issue Mar 9, 2022
This is due to an unaligned 64-bit atomic operation. Move the
field at top of structure with 64-bit aligned preceding fields.

Resolves #2011

Signed-off-by: Ivan Kozlovic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants