Skip to content

Python/marshal.c:634: void w_resolve_refs(WFILE *): Assertion '*ptr == TYPE_REF' failed on RISC-V 64-bit Ubuntu Clang 3.x #163067

Backlog

Description

@vstinner

Bug report

Two days ago (Dec 1, 2026) on RISC-V 64-bit Ubuntu Clang 3.x: https://buildbot.python.org/#/builders/2255/builds/865

Logs of the pythoninfo step:

Checked 116 modules (37 built-in, 77 shared, 1 n/a on linux-riscv64, 0 disabled, 1 missing, 0 failed on import)
./python -E ./Tools/build/generate-build-details.py \
	--relative-paths --installed-location \
	`cat pybuilddir.txt`/build-details.json
./python -m test.pythoninfo

python: Python/marshal.c:634: void w_resolve_refs(WFILE *): Assertion `*ptr == TYPE_REF' failed.
Aborted (core dumped)
make: *** [Makefile:2574: pythoninfo] Error 134

Python built with ./configure --prefix '$(PWD)/target' CC=clang LD=clang --with-pydebug with clang -Og.

test.pythoninfo of the previous build:

CC.version: [clang] Ubuntu clang version 18.1.3 (1)
CXX.version: [/usr/bin/clang++] Ubuntu clang version 18.1.3 (1)

os.uname: os.uname_result(sysname='Linux', nodename='rise-cpython-2', release='5.10.113-scw1', version='#1 SMP PREEMPT Fri Jul 12 15:31:22 UTC 2024', machine='riscv64')

platform.architecture: 64bit
platform.freedesktop_os_release[ID]: ubuntu
platform.freedesktop_os_release[NAME]: Ubuntu
platform.freedesktop_os_release[VERSION]: 24.04 LTS (Noble Numbat)
platform.freedesktop_os_release[VERSION_CODENAME]: noble
platform.freedesktop_os_release[VERSION_ID]: 24.04
platform.libc_ver: glibc 2.39
platform.platform: Linux-5.10.113-scw1-riscv64-with-glibc2.39

system.boot_id: 9ea572f9-e4f1-4c41-90cf-f467c3b2f9b4
system.machine_id: 7d3ba56b03be43c08b396a4bc79dda39
system.uptime: 133 days, 13:13:28

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Activity

  1. added
    type-bug
    on Dec 3, 2026
  2. added
    interpreter-core
    on Dec 3, 2026
  3. vstinner commented on Dec 3, 2026

    @vstinner
    MemberAuthor

    @serhiy-storchaka wrote:

    It looks like an intermittent bug was introduced earlier. Probably in #129724.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-risc-vinterpreter-coretype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions