Skip to content

Update GitHub runners: ubuntu 24.04 → 26.04 - #260

Merged
mattip merged 1 commit into
python-cffi:mainfrom
DimitriPapadopoulos:ubuntu-26.04
Nov 18, 2026
Merged

mattip merged 1 commit into
python-cffi:mainfrom
DimitriPapadopoulos:ubuntu-26.04

Conversation

@DimitriPapadopoulos

@DimitriPapadopoulos DimitriPapadopoulos commented Jul 19, 2026 •

Copy link
Copy Markdown
Contributor

Need to find a workaround for this error:

FATAL: ThreadSanitizer: encountered an incompatible memory layout but was unable to disable ASLR (perhaps sandboxing is enabled?).
FATAL: Please rerun with lower ASLR entropy, ASLR disabled, and/or sandboxing disabled.

TSan needs to map its shadow memory at fixed addresses. Newer Ubuntu kernels raised vm.mmap_rnd_bits to 32. With that much ASLR entropy the mmap region can collide with TSan’s reserved ranges. TSan tries to re-exec itself with ASLR disabled:

Docker’s default seccomp profile appears to be blocking the personality(ADDR_NO_RANDOMIZE) call TSan uses to re-exec itself without ASLR. Relax security options so that TSan is able to re-exec itself with ASLR disabled.

@DimitriPapadopoulos
DimitriPapadopoulos force-pushed the ubuntu-26.04 branch 5 times, most recently from bfe640d to 22fb865 Compare November 17, 2026 23:12
@DimitriPapadopoulos
DimitriPapadopoulos marked this pull request as ready for review November 17, 2026 23:13
@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor Author

This DNS error seems unrelated:

  + curl -L -O https://github.com/libffi/libffi/archive/v3.4.6.tar.gz
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                   Dload  Upload   Total   Spent    Left  Speed
  
    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: github.com; Name or service not known

@mattip

mattip commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

I reran the job, curl is still failing. Why would upgrading the base image cause docker i686 to fail to use networking properly?

@mattip

mattip commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Weird, here is another 32-bit build that is failing to access the network https://github.com/MacPython/openblas-libs/actions/runs/44260741346/job/134653182700?pr=293#step:5:468

@DimitriPapadopoulos

Copy link
Copy Markdown
Contributor Author

So it's not necessarily related to the 24.04 → 26.04 upgrade, is it?

@mattip

mattip commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

well, the job passes on 24.04 and fails on 26.04, and the other one I pointed to also fails on 26.04, so I think the image is the problem.

@mattip

mattip commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Maybe related to this problem with docker image version uutils/coreutils#15955

@mattip

mattip commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Yes, it seems to be a known problem with the docker in the 26.04 images actions/runner-images#14790. Let's wait till that is resolved.

@DimitriPapadopoulos
DimitriPapadopoulos force-pushed the ubuntu-26.04 branch 3 times, most recently from f8be3bc to 76e4a94 Compare November 18, 2026 11:34
@DimitriPapadopoulos

DimitriPapadopoulos commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor Author

Indeed, the i686 image is probably oldish and must be using a system call that Docker blocks by default. Worked around it.

TSan needs to map its shadow memory at fixed addresses. Newer
Ubuntu kernels raised `vm.mmap_rnd_bits` to 32. With that much
ASLR entropy the mmap region can collide with TSan’s reserved
ranges.

TSan tries to re-exec itself with ASLR disabled:
	llvm/llvm-project#78351

Docker’s default seccomp profile appears to be blocking the
personality(ADDR_NO_RANDOMIZE) call TSan uses to re-exec itself
without ASLR. Relax security options so that TSan is able to
re-exec itself.

Similarly, Docker’s default seccomp profile is blocking a syscall
the old 32-bit glibc resolver uses. Relax security options so that
DNS resolution works on the obsolete i686 image.
@mattip
mattip merged commit aa7584b into python-cffi:main Nov 18, 2026
38 checks passed
@mattip

mattip commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Thanks @DimitriPapadopoulos

@DimitriPapadopoulos
DimitriPapadopoulos deleted the ubuntu-26.04 branch November 18, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants