Hi,<div><br></div><div>I'm often getting an error in the SCC that shouldn't happen according to the source code. So here I am asking for some help. I get this error:</div><div><br></div><div><div>ERROR: testam.0 in send_bind_reply() ../../bf-scc/lib/barrelfish/lmp_chan.c:235</div>
<div><br></div><div>when I print the error this is what I get:</div><div><br></div><div><div>Failure: ( libbarrelfish) Attempt to register for an event on a channel which is already registered [LIB_ERR_CHAN_ALREADY_REGISTERED]</div>
</div><div><br></div><div>The code is the following (on lib/barrelfish/lmp_chan.c):</div><div><br></div><div><div> err = st->b->tx_vtbl.bind_lmp_reply_monitor(st->b, NOP_CONT, st->args.err,</div><div> st->args.mon_id, st->args.conn_id, </div>
<div> st->args.ep);</div><div> if (err_is_ok(err)) {</div><div> event_mutex_unlock(&b->mutex);</div><div> free(st);</div><div> } else if (err_no(err) == FLOUNDER_ERR_TX_BUSY) {</div>
<div> err = st->b->register_send(st->b, st->b->waitset,</div><div> MKCONT(send_bind_reply,st));</div><div> assert(err_is_ok(err)); // shouldn't fail, as we have the mutex</div>
</div><div><br></div><div>As the last line indicates, it shouldn't fail as we have the mutex. But it fails anyway... The user code is working well on the x86_64 arch with the UMP driver.</div><div><br></div><div>any ideas?</div>
<div><br></div><div><br></div><div>Many thanks,</div><div><br></div>-- <br>Zeus Gómez Marmolejo<br>Barcelona Supercomputing Center<br>PhD student<br><a href="http://www.bsc.es" target="_blank">http://www.bsc.es</a><br><br>
<br>
</div>