[dpdk-dev] [PATCH] log: Properly reset log_history_size in rte_log_dump_history()

2015-06-01 Thread Jan Blunck
On Mon, Jun 1, 2015 at 10:31 AM, Olivier MATZ wrote: > Hi Jan, > > On 05/29/2015 12:34 PM, Jan Blunck wrote: > > In rte_log_dump_history() the log_history list is reinitialized without > > resetting the log_history_size. In the next call to > rte_log_add_in_history() > > the log_history_size >

[dpdk-dev] [PATCH] log: Properly reset log_history_size in rte_log_dump_history()

2015-06-01 Thread Olivier MATZ
Hi Jan, On 05/29/2015 12:34 PM, Jan Blunck wrote: > In rte_log_dump_history() the log_history list is reinitialized without > resetting the log_history_size. In the next call to rte_log_add_in_history() > the log_history_size > RTE_LOG_HISTORY and the code unconditionally tries > to remove the

[dpdk-dev] [PATCH] log: Properly reset log_history_size in rte_log_dump_history()

2015-05-29 Thread Jan Blunck
In rte_log_dump_history() the log_history list is reinitialized without resetting the log_history_size. In the next call to rte_log_add_in_history() the log_history_size > RTE_LOG_HISTORY and the code unconditionally tries to remove the first entry: Program received signal SIGSEGV, Segmentation