Skip to content

code runs as expected but kernel shows "no enough memory for the allocation" #4151

Open
@laurento

Description

@laurento

I compiled my small tool using tinygo because I'm targeting a Raspberry Pi first generation with 256MB of RAM, so every byte counts :) It works just fine. However I just noticed that it generates the following kernel error every time it runs.

[33719.335172] __vm_enough_memory: pid: 7816, comm: mystuff, no enough memory for the allocation

If I compile it using GOOS=linux GOARCH=arm GOARM=6 tinygo build mystuff.go. If I run the same code but compiled it using go the kernel doesn't seem to complain.

For my tests I'm using:

Linux raspi 6.1.0-17-rpi #1 Debian 6.1.69-1 (2023-12-30) armv6l GNU/Linux
tinygo version 0.30.0 linux/amd64 (using go version go1.21.7 and LLVM version 16.0.1)

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