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

SIGSEGV on macOS with rayon #6

Open
yongqli opened this issue Nov 15, 2022 · 3 comments
Open

SIGSEGV on macOS with rayon #6

yongqli opened this issue Nov 15, 2022 · 3 comments

Comments

@yongqli
Copy link

yongqli commented Nov 15, 2022

When I try to run Highs in parallel using rayon, I get terminated by signal SIGSEGV (Address boundary error), but only on macOS. This issue is hard to reproduce, only happening when the problem is large. Adding a Mutex around code that calls into Highs did not help. Any ideas on how to further debug this issue given that valgrind is Linux only?

@yongqli
Copy link
Author

yongqli commented Nov 15, 2022

Running it under lldb I get:

Process 66711 stopped
* thread #35, stop reason = EXC_BAD_ACCESS (code=1, address=0x20)
    frame #0: 0x0000000100170c0d `HighsMipSolverData::evaluateRootNode() [inlined] HighsSplitDeque::getCurrentHead(this=0x0000000000000000) const at HighsSplitDeque.h:481:49 [opt]
   478
   479     int getOwnerId() const { return ownerData.ownerId; }
   480
-> 481     int getCurrentHead() const { return ownerData.head; }
   482
   483     HighsSplitDeque* getWorkerById(int id) const {
   484       return ownerData.workers[id].get();

@lovasoa
Copy link
Contributor

lovasoa commented Nov 15, 2022

@jajhall : it looks like we have thread safety issues. Help would be welcome !

@jajhall
Copy link
Collaborator

jajhall commented Nov 15, 2022

Can we move this discussion to ERGO-Code/HiGHS#1005

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

3 participants