On 2012-10-16 12:05, Michał Geszkiewicz wrote: > W dniu 16.10.2012 11:30, Jan Kiszka pisze: >> On 2012-10-16 10:40, Michał Geszkiewicz wrote: >>> Hello >>> >>> I'm adding rtnet support to linuxcnc. (kernel 2.6.38.8, rtai 3.9, rtnet >>> 0.9.13, linuxcnc 2.6.0) >>> rtnet is inited in init_module section (open, set timeout, connect) and >>> rest of transmition is done in rt task. >>> It's basically working but I can't get rid of one assertion: >>> >>> RTDM: assertion failed at >>> /home/toudi/realtime/rtai-3.9/addons/rtdm/../rtdm/rtdm_driver.h:574 >>> (CONTEXT_IS_LOCKED(context)) >>> >>> what I'm doing wrong? >> Hard to tell without a more precise trace of what is going on in your >> system. However, that assertion is not triggered by RTnet code but some >> other RTDM driver or some local patches of yours (there is no >> rtdm_context_lock in RTnet). >> >> Jan >> > There are no modifications in rtai or rtnet source code. This assertion > shows only after rt_dev_send/recv functions regardless of context > managing or not and if it's called from kernel context or rt context. > Linuxcnc is using single 1ms period rt task, and there is no context > managing in linuxcnc rt layer, so maybe this makes these assertions > along with rtnet layer.
Please provide a stack backtrace to the assertion (e.g. show_stack(NULL,NULL)). Maybe linuxcnc calls that RTDM service from somewhere (grep'ing for it may also be a good idea). And please do not drop the mailing list from CC. Jan
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________ RTnet-users mailing list RTnet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rtnet-users