poky/bitbake
Aníbal Limón f0f6acac03 bitbake: bb.event: fix infinite loop on print_ui_queue
If bitbake ends before _uiready and bb.event.LogHandler was add
to the bitbake logger it causes an infinite loop when logging
something.

The scenario is print_ui_queue is called at exit and executes
the log handlers [2] one of them is bb.event.LogHandler this handler
appends the same entry to ui_queue causing the inifine loop [3].

In order to fix a new copy of the ui_queue list is created when iterate
ui_queue.

[YOCTO #10399]

[1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=10399#c0
[2] http://git.openembedded.org/bitbake/tree/lib/bb/event.py?id=41d9cd41d40b04746c82b4a940dca47df02514fc#n156
[3]
http://git.openembedded.org/bitbake/tree/lib/bb/event.py?id=41d9cd41d40b04746c82b4a940dca47df02514fc#n164

(Bitbake rev: bb56a8957255999b9ffd1408d249cc5b715b5a3a)

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-11-08 23:47:14 +00:00
..
bin bitbake: Update version to 1.30.0 2016-04-06 23:33:17 +01:00
contrib bitbake: newbb.vim: remove PR 2014-08-19 20:41:26 +01:00
doc bitbake: bitbake-user-manual: Updated the 'bitbake -h' output example. 2016-04-18 16:20:50 +01:00
lib bitbake: bb.event: fix infinite loop on print_ui_queue 2016-11-08 23:47:14 +00:00
AUTHORS
ChangeLog
COPYING
HEADER
LICENSE bitbake: bitbake: update LICENSE file with QUnit details 2016-04-06 23:10:31 +01:00
toaster-requirements.txt bitbake: toaster: rework checking of Django version 2015-12-14 23:13:08 +00:00