Bug 15060 - AB-INT: libgcc_s.so.1 must be installed for pthread_cancel to work
Summary: AB-INT: libgcc_s.so.1 must be installed for pthread_cancel to work
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.0 M2
Assignee: Unassigned
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2023-03-07 14:44 UTC by Alexandre Belloni
Modified: 2024-01-04 15:35 UTC (History)
9 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2023-03-07 14:44:27 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/60/builds/6729/steps/18/logs/stdio

qemumips ubuntu2004-ty-1

023-03-06 11:17:58,756 - oe-selftest - INFO - ======================================================================
2023-03-06 11:17:58,756 - oe-selftest - INFO - FAIL: meta_ide.MetaIDE.test_meta_ide_can_run_sdk_tests (subunit.RemotedTestCase)
2023-03-06 11:17:58,756 - oe-selftest - INFO - ----------------------------------------------------------------------
2023-03-06 11:17:58,756 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/qemumips/build/meta/lib/oeqa/selftest/cases/meta_ide.py", line 57, in test_meta_ide_can_run_sdk_tests
    bitbake('-c populate_sysroot gtk+3')
  File "/home/pokybuild/yocto-worker/qemumips/build/meta/lib/oeqa/utils/commands.py", line 236, in bitbake
    return runCmd(cmd, ignore_status, timeout, output_log=output_log, **options)
  File "/home/pokybuild/yocto-worker/qemumips/build/meta/lib/oeqa/utils/commands.py", line 214, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'bitbake  -c populate_sysroot gtk+3' returned non-zero exit status 134:
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted (core dumped)
Comment 1 Alexandre Belloni 2023-03-07 14:45:39 UTC
https://autobuilder.yoctoproject.org/typhoon/#builders/121/builds/1219/steps/21/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#builders/121/builds/1219/steps/23/logs/stdio

check-layer-nightly debian11-ty-3

INFO: ======================================================================
INFO: ERROR: test_show_environment (common.CommonCheckLayer)
INFO: ----------------------------------------------------------------------
INFO: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/check-layer-nightly/build/scripts/lib/checklayer/cases/common.py", line 48, in test_show_environment
    check_command('Layer %s failed to show environment.' % self.tc.layer['name'],
  File "/home/pokybuild/yocto-worker/check-layer-nightly/build/scripts/lib/checklayer/__init__.py", line 287, in check_command
    raise RuntimeError(msg)
RuntimeError: Layer meta-multimedia failed to show environment.
Command: bitbake -e
Output:
libgcc_s.so.1 must be installed for pthread_cancel to work
Aborted
Comment 2 Alexandre Belloni 2023-03-09 15:37:26 UTC
Richard reran the check-layers build, same commits, same host and it passed so it seems timing related
Comment 3 Alexandre Belloni 2023-03-14 15:31:09 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1234/steps/21/logs/stdio

check-layer-nightly ubuntu2004-ty-1
Comment 4 Steve Sakoman 2023-03-29 14:32:36 UTC
Happened twice on langdale on oe-selftest-armhost:

https://errors.yoctoproject.org/Errors/Details/698917/
https://errors.yoctoproject.org/Errors/Details/698921/
Comment 5 Alexandre Belloni 2023-04-06 13:12:45 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/73/builds/6855/steps/19/logs/stdio

qemux86-64 debian11-ty-3
Comment 6 Alexandre Belloni 2023-04-12 09:10:04 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1284/steps/15/logs/stdio

check-layer-nightly debian11-ty-1
Comment 7 Pavel Zhukov 2023-04-13 15:20:53 UTC
there were bugs in cpython <3.10 and even newer:
https://github.com/python/cpython/issues/62948 
https://github.com/python/cpython/issues/88600


which may (not) be relevant. Worth checking (and sorry for the noise if they're not relevant :) )
Comment 8 Richard Purdie 2023-04-14 15:38:24 UTC
I think they are possibly relevant, the issue being more likely being related to "Remove redundant PyThread_exit_thread() call".

There are two workarounds mentioned, one:

import ctypes
libgcc_s = ctypes.CDLL("libgcc_s.so.1")

and the other to LD_PRELOAD libgcc. 

I'm wondering if we should add the above conditional on python version 3.8/3.9 before we start any threads?
Comment 9 Alexandre Belloni 2023-05-02 15:23:02 UTC
https://autobuilder.yoctoproject.org/typhoon/#builders/121/builds/1323/steps/21/logs/stdio

check-layer-nightly debian11-ty-2
Comment 11 Ross Burton 2023-05-25 14:33:15 UTC
So I managed to break bitbake and managed to wedge it with all of the Parser proccesses hanging with ~900 pipes open each.  If this can happen in normal use then that would explain fd exhaustion.
Comment 12 Alexandre Belloni 2023-06-01 21:59:15 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/2221/steps/14/logs/stdio

oe-selftest ubuntu2004-ty-1
Comment 14 Randy MacLeod 2023-07-26 21:22:01 UTC
Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.
Comment 19 Randy MacLeod 2023-09-28 15:00:18 UTC
May be connected to https://bugzilla.yoctoproject.org/show_bug.cgi?id=15005
both ubu-20.04 and debian-11.
Comment 20 Alexandre Belloni 2023-10-05 20:03:19 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/121/builds/1576/steps/21/logs/stdio

check-layer-nightly debian11-ty-3
Comment 23 Randy MacLeod 2023-10-30 15:29:12 UTC
Bulk move to 5.0 M1. -- Randy
Comment 26 Randy MacLeod 2023-12-21 23:28:32 UTC
Bulk move of 52 5.0-M1 bugs to M2.