Skip to content

Revisit maximum .gopclntab section size #352

@christos68k

Description

@christos68k

We ran into this issue in production:

time="2025-02-12T17:02:31.825021378Z" level=error msg="Failed to handle mapping for PID 353399,
 file /usr/local/bin/provider: failed to extract interval data: failed to extract stack deltas
 from /usr/local/bin/provider: failure to parse golang stack deltas: failed to load .gopclntab
 section: section size 144395608 is too large"

where /usr/local/bin/provider is a Go binary from xpkg.upbound.io/upbound/provider-aws-autoscaling:v0.47.4 with .gopclntab exceeding maxBytesGoPclntab

$ size -Ad provider
provider  :
section                 size        addr
<SNIP>
.gopclntab         144395608   320681888

We can increase the limit further (e.g. 256MB?) to support binaries such as these.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions