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

fix(rln-relay): segfault when no params except rln-relay is passed in #2047

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Sep 19, 2023

Description

When no other params except --rln-relay is provided to wakunode2, it segfaults.
This is due to the static group manager unwrapping the membership index without checking if it was set.
This PR fixes that and errors out appropriately.

Changes

  • Errors out when membership index is not set

How to test

  1. Build wakunode2 make -j12 wakunode2
  2. Run ./build/wakunode2 --rln-relay=true
  3. You should not see a segfault, but rather an error message asking to set the membership index.

Issue

closes #2039

@rymnc rymnc self-assigned this Sep 19, 2023
@rymnc rymnc requested review from alrevuelta and vpavlin September 19, 2023 09:20
@github-actions
Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2047

Built from 0d306f4

@rymnc rymnc merged commit 45fe2d3 into master Sep 25, 2023
16 checks passed
@rymnc rymnc deleted the fix-segfault branch September 25, 2023 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: mounting rln relay "Can't obtain a value from a none [UnpackDefect]"
4 participants