Skip to content

[SKIP CI] Minor docker-run.sh fixes - #6238

Merged
lgirdwood merged 3 commits into
thesofproject:mainfrom
marc-hb:minor-zephyr-docker-fixes
Sep 2, 2022
Merged

[SKIP CI] Minor docker-run.sh fixes#6238
lgirdwood merged 3 commits into
thesofproject:mainfrom
marc-hb:minor-zephyr-docker-fixes

Conversation

@marc-hb

@marc-hb marc-hb commented Sep 1, 2022

Copy link
Copy Markdown
Collaborator

See commit messages.

Fixes recent #6232

Fixes commit d09844a ("zephyr/docker-build.sh: match UID with
'adduser' instead of 'chgrp -R'")

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This makes it possible to run interactive commands like:

  ./sof/zephyr/docker-run.sh /bin/bash

Fixes commit 02c1269 ("Add new, convenience zephyr/docker-run.sh
script")

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
Explain how to use this script with a different image version.

Docker image versions and tags tend to confuse new users.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb

marc-hb commented Sep 1, 2022

Copy link
Copy Markdown
Collaborator Author

I'm really puzzled by the many (and unrelated) testbench memory corruptions reported by valgrind in https://github.com/thesofproject/sof/runs/8141544041

I tried both Ubuntu 20 and 22 and I could not reproduce the ... @singalsu, @pjdobrowolski any idea? How multithreaded and non-deterministic is this?

Only recent change I see that could be related is library manager

==19983== Thread 3:
==19983== Invalid read of size 1
==19983==    at 0x5FD5E9C: fprintf (stdio2.h:105)
==19983==    by 0x5FD5E9C: module_adapter_copy (module_adapter.c:599)
==19983==    by 0x486BF09: pipeline_for_each_comp (pipeline-graph.c:453)
==19983==    by 0x486CB4F: pipeline_comp_copy (pipeline-stream.c:101)
==19983==    by 0x486CB4F: pipeline_copy (pipeline-stream.c:139)
==19983==    by 0x486E487: pipeline_task (pipeline-schedule.c:203)
==19983==    by 0x4861C45: ll_thread (ll_schedule.c:131)
==19983==    by 0x4951B42: start_thread (pthread_create.c:442)
==19983==    by 0x49E2BB3: clone (clone.S:100)
==19983== Invalid read of size 8
==19983==    at 0x5FD53F8: module_adapter_copy (module_adapter.c:606)
==19983==    by 0x486BF09: pipeline_for_each_comp (pipeline-graph.c:453)
==19983==    by 0x486CB4F: pipeline_comp_copy (pipeline-stream.c:101)
==19983==    by 0x486CB4F: pipeline_copy (pipeline-stream.c:139)
==19983==    by 0x486E487: pipeline_task (pipeline-schedule.c:203)
==19983==    by 0x4861C45: ll_thread (ll_schedule.c:131)
==19983==    by 0x4951B42: start_thread (pthread_create.c:442)
==19983==    by 0x49E2BB3: clone (clone.S:100)

\+ many more.

@marc-hb

marc-hb commented Sep 1, 2022

Copy link
Copy Markdown
Collaborator Author

And now re-run https://github.com/thesofproject/sof/runs/8142429253 is passing. Scary.

@pjdobrowolski

Copy link
Copy Markdown
Contributor

@marc-hb library manager won't work unless it is turned on. I will look at this...

@lyakh lyakh mentioned this pull request Sep 2, 2022
@lgirdwood

Copy link
Copy Markdown
Member

@ranj063 please see the valgrind warning above, could be a race as it's occasional. It may need a if() check in the code.

@pjdobrowolski

Copy link
Copy Markdown
Contributor

@marc-hb after short analysis failure is caused by not freeing comp https://github.com/thesofproject/sof/runs/8141544041#step:6:585 what leads to memory corruption. Issue is not related to library_manager, similar problem with freeing modules was being fixed on UpDownMixer however I'm not sure if it is connected. From my perspective issue is on TGL machine. FYI @jxstelter

@lgirdwood

Copy link
Copy Markdown
Member

@wszypelt @lrudyX good to merge ? Not expecting docker update to fail a DMIC test ?

@wszypelt

wszypelt commented Sep 2, 2022

Copy link
Copy Markdown

@lgirdwood To be sure, I turned on the tests again

@marc-hb

marc-hb commented Sep 2, 2022

Copy link
Copy Markdown
Collaborator Author

@marc-hb after short analysis failure is caused by not freeing comp https://github.com/thesofproject/sof/runs/8141544041#step:6:585 what leads to memory corruption.

Thanks @pjdobrowolski for the preliminary analysis. Would you be able to go one extra step and git blame the corresponding code?

Also, does it look like a race to you?

@lgirdwood
lgirdwood merged commit 42dd33f into thesofproject:main Sep 2, 2022
@marc-hb
marc-hb deleted the minor-zephyr-docker-fixes branch September 2, 2022 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants