Closed Bug 1754578 Opened 3 years ago Closed 3 years ago

Make the pthread_create() interposer work with glibc 2.34

Categories

(Toolkit :: Crash Reporting, task, P1)

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

Details

Attachments

(1 file)

Starting with glibc 2.34 the SIGSTKSZ macro is not a value anymore but calls sysconf(_SC_SIGSTKSZ) instead. This means that kSigStackSize needs to be initialized via a static initializer. However it appears that something is invoking pthread_create() before static initializers have run, so kSigStackSize is zero when entering the interposer and we fail to allocate the alternate signal stack. We should fix this to ensure the interposer is working as expected on distros that have already rolled out glibc 2.34.

Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Severity: -- → S2
Priority: -- → P1
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/432ac2ec3202 Make the pthread_create() interposer work on glibc 2.34+ r=jld
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: