4.0.2 lwip 2.0.2 在pbuf_free出错

发布于 2019-12-30 12:36:08    浏览:567

问题:在pbuf_free(struct pbuf *p)中断言出错

/* all pbufs in a chain are referenced at least once */
    LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);

设置:开启IP Frag、未开启SAL,
Heap Begin:0x30000000,Heap End:0x34000000(开启MPU保护ETH DMA)

查看更多

3 个回答
bernard
bernard 2020-01-06
This guy hasn't written anything yet
这个需要有更多的信息的,

1. BSP,硬件是什么
2. 编译器是什么
3. 复现的代码是什么样的
4. 是否出现了内存越界,踩踏了 <开memtrace,然后在schedule hook中,做一次memcheck>
Jokeoo
Jokeoo 2020-01-06
This guy hasn't written anything yet
尴尬。。。一个星期了
wt151
wt151 2021-02-02
This guy hasn't written anything yet
pbuf_free: p->ref > 0
Assertion: 747 in ../rt-thread/components/net/lwip-2.0.2/src/core/pbuf.c, thread tcpip
(0) assertion failed at function:sys_arch_assert, line number:620

撰写答案

请登录后再发布答案,点击登录
关注者
1
被浏览
567

发布
问题

分享
好友

手机
浏览

扫码手机浏览