* [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea
@ 2010-03-31 20:30 Robert Berger
2010-03-31 21:22 ` Robert Berger
2010-04-01 20:11 ` Gilles Chanteperdrix
0 siblings, 2 replies; 6+ messages in thread
From: Robert Berger @ 2010-03-31 20:30 UTC (permalink / raw)
To: xenomai
Hi,
I'm using a Kilauea board:
cat /proc/cpuinfo
processor : 0
cpu : 405EX
clock : 533.333333MHz
revision : 20.119 (pvr 1291 1477)
bogomips : 1066.66
timebase : 533333333
platform : PowerPC 40x Platform
model : amcc,kilauea
Memory : 256 MB
The kernel is:
git clone git://git.denx.de/linux-2.6-denx.git
git checkout v2.6.33 -b v2.6.33_local
The adeos patch is:
wget
http://download.gna.org/adeos/patches/v2.6/powerpc/adeos-ipipe-2.6.33-powerpc-2.9-00.patch
xenomai is the latest and greatest:
git clone git://xenomai.org/xenomai-head
in the kernel dir:
make ARCH=powerpc CROSS_COMPILE=ppc_4xx- mrproper
make ARCH=powerpc CROSS_COMPILE=ppc_4xx- 40x/kilauea_defconfig
I'm patching the kernel:
export ADEOS_PATCH=adeos-ipipe-2.6.33-powerpc-2.9-00.patch
cd xenomai-head
./scripts/prepare-kernel.sh
--linux=$ELDK_PREFIX/eldk-4.2-ppc_4xx/usr/src/$KERNEL_DIR/ --arch=powe
rpc --adeos=../$ADEOS_PATCH
in the kernel dir:
make ARCH=powerpc CROSS_COMPILE=ppc_4xx- menuconfig
make ARCH=powerpc CROSS_COMPILE=ppc_4xx- uImage
EXTRAVERSION=$EXTRA_VERSION_INFO
make ARCH=powerpc CROSS_COMPILE=ppc_4xx- modules
EXTRAVERSION=$EXTRA_VERSION_INFO
make ARCH=powerpc CROSS_COMPILE=ppc_4xx-
INSTALL_MOD_PATH=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx mo
dules_install
Build xenomai user-space support:
cd $ELDK_PREFIX/eldk-4.2-ppc_4xx/usr/src/xenomai-head
source $ELDK_PREFIX/eldk-4.2-ppc_4xx/eldk_init ppc_4xx
./configure --host=powerpc-linux --prefix=/usr/local/xenomai-head
make ARCH=powerpc CROSS_COMPILE=ppc_4xx-
make DESTDIR=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx install
on the target:
cd /usr/local/xenomai-head/bin
./cyclictest -t2
Segmentation fault
./cyclictest -t3
Segmentation fault
./cyclictest -t4
Segmentation fault
only
./cyclictest -t1 does not give Segmentation fault
Please advise.
Regards,
Robert
--
Robert Berger
Embedded Software Specialist
Reliable Embedded Systems
Consulting Training Engineering
Tel.: (+30) 697 593 3428
Fax.:(+30) 210 684 7881
email: robert.berger@domain.hid
URL: http://www.reliableembeddedsystems.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea
2010-03-31 20:30 [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea Robert Berger
@ 2010-03-31 21:22 ` Robert Berger
2010-03-31 23:12 ` Wolfgang Denk
2010-04-01 20:11 ` Gilles Chanteperdrix
1 sibling, 1 reply; 6+ messages in thread
From: Robert Berger @ 2010-03-31 21:22 UTC (permalink / raw)
To: xenomai
Gilles,
ulimit -s
8192
gdb output:
gdb cyclictest core.1132
GNU gdb Red Hat Linux (6.7-1rh)
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "ppc-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/local/xenomai-head/lib/libpthread_rt.so.1...done.
Loaded symbols for /usr/local/xenomai-head/lib/libpthread_rt.so.1
Reading symbols from /usr/local/xenomai-head/lib/libxenomai.so.0...done.
Loaded symbols for /usr/local/xenomai-head/lib/libxenomai.so.0
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/librt.so.1...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld.so.1...done.
Loaded symbols for /lib/ld.so.1
Core was generated by `./cyclictest -t3'.
Program terminated with signal 11, Segmentation fault.
#0 0x0ff4e37c in xeno_fault_stack ()
from /usr/local/xenomai-head/lib/libxenomai.so.0
(gdb) quit
Do you want me to build something like the libxenomai.so.0 with more
debug info?
If so, please tell me what exactly you want and how to enable debug.
Regards,
Robert
Robert Berger wrote:
> Hi,
>
> I'm using a Kilauea board:
>
> cat /proc/cpuinfo
> processor : 0
> cpu : 405EX
> clock : 533.333333MHz
> revision : 20.119 (pvr 1291 1477)
> bogomips : 1066.66
> timebase : 533333333
> platform : PowerPC 40x Platform
> model : amcc,kilauea
> Memory : 256 MB
>
>
> The kernel is:
>
> git clone git://git.denx.de/linux-2.6-denx.git
> git checkout v2.6.33 -b v2.6.33_local
>
> The adeos patch is:
>
> wget
> http://download.gna.org/adeos/patches/v2.6/powerpc/adeos-ipipe-2.6.33-powerpc-2.9-00.patch
>
> xenomai is the latest and greatest:
>
> git clone git://xenomai.org/xenomai-head
>
> in the kernel dir:
>
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx- mrproper
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx- 40x/kilauea_defconfig
>
> I'm patching the kernel:
>
> export ADEOS_PATCH=adeos-ipipe-2.6.33-powerpc-2.9-00.patch
>
> cd xenomai-head
>
> ./scripts/prepare-kernel.sh
> --linux=$ELDK_PREFIX/eldk-4.2-ppc_4xx/usr/src/$KERNEL_DIR/ --arch=powe
> rpc --adeos=../$ADEOS_PATCH
>
> in the kernel dir:
>
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx- menuconfig
>
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx- uImage
> EXTRAVERSION=$EXTRA_VERSION_INFO
>
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx- modules
> EXTRAVERSION=$EXTRA_VERSION_INFO
>
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx-
> INSTALL_MOD_PATH=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx mo
> dules_install
>
> Build xenomai user-space support:
>
> cd $ELDK_PREFIX/eldk-4.2-ppc_4xx/usr/src/xenomai-head
>
> source $ELDK_PREFIX/eldk-4.2-ppc_4xx/eldk_init ppc_4xx
>
> ./configure --host=powerpc-linux --prefix=/usr/local/xenomai-head
>
> make ARCH=powerpc CROSS_COMPILE=ppc_4xx-
>
> make DESTDIR=$ELDK_PREFIX/eldk-4.2-ppc_4xx/ppc_4xx install
>
> on the target:
>
> cd /usr/local/xenomai-head/bin
>
> ./cyclictest -t2
> Segmentation fault
>
> ./cyclictest -t3
> Segmentation fault
>
> ./cyclictest -t4
> Segmentation fault
>
> only
>
> ./cyclictest -t1 does not give Segmentation fault
>
> Please advise.
>
> Regards,
>
> Robert
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea
2010-03-31 21:22 ` Robert Berger
@ 2010-03-31 23:12 ` Wolfgang Denk
2010-04-01 4:26 ` Robert Berger
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2010-03-31 23:12 UTC (permalink / raw)
To: Robert Berger; +Cc: xenomai
Dear Robert,
In message <4BB3BCF9.9080809@domain.hid> you wrote:
>
> ulimit -s
> 8192
And what happens when you start cyclictest after running
"ulimit -s unlimited" ?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@domain.hid
All he had was nothing, but that was something, and now it had been
taken away. - Terry Pratchett, _Sourcery_
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea
2010-03-31 23:12 ` Wolfgang Denk
@ 2010-04-01 4:26 ` Robert Berger
0 siblings, 0 replies; 6+ messages in thread
From: Robert Berger @ 2010-04-01 4:26 UTC (permalink / raw)
To: xenomai
Hi Wolfgang,
Wolfgang Denk wrote:
> Dear Robert,
>
> In message <4BB3BCF9.9080809@domain.hid> you wrote:
>> ulimit -s
>> 8192
>
> And what happens when you start cyclictest after running
> "ulimit -s unlimited" ?
ulimit -s unlimited
-bash-3.2# ./cyclictest -t3
Segmentation fault
We are still dying somewhere here:
Program terminated with signal 11, Segmentation fault.
#0 0x0ff4e37c in xeno_fault_stack ()
from /usr/local/xenomai-head/lib/libxenomai.so.0
(gdb)
Regards,
Robert
>
> Best regards,
>
> Wolfgang Denk
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea
2010-03-31 20:30 [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea Robert Berger
2010-03-31 21:22 ` Robert Berger
@ 2010-04-01 20:11 ` Gilles Chanteperdrix
2010-04-10 19:43 ` Robert Berger
1 sibling, 1 reply; 6+ messages in thread
From: Gilles Chanteperdrix @ 2010-04-01 20:11 UTC (permalink / raw)
To: Robert Berger; +Cc: xenomai
Robert Berger wrote:
> ./cyclictest -t2
> Segmentation fault
This issue is fixed by commit 428aa42410efe575f7bb9729447e6dc49159ef5e
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=428aa42410efe575f7bb9729447e6dc49159ef5e
--
Gilles.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea
2010-04-01 20:11 ` Gilles Chanteperdrix
@ 2010-04-10 19:43 ` Robert Berger
0 siblings, 0 replies; 6+ messages in thread
From: Robert Berger @ 2010-04-10 19:43 UTC (permalink / raw)
To: xenomai
Gilles Chanteperdrix wrote:
> Robert Berger wrote:
>> ./cyclictest -t2
>> Segmentation fault
>
> This issue is fixed by commit 428aa42410efe575f7bb9729447e6dc49159ef5e
> http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=428aa42410efe575f7bb9729447e6dc49159ef5e
>
Confirmed!
What's currently under git in combination with a 2.6.33 tag from the
DENX tree works now on the kilauea board.
Regards,
Robert
--
Robert Berger
Embedded Software Specialist
Reliable Embedded Systems
Consulting Training Engineering
Tel.: (+30) 697 593 3428
Fax.:(+30) 210 684 7881
email: robert.berger@domain.hid
URL: http://www.reliableembeddedsystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
...The nice thing about standards is that there are so many of them to
choose from - Andrew S. Tanenbaum
My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-04-10 19:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-31 20:30 [Xenomai-help] cyclictest -tn where n!=1 causes segfault with Kilauea Robert Berger
2010-03-31 21:22 ` Robert Berger
2010-03-31 23:12 ` Wolfgang Denk
2010-04-01 4:26 ` Robert Berger
2010-04-01 20:11 ` Gilles Chanteperdrix
2010-04-10 19:43 ` Robert Berger
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.