* [PATCH] sstate: inside the threadedpool don't write to the shared localdata
@ 2022-03-06 21:08 Jose Quaresma
2022-03-06 21:22 ` [OE-core] " Richard Purdie
2022-03-07 16:14 ` Mark Hatle
0 siblings, 2 replies; 5+ messages in thread
From: Jose Quaresma @ 2022-03-06 21:08 UTC (permalink / raw)
To: openembedded-core; +Cc: Jose Quaresma
When inside the threadedpool we make a copy of the localdata
to avoid some race condition, so we need to use this new
localdata2 and stop write the shared localdata.
Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
---
meta/classes/sstate.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index dc9a2c085b..7aca415159 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
localdata2 = bb.data.createCopy(localdata)
srcuri = "file://" + sstatefile
- localdata.setVar('SRC_URI', srcuri)
+ localdata2.setVar('SRC_URI', srcuri)
bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
import traceback
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] sstate: inside the threadedpool don't write to the shared localdata
2022-03-06 21:08 [PATCH] sstate: inside the threadedpool don't write to the shared localdata Jose Quaresma
@ 2022-03-06 21:22 ` Richard Purdie
2022-03-07 16:14 ` Mark Hatle
1 sibling, 0 replies; 5+ messages in thread
From: Richard Purdie @ 2022-03-06 21:22 UTC (permalink / raw)
To: Jose Quaresma, openembedded-core
On Sun, 2022-03-06 at 21:08 +0000, Jose Quaresma wrote:
> When inside the threadedpool we make a copy of the localdata
> to avoid some race condition, so we need to use this new
> localdata2 and stop write the shared localdata.
>
> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> ---
> meta/classes/sstate.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index dc9a2c085b..7aca415159 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
>
> localdata2 = bb.data.createCopy(localdata)
> srcuri = "file://" + sstatefile
> - localdata.setVar('SRC_URI', srcuri)
> + localdata2.setVar('SRC_URI', srcuri)
> bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
>
> import traceback
That looks like a good find and may explain a few things!
Cheers,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] sstate: inside the threadedpool don't write to the shared localdata
2022-03-06 21:08 [PATCH] sstate: inside the threadedpool don't write to the shared localdata Jose Quaresma
2022-03-06 21:22 ` [OE-core] " Richard Purdie
@ 2022-03-07 16:14 ` Mark Hatle
2022-03-07 17:30 ` Jose Quaresma
1 sibling, 1 reply; 5+ messages in thread
From: Mark Hatle @ 2022-03-07 16:14 UTC (permalink / raw)
To: openembedded-core
Note, it appears this bug is in honister as well.
On 3/6/22 3:08 PM, Jose Quaresma wrote:
> When inside the threadedpool we make a copy of the localdata
> to avoid some race condition, so we need to use this new
> localdata2 and stop write the shared localdata.
>
> Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> ---
> meta/classes/sstate.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> index dc9a2c085b..7aca415159 100644
> --- a/meta/classes/sstate.bbclass
> +++ b/meta/classes/sstate.bbclass
> @@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
>
> localdata2 = bb.data.createCopy(localdata)
> srcuri = "file://" + sstatefile
> - localdata.setVar('SRC_URI', srcuri)
> + localdata2.setVar('SRC_URI', srcuri)
> bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
>
> import traceback
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#162790): https://lists.openembedded.org/g/openembedded-core/message/162790
> Mute This Topic: https://lists.openembedded.org/mt/89597961/3616948
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mark.hatle@kernel.crashing.org]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] sstate: inside the threadedpool don't write to the shared localdata
2022-03-07 16:14 ` Mark Hatle
@ 2022-03-07 17:30 ` Jose Quaresma
2022-03-07 17:40 ` Steve Sakoman
0 siblings, 1 reply; 5+ messages in thread
From: Jose Quaresma @ 2022-03-07 17:30 UTC (permalink / raw)
To: Mark Hatle; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 1791 bytes --]
Mark Hatle <mark.hatle@kernel.crashing.org> escreveu no dia segunda,
7/03/2022 à(s) 16:14:
> Note, it appears this bug is in honister as well.
>
is already a little old, dunfell needs this fix as well.
jose
>
> On 3/6/22 3:08 PM, Jose Quaresma wrote:
> > When inside the threadedpool we make a copy of the localdata
> > to avoid some race condition, so we need to use this new
> > localdata2 and stop write the shared localdata.
> >
> > Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
> > ---
> > meta/classes/sstate.bbclass | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
> > index dc9a2c085b..7aca415159 100644
> > --- a/meta/classes/sstate.bbclass
> > +++ b/meta/classes/sstate.bbclass
> > @@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False,
> currentcount=0, summary=True,
> >
> > localdata2 = bb.data.createCopy(localdata)
> > srcuri = "file://" + sstatefile
> > - localdata.setVar('SRC_URI', srcuri)
> > + localdata2.setVar('SRC_URI', srcuri)
> > bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
> >
> > import traceback
> >
> >
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#162853):
> https://lists.openembedded.org/g/openembedded-core/message/162853
> Mute This Topic: https://lists.openembedded.org/mt/89597961/5052612
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
--
Best regards,
José Quaresma
[-- Attachment #2: Type: text/html, Size: 3178 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [OE-core] [PATCH] sstate: inside the threadedpool don't write to the shared localdata
2022-03-07 17:30 ` Jose Quaresma
@ 2022-03-07 17:40 ` Steve Sakoman
0 siblings, 0 replies; 5+ messages in thread
From: Steve Sakoman @ 2022-03-07 17:40 UTC (permalink / raw)
To: Jose Quaresma; +Cc: Mark Hatle, OE-core
On Mon, Mar 7, 2022 at 7:30 AM Jose Quaresma <quaresma.jose@gmail.com> wrote:
>
>
>
> Mark Hatle <mark.hatle@kernel.crashing.org> escreveu no dia segunda, 7/03/2022 à(s) 16:14:
>>
>> Note, it appears this bug is in honister as well.
>
>
> is already a little old, dunfell needs this fix as well.
In my test queue now.
Thanks!
Steve
>> On 3/6/22 3:08 PM, Jose Quaresma wrote:
>> > When inside the threadedpool we make a copy of the localdata
>> > to avoid some race condition, so we need to use this new
>> > localdata2 and stop write the shared localdata.
>> >
>> > Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com>
>> > ---
>> > meta/classes/sstate.bbclass | 2 +-
>> > 1 file changed, 1 insertion(+), 1 deletion(-)
>> >
>> > diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
>> > index dc9a2c085b..7aca415159 100644
>> > --- a/meta/classes/sstate.bbclass
>> > +++ b/meta/classes/sstate.bbclass
>> > @@ -988,7 +988,7 @@ def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
>> >
>> > localdata2 = bb.data.createCopy(localdata)
>> > srcuri = "file://" + sstatefile
>> > - localdata.setVar('SRC_URI', srcuri)
>> > + localdata2.setVar('SRC_URI', srcuri)
>> > bb.debug(2, "SState: Attempting to fetch %s" % srcuri)
>> >
>> > import traceback
>> >
>> >
>> >
>> >
>> >
>>
>>
>>
>
>
> --
> Best regards,
>
> José Quaresma
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#162856): https://lists.openembedded.org/g/openembedded-core/message/162856
> Mute This Topic: https://lists.openembedded.org/mt/89597961/3620601
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [steve@sakoman.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-03-07 17:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-06 21:08 [PATCH] sstate: inside the threadedpool don't write to the shared localdata Jose Quaresma
2022-03-06 21:22 ` [OE-core] " Richard Purdie
2022-03-07 16:14 ` Mark Hatle
2022-03-07 17:30 ` Jose Quaresma
2022-03-07 17:40 ` Steve Sakoman
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.