Skip to content

Conversation

xrwang8
Copy link
Contributor

@xrwang8 xrwang8 commented Sep 22, 2025

Summary

  • stores the thread id in the dlsym recursion guard as pthread_t instead of int and compares via pthread_equal
  • adds the missing <pthread.h> include required for the new type

This removes the undefined behaviour where pthread_self() could be truncated on 64‑bit glibc systems, which previously allowed the recursion guard to misidentify threads and potentially skip or mis-
handle nested dlsym calls.

Copy link
Member

@archlitchi archlitchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@hami-robot
Copy link
Contributor

hami-robot bot commented Oct 10, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: archlitchi, xrwang8

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot hami-robot bot added the approved label Oct 10, 2025
@hami-robot hami-robot bot merged commit 950c62f into Project-HAMi:main Oct 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants