Project

General

Profile

Actions

Bug #61900

closed

Story #63720: Make class loader more robust against crashes.

ClassLoader: Stalled Lock file if ClassLoader caching fails.

Added by Alexander Opitz over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
System/Bootstrap/Configuration
Target version:
Start date:
2014-09-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

If creation of ClassLoader caching isn't possible, course an exception is thrown in this process, we get a stale lock file.
Also we can get a unclean cache, as in the example the ClassAliases cache isn't saved but we don't check this again.

Example shortened backtrace what may happening:

Fatal error:  Uncaught exception 'BadFunctionCallException' with  message 'TYPO3 Fatal Error: Extension key "external_import" is NOT  loaded!' in 
/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php:122 
Stack  trace:
#0  /typo3conf/ext/ppi_..._showtime/ext_autoload.php(4):   TYPO3/CMS/Core/Utility/ExtensionManagementUtility::extPath('external_import',  'interfaces/inte...')
#1  /typo3/sysext/core/Classes/Package/Package.php(292):  require('/...')
#2  /typo3/sysext/core/Classes/Core/ClassLoader.php(570):  TYPO3/CMS/Core/Package/Package->getClassFilesFromAutoloadRegistry()
#3  /typo3/sysext/core/Classes/Core/ClassLoader.php(496):   TYPO3/CMS/Core/Core/ClassLoader->loadClassFilesFromAutoloadRegistryIntoRuntimeClassInformationCache(Array)
#4   /typo3/sysext/core/Classes/Core/ClassLoader.php(452):  TYPO3/CMS/Core/Core/ClassLoader->buildPackageNamespacesAndCl in /typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php on line 122

This example happened after git updating an extension which now depends on another extension which isn't installed. Afterwards the ClassLoader cache was cleared.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #57463: Upgrading 6.2: PHP Fatal error: Could not acquire lock for ClassLoader cache creation.ClosedAlexander Opitz2014-03-31

Actions
Related to TYPO3 Core - Task #62852: Bring back class aliases to prevent Fatal ErrorClosed2014-11-11

Actions
Related to TYPO3 Core - Bug #63683: ClassLoader: Stalled Lock file if ClassLoader caching fails.ClosedAlexander Opitz2014-12-08

Actions
Actions

Also available in: Atom PDF