RE: [PATCH v6] lib/eal: fix segfaults in exiting

2022-10-18 Thread Zeng, ZhichaoX
ns? BR Zhichao > -Original Message- > From: Stephen Hemminger > Sent: Tuesday, October 11, 2022 10:04 PM > To: Zeng, ZhichaoX > Cc: dev@dpdk.org; sta...@dpdk.org; Zhou, YidingX > ; Richardson, Bruce > ; Harman Kalra > Subject: Re: [PATCH v6] lib/eal: fix segfaults in exiting

Re: [PATCH v6] lib/eal: fix segfaults in exiting

2022-10-11 Thread Stephen Hemminger
On Tue, 11 Oct 2022 13:25:14 +0800 Zhichao Zeng wrote: > This patch closes the 'eal-intr-thread' before memory cleanup in > 'rte_eal_cleanup' to avoid segfaults, and adds a flag to avoid executing > 'rte_eal_cleanup' in the child process which is forked to execute some > test cases(e.g. debug_aut

[PATCH v6] lib/eal: fix segfaults in exiting

2022-10-10 Thread Zhichao Zeng
The 'eal-intr-thread' is not closed before memory cleanup in the process of exiting. There is a small chance when 'eal-intr-thread' use some pointers, meanwhile the memory was just cleaned, which causes segfaults. This patch closes the 'eal-intr-thread' before memory cleanup in 'rte_eal_cleanup' t