[DPDK] eal/linux: fix segfaults due to thread exit order
Morten Brørup
mb at smartsharesystems.com
Tue May 17 10:29:05 CEST 2022
> From: zhichaox.zeng at intel.com [mailto:zhichaox.zeng at intel.com]
> Sent: Tuesday, 17 May 2022 18.05
>
> From: Zhichao Zeng <zhichaox.zeng at intel.com>
>
> The eal-intr-thread is not closed before exiting the main
> thread. There is a small probability that when the
> eal-intr-thread is about to use some pointers, the pointers
> were just released in the process of exiting, which cause
> the segment fault error caught by ASan.
>
> Close the eal-intr-thread before exiting the mian thread
> to avoid segment fault.
>
> Signed-off-by: Zhichao Zeng <zhichaox.zeng at intel.com>
> ---
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list