你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

lwip 出现错误: recvmbox must be deallocated before calling this function ?

[复制链接]
hpdell 提问时间:2020-5-3 08:10 /
lwip-connect-err.png

现象说明:

在 服务器端 与 开发板之间连接成功后, 就不会出现 任何错误,工作也都正常
    当 服务器端断开连接后,大概 5-10s 左右就会出现  错误, 另外还会提示
Assertion "recvmbox must be deallocated before calling this function" failed at line 803 in ..\Middlewares\Third_Party\LwIP\src\api\api_msg.c
Assertion "acceptmbox must be deallocated before calling this function" failed at line 806 in ..\Middlewares\Third_Party\LwIP\src\api\api_msg.c


请问 上面的 问题该如何解决啊 ??

使用的是 embOS + Lwip 组合
收藏 评论1 发布时间:2020-5-3 08:10

举报

1个回答
butterflyspring 回答时间:2020-5-25 17:36:52
根据协议栈的函数,调试一下,看看有没有free  mbox

void
netconn_free(struct netconn *conn)
{
  LWIP_ASSERT("CB must be deallocated outside this function", conn->pcb.tcp == NULL);

#if LWIP_NETCONN_FULLDUPLEX
  /* in fullduplex, netconn is drained here */
  netconn_drain(conn);
#endif /* LWIP_NETCONN_FULLDUPLEX */

  LWIP_ASSERT("recvmbox must be deallocated before calling this function",
              !sys_mbox_valid(&conn->recvmbox));
#if LWIP_TCP
  LWIP_ASSERT("acceptmbox must be deallocated before calling this function",
              !sys_mbox_valid(&conn->acceptmbox));


所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新和工艺
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版