[package_daemon] crash in PackageFileManager::GetPackageFile
hrev47206, x86_gcc2
I copied paladin-1.3-x86_gcc2.hpkg to /system/packages and the same moment package_daemon crashed.
PackageFileManager::GetPackageFile(entry_ref&, PackageFile&) + 0x88
[...]
PackageFileManager::CreatePackage(entry_ref&, Package&) + 0x24
Volume::_PackagesEntryCreated(char*) + 0x186
Volume::ProcessPendingNodeMonitorEvents() + 0x110
Root::_ProcessNodeMonitorEvents(Volume*) + 0x22
Root::VolumeJob::Do() + 0x69
Root::_JobRunner() + 0x3d
Root::_JobRunnerEntry(void*) + 0x1a
thread_entry + 0x21
commpage_thread_exit + 0
The cause is quite likely the use after deletion caused by an inverse check in
PackageFile::LastReferenceReleased()
(CID 1211989).I probably won't get around fixing it before Sunday. If anyone else feels so inclined...