Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on 32-bit builds when using memory_ballast extension #6443

Closed
perher opened this issue Oct 29, 2022 · 0 comments · Fixed by #6444
Closed

Crash on 32-bit builds when using memory_ballast extension #6443

perher opened this issue Oct 29, 2022 · 0 comments · Fixed by #6444
Labels
area:extension bug Something isn't working

Comments

@perher
Copy link
Contributor

perher commented Oct 29, 2022

Describe the bug
Starting the collector with a 32-bit build using the memory_ballast extension without any ballast size specified causes a crash during startup.

Steps to reproduce
Start collector

./bin/otelcorecol_linux_386 --config examples/local/otel-config.yaml

What did you expect to see?
Collector to start correctly

What did you see instead?

Error: failed to start extensions: strconv.Atoi: parsing "9223372036854771712": value out of range; failed to shutdown service after error: failed to shutdown pipelines: no existing monitoring routine is running; no existing monitoring routine is running

What version did you use?
latest main branch
linux_386 build

What config did you use?

extensions:
  memory_ballast: {}
  zpages:
    endpoint: 0.0.0.0:55679

receivers:
  otlp:
    protocols:
      grpc:
      http:

processors:
  batch:
  memory_limiter:
    # 75% of maximum memory up to 4G
    limit_mib: 1536
    # 25% of limit up to 2G
    spike_limit_mib: 512
    check_interval: 5s

exporters:
  logging:
    loglevel: debug

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [logging]
    metrics:
      receivers: [otlp]
      processors: [memory_limiter, batch]
      exporters: [logging]

  extensions: [memory_ballast, zpages]

Environment
Ubuntu 22.04 + with CGroup V1 (explicitly enabled)

Additional context
Starting the memory_ballast extension with setting explicit size works fine

memory_ballast:
  size_mib: 512
@perher perher added the bug Something isn't working label Oct 29, 2022
perher added a commit to perher/opentelemetry-collector that referenced this issue Oct 29, 2022
perher added a commit to perher/opentelemetry-collector that referenced this issue Oct 30, 2022
@mx-psi mx-psi linked a pull request Oct 31, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:extension bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants