Skip to content

runtime: random memory allocation errors on AIX #82006

Open

Description

@ayappanec

There are memory allocation errors seen randomly on AIX.

ok  	go/internal/gccgoimporter	1.010s
ok  	go/internal/gcimporter	9.552s
# internal/pkgbits_test
# [internal/pkgbits_test]
runtime: memory allocated by OS [0x0, 0x4000000) not in usable address space: base outside usable address space
fatal error: memory reservation exceeds address space limit

runtime stack:
runtime.throw({0x1003b5041?, 0x9001000a011b058?})
	./runtime/panic.go:1243 +0x34 fp=0xfffffffffffe718 sp=0xfffffffffffe6d8 pc=0x10008dea4
runtime.(*mheap).sysAlloc(0x11005b0e0, 0x9001000a00908c0?, 0x11006b328, 0x11006b350)
	./runtime/malloc.go:846 +0x6e0 fp=0xfffffffffffe7e0 sp=0xfffffffffffe718 pc=0x10001cc70
runtime.(*mheap).grow(0x11005b0e0, 0x9001000a01205d0?)
	./runtime/mheap.go:1565 +0xc0 fp=0xfffffffffffe890 sp=0xfffffffffffe7e0 pc=0x100041980
runtime.(*mheap).allocSpan(0x11005b0e0, 0x1, 0x0, 0x10)
	./runtime/mheap.go:1290 +0x1e4 fp=0xfffffffffffe948 sp=0xfffffffffffe890 pc=0x100040f94
runtime.(*mheap).alloc.func1()
	./runtime/mheap.go:1008 +0x88 fp=0xfffffffffffe9a0 sp=0xfffffffffffe948 pc=0x1000859b8
runtime.systemstack(0xfffffffffffe9f0)
	./runtime/asm_ppc64x.s:333 +0xa4 fp=0xfffffffffffe9c0 sp=0xfffffffffffe9a0 pc=0x1000926b4
ok  	go/internal/srcimporter	37.071s
ok  	go/parser	1.230s

Activity

  1. gopherbot commented on Oct 5, 2026

    @gopherbot
    Contributor

    Change https://go.dev/cl/844805 mentions this issue: runtime: account for arenaBaseOffset in randomized heap base on AIX

  2. dmitshur commented on Oct 5, 2026

    @dmitshur
    Member

    CC @golang/aix, @golang/runtime.

  3. added
    FixPendingIssues that have a fix which has not yet been reviewed or submitted.
    on Oct 5, 2026
  4. added this to the Go1.28 milestone on Oct 5, 2026
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

    FixPendingIssues that have a fix which has not yet been reviewed or submitted.OS-AIXcompiler/runtimeIssues related to the Go compiler and/or runtime.

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions