Hi Mojtaba,
You have created task1 with RTEMS_MINIMUM_STACK_SIZE. Are you sure this amount of stack is enough? Maybe when recvfrom() receives data and writes into the recv_buf[] array, it corrupts the stack. Maybe it is not so, not sure. Best Regards, Afshin From: users [mailto:users-boun...@rtems.org] On Behalf Of mojtaba nadi Sent: Tuesday, August 13, 2019 18:06 To: users@rtems.org Subject: problem with socket and task hello We have written an application which creates 3 tasks. in the first task (task_task1()) we want to receive some data using a UDP socket. using the file 1.c the socket will be created and bind successfully. But after adding recvfrom() (file 2.c line 79) rtems will crash. The output error messages are in error.txt. We are using rtems-libbsd package and the tasks without the socket in the first one ran without any error. I wonder if any body could help us to solve this problem. regards, Mojtaba
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users