Skip to content

gccgo: Go compiled with gcc 8.3 does not start on powerpc-linux-musl #30538

@awilfox

Description

@awilfox

What version of Go are you using (go version)?

$ go version
fatal error: runtime: cannot reserve arena virtual address space
runtime: panic before malloc heap initialized`

Does this issue reproduce with the latest release?

Yes, this is 8.3.0:

gcc (Adelie 8.3.0) 8.3.0

What operating system and processor architecture are you using (go env)?

Adélie Linux 1.0-BETA3, on 32-bit PowerPC (musl libc, big endian)

What did you do?

Built GCC 8.3 with --enable-languages=c,c++,fortran,go.

What did you expect to see?

A working Go runtime.

What did you see instead?

awilcox on gwyn [pts/3 Sun 3 2:32] ~: go version
fatal error: runtime: cannot reserve arena virtual address space
runtime: panic before malloc heap initialized

runtime stack:

        :0
runtime.throw
        :0
runtime.schedinit
        :0

        :0
libc_start_main_stage2
        src/env/__libc_start_main.c:94

Notes

GCC 6.4 does not crash with that error, instead crashing further in:

fatal error: unexpected signal during runtime execution
[signal 0xb code=0x2 addr=0x20000426]

goroutine 16 [running]:

        :0

        :0

        :0

        :0

        :0

        :0

        :0

        :0

        :0
__go_init_main
        /home/awilcox/hello.go:1

        :0

        :0

        :0
created by main
        /usr/src/packages/system/gcc/src/gcc-6.4.0/libgo/runtime/go-main.c:54

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions