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

http-api: T6069: fix allocation outside of thread lock #3089

Merged
merged 1 commit into from Mar 5, 2024

Conversation

jestabro
Copy link
Contributor

@jestabro jestabro commented Mar 5, 2024

Change Summary

This was a dumb regression that led to a segfault under concurrent configuration requests; it has a simple fix of moving the instantiation of Config (hence configtree allocation) under the thread lock.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

Proposed changes

How to test

Smoketest result

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@jestabro jestabro self-assigned this Mar 5, 2024
@vyosbot vyosbot requested a review from a team March 5, 2024 17:54
@vyosbot vyosbot requested review from dmbaturin, sarthurdev, zdc, sever-sever and c-po and removed request for a team March 5, 2024 17:54
@jestabro jestabro marked this pull request as draft March 5, 2024 18:13
@jestabro jestabro marked this pull request as ready for review March 5, 2024 18:27
@vyosbot vyosbot requested a review from a team March 5, 2024 18:27
@c-po
Copy link
Member

c-po commented Mar 5, 2024

Should this be backported to sagitta?

@jestabro
Copy link
Contributor Author

jestabro commented Mar 5, 2024

@Mergifyio backport sagitta

Copy link

mergify bot commented Mar 5, 2024

backport sagitta

🟠 Waiting for conditions to match

  • merged [📌 backport requirement]

@jestabro jestabro merged commit b7e12d3 into vyos:current Mar 5, 2024
10 checks passed
Copy link

mergify bot commented Mar 5, 2024

backport sagitta

✅ Backports have been created

c-po added a commit that referenced this pull request Mar 5, 2024
http-api: T6069: fix allocation outside of thread lock (backport #3089)
@jestabro jestabro deleted the allocate-under-lock branch March 22, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants