Skip to content

File Browser: Replacing shared library can crash running process #81

Closed

Description

@geloescht

Linux has no safeguards against changes to a shared library that is currently in use. If a ".so" file is written to, the changes are immediately reflected in the address space of a process using that library. Thus, unless the new file has almost the exact same layout, the process might end up executing random instructions or access illegal memory addresses.
With XOVI, a user might replace an extension while xochitl is running, expecting it to be loaded on the next restart of the application. However, xochitl is likely to crash instead. To avoid that, instead of directly overwriting the target file(s), reManager could delete the old file before recreating it. The running process will continue to access the previous library file, because Linux only fully erases its data when the process using it ends.

Activity

  1. Eeems commented on Jul 15, 2026

    @Eeems

    Is this intended to be directed at when a user copies a file over to the device using reManager? Or is this more aimed at vellum and when it updates a package?

  2. geloescht commented on Jul 15, 2026

    @geloescht
    Author

    This is about reManager's file browser. I assume, but haven't checked, that vellum already does what I described.
    I know that installing extensions via the file browser is not exactly its main use case, but not all extensions are available on vellum.

  3. rmitchellscott commented on Jul 15, 2026

    @rmitchellscott
    Owner

    I do think vellum/apk handles this correctly already. Looking into swapping to PosixRename for reManager.

  4. added
    bug
    on Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions