Книга: Embedded Linux Primer: A Practical, Real-World Approach

17.4.8. Debugging Deadlock Conditions

17.4.8. Debugging Deadlock Conditions

The DEBUG_DEADLOCKS kernel configuration option enables detection and reporting of deadlock conditions associated with the semaphores and spinlocks in the kernel. When enabled, potential deadlock conditions are reported in a fashion similar to this:

==========================================
[ BUG: lock recursion deadlock detected! |
------------------------------------------
...

Much information is displayed after the banner line announcing the deadlock detection, including the lock descriptor, lock name (if available), lock file and name (if available), lock owner, who is currently holding the lock, and so on. Using this debug tool, it is possible to immediately determine the offending processes. Of course, fixing it might not be so easy!

Оглавление книги


Генерация: 1.439. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз