On Fri, 2025-12-05 at 09:28 +0100, Itxaka wrote:
> Currently it seems that urcu would already call pthread_join when
> calling call_rcu_data_free since a couple of years ago (since version
> v0.14.0)[0] so calling pthread_join on the just released one is
> problematic under musl systems. It seems like under glibc this has
> several checks in place before trying to dereference the thread but
> under musl it has nothing in place to validate so this causes a
> coredump
> on program shutdown.
> 
> This is currently present in all version when compiled under musl,
> running multipathd -d and sending a SIGTERM to it, you can see the
> coredump happening at this point in the code.
> 
> The patch runs only the old behaviour in urcu older than 0.14.0 to
> maintain the same bahaviour. In higher versions its not neccesary so
> we
> skip it.
> 
> [0]
> https://github.com/urcu/userspace-rcu/commit/1cf55ba47342156cdf25335264b9774a16e0bb2d
> 
> Signed-off-by: Itxaka <[email protected]>

Reviewed-by: Martin Wilck <[email protected]>

Reply via email to