On Thu, 2025-12-04 at 22:31 +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 just removes this uneeded extra call
> 
> [0]
> https://github.com/urcu/userspace-rcu/commit/1cf55ba47342156cdf25335264b9774a16e0bb2d
> 

Thanks! This looks ok to me.

But this change you linked has been introduced in urcu 0.14.0, so we'll
need a patch that depends on the urcu version.

Martin

Reply via email to