[Barrelfish-users] Assertion fired when calling "nameserver_register" function
M Brown
M.Brown at huawei.com
Tue Jan 7 21:06:19 CET 2014
Kornilios,
There are no other threads running. It does not look like there is anything else running from what I can tell. Is there something else I can look at?
Thanks,
Mark Brown
Huawei Technologies Inc.
5340 Legacy Dr., Suite 175
Plano, TX 75024
Tel: 469-277-5700 x5870
Email: m.brown at huawei.com<mailto:m.brown at huawei.com>
>Dear Mark,
>
>On Mon, Dec 16, 2013 at 05:38:37PM +0000, M Brown wrote:
>> Guys,
>>>>
>> I'm getting the following assertion fired when calling the
>> nameserver_register function from within an export callback
>> function:
>>
>> [cid]
>>
>> The example message test works fine. The structure of the code I have
>> is as follows:
>>
>> main {
>> thread_create(myTask, NULL);
>> .
>> .
>> .
>> }
>>
>> int myTask(void* arg) {
>> .
>> .
>> .
>> <iface>_export(NULL,
>> export_cb, connect_cb,
>> get_default_waitset(),
>> IDC_EXPORT_FLAGS_DEFAULT);
>>
>> }
>>
>> void export_cb(void *st, errval_t err, iref_t iref) {
>> .
>> .
>> .
>> // The assertion fires within this invocation
>> nameserver_register("iface", iref); }
>>
>> Is there something I'm doing wrong here?
>
>[I'm guessing you mean nameservice_register() above]
>
>Judging from the failed assertion (!_rpc->rpc_in_progress), I'm guessing that it might have something to do with using >multiple threads. What are the other threads doing? Can you reproduce the problem when using a single thread?
>
>cheers,
>Kornilios.
>
>--
>Kornilios Kourtis
>
>______________________________________________
>Barrelfish-users mailing list
>Barrelfish-users at lists.inf.ethz.ch<mailto:Barrelfish-users at lists.inf.ethz.ch>
>https://lists.inf.ethz.ch/mailman/listinfo/barrelfish-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.inf.ethz.ch/pipermail/barrelfish-users/attachments/20140107/a1a3aa33/attachment.html
More information about the Barrelfish-users
mailing list