Hallo  Xenomai Experts,
We used Xenomai to quickly port our VxWorks code to Linux. Changes that we need 
to do for successful compilation and linking were minimal because of 
Xenomai.Most of our tasks spawned are running with help of Xenomai on Linux 
2.6.37.

Once we had problem of task being crashed(Thread Segfault) with one of our 
tasks spawned by a process and after two weeks of debugging and re-verifying 
every thing found that "stacksize parameter" in the  taskSpawn  function that 
was normally running in VxWorks was not enough in the Xenomai Linux 
environment.  After increasint the stack size segmentation fault of taskSpawn 
was solved.

Now again I see SIGABORT in another task. I increase the stack size from 32k to 
8MB but still crashes. I am thinking now here in this case increasing stacksize 
value is not right.  Do you have any hints for such problem ?

Thanks in advance.
Samba.



(gdb) where
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x4b0a1df0 in raise () from /lib/libc.so.6
#2  0x4b0a3701 in abort () from /lib/libc.so.6
#3  0x4b0da3ab in __libc_message () from /lib/libc.so.6
#4  0x4b0e33fd in _int_malloc () from /lib/libc.so.6
#5  0x4b0e4cca in calloc () from /lib/libc.so.6
#6  0x4b06af0a in _dl_allocate_tls () from /lib/ld-linux.so.2
#7  0x4b1e0f5d in pthread_create@@GLIBC_2.1<mailto:pthread_create@@GLIBC_2.1> 
() from /lib/libpthread.so.0
#8  0xb79ae4d2 in __real_pthread_create () from /usr/xenomai/lib/libvxworks.so.1
#9  0xb79ad338 in taskInit () from /usr/xenomai/lib/libvxworks.so.1
#10 0xb79ad49e in taskSpawn () from /usr/xenomai/lib/libvxworks.so.1
#11 0xb7ff3ccb in create_forth_task (entry=0xb4902098, priority=143, 
special_stack_size=0) at tesarm.c:1774
#12 0xb7ff58d7 in load_interpreter (toffset=1, filetab_index=0 '\000', single=0 
'\000') at tesarm.c:851
#13 0xb7ff5bdf in reply_from_file_loader (msg_ptr=0xb44fcf14) at tesarm.c:1400
#14 0xb7ff3465 in handle_ta_request () at tesataLnx.c:126
#15 test_admin_task () at tesataLnx.c:400
#16 0xb79accbe in wind_task_trampoline () from /usr/xenomai/lib/libvxworks.so.1
#17 0x4b1e0832 in start_thread () from /lib/libpthread.so.0
#18 0x4b14b45e in clone () from /lib/libc.so.6

Sambasiva Rao Manchili
Software Development Engineer
________________________________

NEXUS TELECOM AG
Network and Service Investigation
Feldbachstrasse 80
8634 Hombrechtikon
Switzerland

Direct/mobile: +41 78 750 6808
Main: +41 44 355 6611
Email: [email protected] 
<mailto:[email protected]>
Website: www.nexustelecom.com<http://www.nexustelecom.com/>

  [cid:335065507@19072011-1CA1]


________________________________
This email and any attachment may contain confidential information which is 
intended for use only by the addressee(s) named above. If you received this 
email by mistake, please notify the sender immediately, and delete the email 
from your system. You are prohibited from copying, disseminating or otherwise 
using the email or any attachment.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to