> -----Original Message----- > From: Gilles Chanteperdrix [mailto:gilles.chanteperd...@xenomai.org] > Sent: Friday, July 20, 2012 11:38 AM > To: Bruce Director > Cc: xenomai@xenomai.org > Subject: Re: [Xenomai] Intel MKL library fault when running as a xenomai > task. > > On 07/20/2012 08:31 PM, Bruce Director wrote: > > Sorry, I don't have the code. Intel doesn't supply source code for > > this library. The reason I know the segmentation fault occurs in > > get_N_cores is that the debugger gives me a stack trace. If you could > > tell me which CPU parameters xenomai does change, I could pass that > > info to Intel and see what they say. > > Xenomai does not change anything, not that I know of. But there are a lot of > possible issues. > > First issue to check is to see if the segmentation fault is due to a stack > overflow. In which case the stack of the thread calling that function is too > small for that function, simply increase the thread stack size. You can also > check the disassembly of the faulting function to see how much room it > allocates on stack. > > Another reason for stack overflow could be linking with the libc in its static > version (libc.a), using xenomai posix skin, and not linking with the wrap- > link.sh script. > > Please no top-posting. > > -- > Gilles.
Increasing the stack size fixed the problem. rt_task_create() was called with 0 as the stack size. I increased it to 1MB. Thank you for the help, Bruce _______________________________________________ Xenomai mailing list Xenomai@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai