Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212055 - elog messages are overwritten before being dispatched
Summary: elog messages are overwritten before being dispatched
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-03-02 11:43 UTC by Marius Mauch (RETIRED)
Modified: 2008-03-20 18:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2008-03-02 11:43:28 UTC
For some reason in some cases elog messages are internally overwritten by messages from other packages. The result is that instead of seeing one message from each package A and B one gets two identical messages from either A or B (haven't verified it, but it seems as the first package with a message wins).

It doesn't happen always, but I haven't been able to see a pattern so far. This may or may not apply to 2.1 as well.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2008-03-02 13:18:18 UTC
Another thing that is probably related, or even the same bug, is that messages get dispatched multiple times without overwriting others, e.g. the current testcase "emerge rsync hal" consistently dispatches the rsync postinst message twice. Some debugging shows that it's somehow caused by elog/messages.py:_msgbuffer carrying the message around, though I haven't been able yet to determine where the message gets inserted into the buffer (as _elog_base isn't called in the testcase).
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2008-03-02 13:46:25 UTC
ok, looks like it "just" needed "global" keywords added in some functions, at least that got rid of the repetition issue. Not sure about the overwriting issue as that's not reproducible (I've only observed it once so far, but it may have happened more often without me noticing it)
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:08 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2008-03-20 18:15:54 UTC
This is supposed to be fixed in portage-2.2_pre5 or earlier.