[riot-notifications] [RIOT-OS/RIOT] core: `msg_receive()` sometimes returns without `msg` being re-set (#10881)

Kaspar Schleiser notifications at github.com
Mon Jan 28 13:58:07 CET 2019


I boiled it down to this:

```
[kaspar at ng riot (master)]$ git diff core/msg.c
diff --git a/core/msg.c b/core/msg.c
index a46875f16e..86ee0dd287 100644
--- a/core/msg.c
+++ b/core/msg.c
@@ -330,6 +330,7 @@ static int _msg_receive(msg_t *m, int block)
             thread_yield_higher();
 
             /* sender copied message */
+            assert(sched_active_thread->status != STATUS_RECEIVE_BLOCKED);
         }
         else {
             irq_restore(state);
[kaspar at ng riot (master)]$
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/10881#issuecomment-458121148
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190128/2051b919/attachment-0001.html>


More information about the notifications mailing list