Hello!

We are having trouble with "Illegal instruction" (illegal opcode) crashes 
(dumping core) of two different Xenomai programs on different computers, 
occuring approximately once every few days. Here are some perhaps relevant 
details...

Linux kernel version: 2.6.34
/proc/xenomai/version: 2.5.6
/opt/eldk/xenomai-2.5.6/bin/xeno-config --version: 2.5.6
CPU: MPC5200

First program
name: eclr
link command (expanded): /pecom/eldk4.2/usr/bin/ppc_6xx-g++ -o eclr.neu   
./app_eclr_pdd_support.o  ./DriverLib-cli.o  ./DriverLib.o  ./eclrEnvironment.o 
 ./eclrImageFile.o  ./eclr_main.o  ./ErrorLib.o  ./linuxfile.o  
./PecomLib_V1_3-cli.o  ./PecomLib_V1_3.o  ./ShmLib-cli.o  ./ShmLib.o  
./Standard_FB-cli.o  ./Standard_FB.o  ./threadimpl.o  ./userapp.o  ./ethcomm.o  
./ibusdrv.o  ./ipc.o  ./meld.o  ./ocm.o  ./proconcompat.o  ./rw_konfig.o  
./copy64.o -Wl,@/res4/Linux/eldk4.2/xenomai-2.5.6/lib/posix.wrappers 
-L/res4/Linux/eldk4.2/xenomai-2.5.6/lib -lpthread_rt -lxenomai -lpthread -lrt  
-lnative -L/res4/Linux/eldk4.2/xenomai-2.5.6/lib -lxenomai -lpthread -L. 
-leclrlib libxproc.a sub/loglib.so -Lsub -lpsosu -lxenou -lrtdk -lrtdm
gdb output (extract):
Core was generated by `eclr'.
Program terminated with signal 4, Illegal instruction.
#0  0x0ffef8ec in pthread_setcanceltype@plt () from 
/usr/lib/xenomai/libpthread_rt.so.1
(gdb) bt full
#0  0x0ffef8ec in pthread_setcanceltype@plt () from 
/usr/lib/xenomai/libpthread_rt.so.1
No symbol table info available.
#1  0x0ffa4700 in pthread_wait_np (overruns_r=0xbfe92924) at thread.c:326
        err = 0
        oldtype = 0
#2  0x10007000 in main ()
No symbol table info available.
(gdb) x/i $pc
=> 0xffef8ec <pthread_setcanceltype@plt>:       b       0xff1b868 
<pthread_setcanceltype>
(gdb) x/i 0xff1b868
   0xff1b868 <pthread_setcanceltype>:   cmplwi  cr7,r3,1

Second program
name: ibsyncer
link command (expanded): /opt/elinos/cdk/ppc/60x/glibc-2.3.2/bin/ppc_60x-gcc  
-idirafter sub -idirafter . -I../../phoenix_ddi/inc/usr 
-I/res4/Linux/eldk3.1.1/xenomai-2.5.6/include -D_GNU_SOURCE -D_REENTRANT -Wall 
-pipe -D__XENO__ -lnative -L/res4/Linux/eldk3.1.1/xenomai-2.5.6/lib -lxenomai 
-lpthread  ibsyncer.o -o ibsyncer.tmp sub/libpsosu.so -lnative -lrtdm
gdb output (extract):
Core was generated by `ibsyncer'.
Program terminated with signal 4, Illegal instruction.
#0  0x0ffefba8 in pthread_setcanceltype@plt () from 
/usr/lib/xenomai/libnative.so.3
(gdb) bt
#0  0x0ffefba8 in pthread_setcanceltype@plt () from 
/usr/lib/xenomai/libnative.so.3
#1  0x0ffadfdc in rt_task_sleep (delay=10000000) at task.c:322
#2  0x10002030 in copy (i=0x10000) at sub/ibsyncer.c:78
#3  0x0fface6c in rt_task_trampoline (cookie=0x1) at task.c:109
#4  0x0ff187d4 in ?? () from /lib/libpthread.so.0
#5  0x0fe20334 in clone () from /lib/libc.so.6
(gdb) x/i $pc
=> 0xffefba8 <pthread_setcanceltype@plt+4>:     b       0xffef9dc
(gdb) x/i 0xffef9dc
   0xffef9dc:   rlwinm  r12,r11,1,0,30
(gdb) x/i $pc-4
   0xffefba4 <pthread_setcanceltype@plt>:       b       0xff1f868 
<pthread_setcanceltype>
(gdb) x/i 0xff1f868
   0xff1f868 <pthread_setcanceltype>:   cmplwi  cr7,r3,1
(gdb) x/i 0x0ffadfdc-4
   0xffadfd8 <rt_task_sleep+228>:       bl      0xffefba4 
<pthread_setcanceltype@plt>

So, the two cases look somewhat similar: The "Illegal instruction" is reported 
around pthread_setcanceltype@plt; there are legal branch instructions there as 
well as at the branch target locations; pthread_setcanceltype@plt is called 
from timed wait functions (pthread_wait_np() and rt_task_sleep() resp.).

We would be grateful for suggestions how to analyze and cure the problem.
--
Best regards,
Dietmar Schindler
________________________________________
manroland web systems GmbH -- Managing Director: Eckhard Hoerner-Marass
Registered Office: Augsburg -- Trade Register: AG Augsburg -- HRB-No. 26816 -- 
VAT: DE281389840

Confidentiality note:
This eMail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient, you are hereby notified that any use or 
dissemination of this communication is strictly prohibited. If you have 
received this eMail in error, then please delete this eMail.

! Please consider your environmental responsibility before printing this eMail
________________________________________

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to