problem with socket and task

Afshin Jamaali (Arian) afjarian at gmail.com
Tue Aug 13 17:42:18 UTC 2019


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-bounces at rtems.org] On Behalf Of mojtaba nadi
Sent: Tuesday, August 13, 2019 18:06
To: users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190813/611607bb/attachment-0002.html>


More information about the users mailing list