From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <465D383C.5040203@domain.hid> Date: Wed, 30 May 2007 10:39:24 +0200 MIME-Version: 1.0 References: <465D2BE1.1080302@domain.hid> <465D3053.2040002@domain.hid> In-Reply-To: <465D3053.2040002@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Rodolfo Bamberg Subject: Re: [Xenomai-help] [Newbie question]Segmentation fault with user-space binary List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org I tried to use latency and got this. Am I missing something within the Kernel? I didn't find an option for TSC. I use the 2.6.20.4 kernel /usr/bin $ latency Xenomai: incompatible feature set (required="sep tsc", present="sep", missing="tsc"). Jan Kiszka wrote: > Rodolfo Bamberg wrote: > >> Hi >> I get a segmentation fault when I run my user-space RT app (native skin). >> I did the following steps: >> - Cross-Compiled the Kernel with Xenomai support for an i386 target. >> - I Cross - Compiled Xenomai with uClibc: run ./configure using the >> --host=i386-linux-uclibc option, and using the new configure.in I read >> about in the uClibC discussion. >> - I wrote a test program that includes and >> . >> - I then got this segmentation faults and I reduced my program to not >> using xenomai and only printing something. I igured out that the >> "-lnative" lib directive in the makefile was causing the problem. >> > > Looks like the init code of libnative that is executed automatically on > program start is involved here. > > >> Do you know what might be the problem?? >> > > Could you attach gdb to your program and check where it segfaults > precisely? Also, does the same crash happens with "latency", the Xenomai > benchmark tool based on Native services? > > >> Thanks! >> >> Rodolfo Bamberg >> >> Here's my makefile: >> >> obj-m := hallo.o rt_process.o >> RTAI_INCLUDE_DIR >> > > That looks like legacy. ;) > > >> :=/home/rodolfo/kernel/linux-2.6.20-xenomai/include/xenomai >> XENOMAI_INCLUDE_DIR_USP >> :=/home/rodolfo/xenomai/xenomai-2.3.1/src/include >> XENOMAI_INCLUDE_DIR_USP2:=/home/rodolfo/xenomai/xenomai-2.3.1/include >> XENOMAI_INCLUDE_LIB_USP :=/tftpboot/192.168.0.2/usr/xenomai/lib >> >> >> default: >> >> i386-linux-uclibc-gcc -I$(XENOMAI_INCLUDE_DIR_USP) >> -I$(XENOMAI_INCLUDE_DIR_USP2) -lnative -L$(XENOMAI_INCLUDE_LIB_USP) -o >> rt_process_user rt_process_user.c >> chmod a+x rt_process_user >> >> clean: >> rm -f *.mod.c *.o *.ko rt_process >> >> >> > > Jan > >