-
Notifications
You must be signed in to change notification settings - Fork 234
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
Panic: attempted to update last-writer in lockfile without the write lock #1324
Comments
@nalind @giuseppe @vrothberg PTAL |
We need to be taking either a read lock or a write lock before calling the new layer store's |
There was a poosibility to panic due to such behavour: attempted to update last-writer in lockfile without the write lock Fixes: containers#1324 Signed-off-by: Mikhail Khachayants <tyler92@inbox.ru>
There was a possibility to panic due to such behavior: attempted to update last-writer in lockfile without the write lock Fixes: containers#1324 Signed-off-by: Mikhail Khachayants <tyler92@inbox.ru>
I created a PR but can't do a good enough check. |
There was a possibility to panic due to such behavior: attempted to update last-writer in lockfile without the write lock Fixes: containers#1324 Signed-off-by: Mikhail Khachayants <tyler92@inbox.ru>
There was a possibility to panic due to such behavior: attempted to update last-writer in lockfile without the write lock Fixes: containers#1324 Signed-off-by: Mikhail Khachayants <tyler92@inbox.ru>
I’m missing something about what has happened here. Looking at the backtrace, there are two goroutines waiting for
and that’s fine. But there also two goroutines holding
and
Does anyone know what is going on here? (I don’t fully understand the operation of |
But |
There was a possibility to panic due to such behavior: attempted to update last-writer in lockfile without the write lock Fixes: containers#1324 Signed-off-by: Mikhail Khachayants <tyler92@inbox.ru> (cherry picked from commit 2ad8a08b85dd11f2edc990513b12a05259ccec02) Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
There was a possibility to panic due to such behavior: attempted to update last-writer in lockfile without the write lock Fixes: containers#1324 Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2153883 Signed-off-by: Mikhail Khachayants <tyler92@inbox.ru> (cherry picked from commit 2ad8a08b85dd11f2edc990513b12a05259ccec02) Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
There was a possibility to panic due to such behavior: attempted to update last-writer in lockfile without the write lock Fixes: containers#1324 Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2153883 Signed-off-by: Mikhail Khachayants <tyler92@inbox.ru> (cherry picked from commit e35b061) Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
For some reason, I had an incomplete layer (according to the log file) and the nearest Podman's PlayKube command led to panic in the storage module. A cropped part of the stack trace (see full in the attach):
Full log with panic: podman-panic.log
It seems like the wrong condition - layers.go#L397 because Locked function may return true even if the lock is owned by other thread. So the lock may be released at any time after the Locked function returns true. Probably we should acquire reader lock in newLayerStore.
The text was updated successfully, but these errors were encountered: