All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Segmentation fault
@ 2010-07-12  9:24 Oliver Clugnet
  2010-07-12  9:31 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 9+ messages in thread
From: Oliver Clugnet @ 2010-07-12  9:24 UTC (permalink / raw)
  To: xenomai

Hello,

I am trying to get the xenomai user-space programs to work on an x86 
embedded system with a uClibc Buildroot root filesystem.
I have patched a kernel, activated the Xenomai sub-system, and 
cross-compiled it with the Buildroot uClibc toolchain as well as the 
userspace programs. The system boots alright with the Xenomai nucleus 
and everything ("dmesg | grep Xenomai" shows that Xenomai is initialised).
But everytime I try to launch a program (cyclictest, clocktest, ...), I 
get a segmentation fault with a kernel error message such as: 
"clocktest[149] general protection ip:804cc22 sp:bfa29594 error:0 in 
clocktest[8048000+7000]".
A possibility I've been looking at is that maybe the programs try to 
access the High Memory, even though /proc/meminfo shows that there is 
none on this system ("HighTotal 0k"), thus the segmentation fault. I 
might add that the system has a 500Mb memory.
Could the High Memory be the problem? Is there a way of getting around it?
Or could the problem be elsewhere?

Regards,

Oliver Clugnet


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Xenomai-help] Segmentation Fault
@ 2009-03-03 18:55 Wayne Call
  2009-03-03 19:07 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 9+ messages in thread
From: Wayne Call @ 2009-03-03 18:55 UTC (permalink / raw)
  To: 'Xenomai-help@domain.hid'

[-- Attachment #1: Type: text/plain, Size: 1663 bytes --]

Hi,

When the Xenomai is built, there is a segmentation fault.  What are the
possible scenarios that would cause this error?  There is an "ld terminated
with signal 11" error associated with this fault. 

 

Making all in cyclic

make[3]: Entering directory
`/home/jordanelle/3Star/potomac/Software/magnolia/Kryptic/xenomai-2.3.1/src/
testsuite/cyclic'

/bin/sh ../../../libtool --tag=CC --mode=link bfin-linux-uclibc-gcc     -o
cyclictest
-Wl,@/home/jordanelle/3Star/potomac/Software/magnolia/Kryptic/xenomai-2.3.1/
src/skins/posix/posix.wrappers -D_GNU_SOURCE -D_REENTRANT -Wall -pipe
-mfdpic -mfdpic cyclictest-cyclictest.o ../../skins/posix/libpthread_rt.la
-lpthread -lrt

bfin-linux-uclibc-gcc -o .libs/cyclictest
-Wl,@/home/jordanelle/3Star/potomac/Software/magnolia/Kryptic/xenomai-2.3.1/
src/skins/posix/posix.wrappers -D_GNU_SOURCE -D_REENTRANT -Wall -pipe
-mfdpic -mfdpic cyclictest-cyclictest.o
../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,--rpath
-Wl,/usr/xenomai/lib

collect2: ld terminated with signal 11 [Segmentation fault]

/opt/uClinux/bfin-linux-uclibc/lib/gcc/bfin-linux-uclibc/4.1.1/../../../../b
fin-linux-uclibc/bin/ld: make[3]: *** [cyclictest] Error 1

make[3]: Leaving directory
`/home/jordanelle/3Star/potomac/Software/magnolia/Kryptic/xenomai-2.3.1/src/
testsuite/cyclic'

make[2]: *** [all-recursive] Error 1

make[2]: Leaving directory
`/home/jordanelle/3Star/potomac/Software/magnolia/Kryptic/xenomai-2.3.1/src/
testsuite'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory
`/home/jordanelle/3Star/potomac/Software/magnolia/Kryptic/xenomai-2.3.1/src'

make: *** [all-recursive] Error 1

 

Wayne

 


[-- Attachment #2: Type: text/html, Size: 3881 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [Xenomai-help] Segmentation Fault
@ 2008-09-26 13:10 Dehann Fourie
  2008-09-26 15:55 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 9+ messages in thread
From: Dehann Fourie @ 2008-09-26 13:10 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

Hi,

I'm having trouble with a segmentation fault in my real-time application.
The problem seems to occur when I use large amounts of memory. The
application works fine when I don't try to populate the large arrays.

I have tried changing parameters in the real time create call, but this
didn't work. The error message is:

Xenomai: Switching nav to secondary mode after exception #14 from user-space
at 0x804ad13 (pid 1938)
nav [1938]; segfault at 26756e50 eip 0804ad13 esp b762ac28 error 6
Segmentation fault

This is from text mode.

Thanks in advance
Dehann

[-- Attachment #2: Type: text/html, Size: 641 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-07-12  9:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12  9:24 [Xenomai-help] Segmentation fault Oliver Clugnet
2010-07-12  9:31 ` Gilles Chanteperdrix
     [not found]   ` <4C3AE2EE.9050701@domain.hid>
2010-07-12  9:46     ` Gilles Chanteperdrix
  -- strict thread matches above, loose matches on Subject: below --
2009-03-03 18:55 [Xenomai-help] Segmentation Fault Wayne Call
2009-03-03 19:07 ` Gilles Chanteperdrix
2008-09-26 13:10 Dehann Fourie
2008-09-26 15:55 ` Gilles Chanteperdrix
2008-09-30 20:26   ` Dehann Fourie
2008-10-04 20:10     ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.