Skip to content

Sage silently resets SAGE_NUM_THREADS environment variable #40889

@maxale

Description

@maxale

Steps To Reproduce

Run Sage from shell via

SAGE_NUM_THREADS=8 /usr/local/sage/sage

and execute:

sage: import os
sage: os.environ["SAGE_NUM_THREADS"]
'1'

Expected Behavior

We should see value '8' that we set up.

Actual Behavior

Our value was overwritten with '1'.

Additional Information

The bug was introduced somewhere in between version 10.7.beta8 (which works as expected) and current 10.8.beta4.

Environment

  • OS: Ubuntu 24.04.3 LTS
  • Sage Version: 10.8.beta4

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions