You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*When the waiting msg is generated by the application through signaling mechanisms,
only by using interruptible mode can the program be made runnable again*/
ret = rt_mb_recv_interruptible(*mbox, (rt_ubase_t *)msg, t); // 423
if(ret != RT_EOK)
{
return SYS_ARCH_TIMEOUT;
}
Test case
syz_thread_delay_ms()
long syz_thread_delay_ms(volatile int ms) {
if (ms <= 0) {
return -1;
}
rt_thread_mdelay((rt_int32_t)ms);
return 0;
}
RT-Thread Version
5.2.0 commit 2f55990
Hardware Type/Architectures
VEXPRESS_A9
Develop Toolchain
GCC
Describe the bug
Hi, i encountered an error in rt_thread_mdelay function.
Describe the bug
Incorrect message handling or mailbox state causes kernel stop in tcpip thread
Steps to reproduce
1.Build RT-Thread
2.Use the following command to start the kernel with QEMU:
3.Use the functions and parameters provided in the ’Test case‘ section for testing
Source code location
/root/rtthread/rt-thread/components/net/lwip/port/sys_arch.c : sys_arch_mbox_fetch : 423 :
Test case
syz_thread_delay_ms()
Backtrace upon hitting the bug
I would greatly appreciate it if you could kindly inform me of any mistakes in the previous issues.
Other additional context
No response
The text was updated successfully, but these errors were encountered: