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

bus error from unaligned access in threads on 64bit raspberry pi. #1136

Open
gepatto opened this issue Jul 30, 2024 · 0 comments
Open

bus error from unaligned access in threads on 64bit raspberry pi. #1136

gepatto opened this issue Jul 30, 2024 · 0 comments

Comments

@gepatto
Copy link

gepatto commented Jul 30, 2024

hxcpp Threads are causing bus errors an 64bit (os) RaspberryPi .

forcing HXCPP_ALIGN_ALLOC solves the problem.

quoting Hugh:
the better way would be to replace the pthread_cond_init calls with a malloc + a pthread_cond_init call and the pthread_cond_destroy calls with a pthread_cond_destroy + free calls. Same for pthread_mutex_t. In Thread.h and Thread.cpp

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

No branches or pull requests

1 participant