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

Fix concurrency bug #21

Open
halfer53 opened this issue Jul 24, 2022 · 0 comments
Open

Fix concurrency bug #21

halfer53 opened this issue Jul 24, 2022 · 0 comments

Comments

@halfer53
Copy link
Owner

if(is_debugging_ipc()){
                KDEBUG(("IPC: SEND to %d from %d blocked\n",
                            dest, src->proc_nr));
            }
            // Otherwise, block current process and add it to
            // head of sending queue of the destination.
            src->state |= STATE_SENDING;
            src->next_sender = pDest->sender_q;
            pDest->sender_q = src;

This part could trigger undefined behavior if the sender is already receiving

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