Opened 5 years ago

Last modified 3 years ago

#13132 reopened bug

Updating the system may require immediate restart

Reported by: axeld Owned by: bonefish
Priority: normal Milestone: Unscheduled
Component: Kits/Package Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All


It looks like the package management already moves packages around on an update. Since it doesn't keep the packages used open, it can happen that it won't be able to access a currently activated package anymore afterwards.

For example, the binutils package had been updated. "as" from that package could not be run anymore until a restart.

That could be improved by telling the packagefs whenever the location of an activated package changes during runtime.

Attachments (2) (24.9 KB ) - added by vidrep 4 years ago.
package_daemon-677-syslog (1.7 KB ) - added by vidrep 4 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 by waddlesplash, 5 years ago

Related bug that I never got around to reporting: After a "pkgman update", if you try to do anything else with pkgman (install/uninstall/etc.), package_daemon crashes.

comment:2 by vidrep, 4 years ago

hrev51135 x86_64 SoftwareUpdater->update 7 packages to hrev51137 Launching HaikuDepot before a reboot will cause package_daemon to crash Debug report and syslog attached

comment:3 by vidrep, 4 years ago

patch: 01

by vidrep, 4 years ago

Attachment: package_daemon-677-syslog added

comment:4 by pulkomandy, 4 years ago

patch: 10

comment:5 by jessicah, 4 years ago

I wonder if some of this could be alleviated by using node refs to the activated packages, such as when their entry refs change, the package kit doesn't need to worry, and can still work with the nodes themselves no matter where they moved to.

I suppose the only downside to that is that it would hold file descriptors open, if I'm understanding the BNode documentation correctly... I guess the package kit doesn't hold files open currently, hence leading to the behaviour we currently have?

comment:6 by diver, 4 years ago

Owner: changed from nobody to bonefish
Status: newassigned

package_daemon crash in being tracked at #10898.

comment:7 by cocobean, 3 years ago

Tested with hrev52014. This bug seems fixed as of #10898..

comment:8 by waddlesplash, 3 years ago

Resolution: fixed
Status: assignedclosed

comment:9 by diver, 3 years ago

I don't think this one is fixed at all.

comment:10 by pulkomandy, 3 years ago

Resolution: fixed
Status: closedreopened
Note: See TracTickets for help on using tickets.