On Mon, 2007-07-02 at 13:25 +0200, Johan Borkhuis wrote:
> Hello,
> 
> I am having some problems with an application switching to secondary 
> mode. One of my applications is switching to secondary mode when a 
> function is called in a library. This function itself is empty (only 
> returning 0).
> When I move this function out of the library into the main C-file the 
> program stays in primary mode. What could be happening here?
> 

Late binding to functions performed on behalf of the dynamic loader
against shared libraries shall need the kernel during symbol resolution
(internal syscalls) or execution (e.g. demand loading, COW), hence the
switch. Unfortunately, the I-pipe patch for PPC does not support
disabling all on-demand memory mappings for selected Linux tasks (only
the x86 and ARM patches support this feature so far).

> This is the output of a backtrace:
> ./dsAuxEvQueTest1[0x10001858]
> /lib/ld.so.1[0x3001eaf8]
> [0x0]
> ./dsAuxEvQueTest1[0x100018f0]
> ./dsAuxEvQueTest1[0x10005c9c]
> /lib/libpthread.so.0[0xffd32fc]
> /lib/libc.so.6(__clone+0x84)[0xfe751e8]
> 
> Do I need to use some specific compile or link commandline arguments?
> 
> My architecture is ppc, Xenomai version 2.3.1 and kernel 2.6.14.
> 
> Kind regards,
>     Johan Borkhuis
> 
> _______________________________________________
> Xenomai-help mailing list
> [email protected]
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.



_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to