problem with socket and task

mojtaba nadi mojtabanadi1376 at gmail.com
Wed Aug 14 04:03:02 UTC 2019


hi afshin
 tanks for your answer but we tried many different stack-size and different
mode of making task but it didn't work.

On Tue, Aug 13, 2019 at 10:12 PM Afshin Jamaali (Arian) <afjarian at gmail.com>
wrote:

> 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/20190814/e405c9a6/attachment-0002.html>


More information about the users mailing list