Skip to content

phosphor-user-manager[470]: Locking Shadow failed #10

@geissonator

Description

@geissonator

https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-user-manager/+/43174 was merged recently to fix an issue found with an updated c++ compiler. It seems that before this commit, the shadowlock class objects were not actually being created or utilized. The fact they are now has shown there is a bug in this logic:

May 14 14:08:12 witherspoon systemd[1]: Starting Phosphor User Manager...
May 14 14:08:13 witherspoon phosphor-user-manager[470]: Locking Shadow failed
May 14 14:08:13 witherspoon phosphor-user-manager[470]: The operation failed internally.
May 14 14:08:13 witherspoon phosphor-user-manager[470]: terminate called after throwing an instance of 'sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure'
May 14 14:08:13 witherspoon phosphor-user-manager[470]:   what():  xyz.openbmc_project.Common.Error.InternalFailure: The operation failed internally.
May 14 14:08:13 witherspoon systemd[1]: Started Process Core Dump (PID 471/UID 0).

@williamspatrick noted there appears to be a logic bug in this line:
if (!lckpwdf()) { elog<InternalFailure>();

lckpwdf() returns 0 on success so the "!" needs to be removed.

@ratagupt @rthomaiy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions