<div dir="ltr">hi afshin<div> tanks for your answer but we tried many different stack-size and different mode of making task but it didn't work.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 13, 2019 at 10:12 PM Afshin Jamaali (Arian) <<a href="mailto:afjarian@gmail.com">afjarian@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_422697217918519999WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Hi Mojtaba,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">You have created task1 with </span><span style="font-size:10pt;font-family:"Courier New"">RTEMS_MINIMUM_STACK_SIZE</span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">. Are you sure this amount of stack is enough? Maybe when </span>recvfrom() <span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">receives data and writes into the </span><span style="font-size:10pt;font-family:"Courier New"">recv_buf[] </span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">array, it corrupts the stack. Maybe it is not so, not sure.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Best Regards,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">Afshin<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in"><p class="MsoNormal"><b><span style="font-size:10pt;font-family:Tahoma,sans-serif">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif"> users [mailto:<a href="mailto:users-bounces@rtems.org" target="_blank">users-bounces@rtems.org</a>] <b>On Behalf Of </b>mojtaba nadi<br><b>Sent:</b> Tuesday, August 13, 2019 18:06<br><b>To:</b> <a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br><b>Subject:</b> problem with socket and task<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><p class="MsoNormal">hello<u></u><u></u></p><div><p class="MsoNormal">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.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">regards,<u></u><u></u></p></div><div><p class="MsoNormal">Mojtaba<u></u><u></u></p></div></div></div></div></blockquote></div>