Re: Segfault in rcu

2025-03-03 Thread Andre Muezerie
On Sat, Mar 01, 2025 at 10:35:48PM +0300, Dmitry Kozlyuk wrote: > Hi Andre, > > > @@ -386,7 +386,7 @@ rte_rcu_qsbr_dq_reclaim(struct rte_rcu_qsbr_dq *dq, > > unsigned int n, > > > > cnt = 0; > > > > -char data[dq->esize]; > > +char *data = alloca(dq->esize); > > /* Check reader

Re: Segfault in rcu

2025-03-01 Thread Dmitry Kozlyuk
Hi Andre, > @@ -386,7 +386,7 @@ rte_rcu_qsbr_dq_reclaim(struct rte_rcu_qsbr_dq *dq, > unsigned int n, > > cnt = 0; > > -char data[dq->esize]; > +char *data = alloca(dq->esize); > /* Check reader threads quiescent state and reclaim resources */ > while (cnt < n && >

Segfault in rcu

2025-02-28 Thread Andre Muezerie
Hi, Are there known issues with rcu lib? I tried to remove the VLA from it by calling alloca() and gcc 14.2 on Linux immediately complains about "array subscript outside array bounds". $ ninja -C build ninja: Entering directory `build' [1/144] Compiling C object lib/librte_rcu.a.p/rcu_rte_rcu_qs