fix: Prevent segfault by correctly handling dbus restarts in mender-update and mender-auth#1880
Conversation
|
@michalkopczan, start a full client pipeline with:
my commands and optionsYou can prevent me from automatically starting CI pipelines:
You can trigger a client pipeline on multiple prs with:
You can trigger GitHub->GitLab branch sync with:
You can cherry pick to a given branch or branches with:
|
|
@mender-test-bot start client pipeline |
|
Hello 😺 I created a pipeline for you here: Pipeline-2267035160 Build Configuration Matrix
|
b7f17ee to
ebfee33
Compare
vpodzime
left a comment
There was a problem hiding this comment.
Just one last nitpick. Thanks!
| if (err != error::NoError) { | ||
| log::Error("Error when trying to poll for deployment: " + err.String()); | ||
| // If we're here, no handler will be called, so we need to manually schedule the next | ||
| // deployment poll |
There was a problem hiding this comment.
Thanks for adding this comment. However, could you please extend it a bit? It's hard to follow why/how doing poster.PostEvent(StateEvent::Failure); from PollForDeploymentState doesn't result in scheduling a next deployment poll. I can see it in the code, but it would be nice to save future me and others from (re-)doing that digging. 😅
There was a problem hiding this comment.
Sure, makes sense! Added.
ebfee33 to
cfdde28
Compare
|
@mender-test-bot start client pipeline |
|
Hello 😺 I created a pipeline for you here: Pipeline-2278522358 Build Configuration Matrix
|
…pdate and mender-auth Ticket: MEN-9144 Changelog: Prevent segfault by correctly handling dbus restarts in mender-update and mender-auth. Previously when systemctl stop dbus.socket or systemctl stop dbus was called, it resulted in mender-update segfault. Signed-off-by: Michal Kopczan <michal.kopczan@northern.tech>
…g no handler to be called Ticket: MEN-9144 Changelog: Fix a hang when polling for deployment failed early causing no handler of API response to be called. Added handler call for this case, causing the deployment polling to continue. Signed-off-by: Michal Kopczan <michal.kopczan@northern.tech>
cfdde28 to
6aa4c77
Compare
|
Merging these commits will result in the following changelog entries: Changelogsmender (MEN-9144-mender-client-segfaults-upon-dbus-shutdown)New changes in mender since master: Bug Fixes
|
|
@mender-test-bot start client pipeline |
|
Hello 😺 I created a pipeline for you here: Pipeline-2281567760 Build Configuration Matrix
|
|
Hello 😺 This PR contains changelog entries. Please, verify the need of backporting it to the following release branches: |
|
@mender-test-bot cherry-pick to:
|
|
Hi 😺 |
Ticket: MEN-9144
Changelog: Prevent segfault by correctly handling dbus restarts in mender-update and mender-auth. Previously when systemctl stop dbus.socket or systemctl stop dbus was called, it resulted in mender-update segfault.
No tests, as we would need to create a way to stop dbus, wait for correct time etc. IMO not worth it - too much effort for too little gain.