Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random crash #14

Open
borkra opened this issue Jan 22, 2025 · 2 comments
Open

Random crash #14

borkra opened this issue Jan 22, 2025 · 2 comments

Comments

@borkra
Copy link

borkra commented Jan 22, 2025

[2025-01-22T16:17:56.991Z] ERROR: gawk-5.3.0-r0 do_vigiles_pkg: Error executing a python function in exec_func_python() autogenerated:
[2025-01-22T16:17:56.991Z] 
[2025-01-22T16:17:56.991Z] The stack trace of python calls that resulted in this exception/failure was:
[2025-01-22T16:17:56.991Z] File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
[2025-01-22T16:17:56.991Z]      0001:
[2025-01-22T16:17:56.991Z]  *** 0002:do_vigiles_pkg(d)
[2025-01-22T16:17:56.991Z]      0003:
[2025-01-22T16:17:56.991Z] File: '/home/jenkins/workspace/ipeline_scarthgap-summit-5.0.0.x/sources/meta-timesys/classes/vigiles.bbclass', lineno: 323, function: do_vigiles_pkg
[2025-01-22T16:17:56.991Z]      0319:    tsmeta_write_dict(d, "cve", manifest)
[2025-01-22T16:17:56.991Z]      0320:
[2025-01-22T16:17:56.991Z]      0321:
[2025-01-22T16:17:56.991Z]      0322:python do_vigiles_pkg() {
[2025-01-22T16:17:56.991Z]  *** 0323:    vigiles_collect_pkg_info(d)
[2025-01-22T16:17:56.991Z]      0324:}
[2025-01-22T16:17:56.991Z]      0325:
[2025-01-22T16:17:56.991Z]      0326:
[2025-01-22T16:17:56.991Z]      0327:def vigiles_get_build_dict(d):
[2025-01-22T16:17:56.991Z] File: '/home/jenkins/workspace/ipeline_scarthgap-summit-5.0.0.x/sources/meta-timesys/classes/vigiles.bbclass', lineno: 284, function: vigiles_collect_pkg_info
[2025-01-22T16:17:56.991Z]      0280:        'src_uri',
[2025-01-22T16:17:56.991Z]      0281:        'pkg_cpe_id',
[2025-01-22T16:17:56.991Z]      0282:    ]
[2025-01-22T16:17:56.991Z]      0283:    pn_dict = tsmeta_read_dictname_vars(d, 'pn', pn, pn_vars)
[2025-01-22T16:17:56.991Z]  *** 0284:    manifest = tsmeta_read_dictname_vars(d, 'src', pn, src_vars)
[2025-01-22T16:17:56.991Z]      0285:    manifest['name'] = pn_dict['pn']
[2025-01-22T16:17:56.992Z]      0286:    manifest['version'] = pn_dict['pv']
[2025-01-22T16:17:56.992Z]      0287:    # Add cpe_id for each package in manifest to support spdx format
[2025-01-22T16:17:56.992Z]      0288:    manifest['cpe_id'] = manifest.get('pkg_cpe_id') or get_cpe_ids(manifest['cve_product'], manifest['cve_version'])
[2025-01-22T16:17:56.992Z] File: '/home/jenkins/workspace/ipeline_scarthgap-summit-5.0.0.x/sources/meta-timesys/classes/tsmeta.bbclass', lineno: 182, function: tsmeta_read_dictname_vars
[2025-01-22T16:17:56.992Z]      0178:    value = indict.get(trdv_var, "")
[2025-01-22T16:17:56.992Z]      0179:    return value
[2025-01-22T16:17:56.992Z]      0180:
[2025-01-22T16:17:56.992Z]      0181:def tsmeta_read_dictname_vars(d, trdv_type, trdv_name, trdv_list):
[2025-01-22T16:17:56.992Z]  *** 0182:    indict = tsmeta_read_dictname(d, trdv_type, trdv_name)
[2025-01-22T16:17:56.992Z]      0183:    dict_out = { key: indict.get(key, "") for key in trdv_list }
[2025-01-22T16:17:56.992Z]      0184:    return dict_out
[2025-01-22T16:17:56.992Z]      0185:
[2025-01-22T16:17:56.992Z]      0186:
[2025-01-22T16:17:56.992Z] File: '/home/jenkins/workspace/ipeline_scarthgap-summit-5.0.0.x/sources/meta-timesys/classes/tsmeta.bbclass', lineno: 153, function: tsmeta_read_dictname
[2025-01-22T16:17:56.992Z]      0149:
[2025-01-22T16:17:56.992Z]      0150:
[2025-01-22T16:17:56.992Z]      0151:def tsmeta_read_dictname(d, tsm_type, trd_name):
[2025-01-22T16:17:56.992Z]      0152:    infile = tsmeta_get_type_path(d, tsm_type, trd_name)
[2025-01-22T16:17:56.992Z]  *** 0153:    return tsmeta_read_json(d, infile)
[2025-01-22T16:17:56.992Z]      0154:
[2025-01-22T16:17:56.992Z]      0155:def tsmeta_read_dict(d, trd_type):
[2025-01-22T16:17:56.992Z]      0156:    trd_name = d.getVar('PN')
[2025-01-22T16:17:56.992Z]      0157:    return tsmeta_read_dictname(d, trd_type, trd_name)
[2025-01-22T16:17:56.992Z] File: '/home/jenkins/workspace/ipeline_scarthgap-summit-5.0.0.x/sources/meta-timesys/classes/tsmeta.bbclass', lineno: 111, function: tsmeta_read_json
[2025-01-22T16:17:56.992Z]      0107:    import json
[2025-01-22T16:17:56.992Z]      0108:    dict_in = dict()
[2025-01-22T16:17:56.992Z]      0109:    if os.path.exists(trj_path):
[2025-01-22T16:17:56.992Z]      0110:        with open(trj_path) as f:
[2025-01-22T16:17:56.992Z]  *** 0111:            dict_in = json.load(f)
[2025-01-22T16:17:56.992Z]      0112:    return dict_in
[2025-01-22T16:17:56.992Z]      0113:
[2025-01-22T16:17:56.992Z]      0114:def tsmeta_write_json(d, dict_out, twj_path):
[2025-01-22T16:17:56.992Z]      0115:    import json
[2025-01-22T16:17:56.992Z] File: '/usr/lib/python3.10/json/__init__.py', lineno: 293, function: load
[2025-01-22T16:17:56.992Z]      0289:
[2025-01-22T16:17:56.992Z]      0290:    To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
[2025-01-22T16:17:56.992Z]      0291:    kwarg; otherwise ``JSONDecoder`` is used.
[2025-01-22T16:17:56.992Z]      0292:    """
[2025-01-22T16:17:56.992Z]  *** 0293:    return loads(fp.read(),
[2025-01-22T16:17:56.992Z]      0294:        cls=cls, object_hook=object_hook,
[2025-01-22T16:17:56.992Z]      0295:        parse_float=parse_float, parse_int=parse_int,
[2025-01-22T16:17:56.992Z]      0296:        parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
[2025-01-22T16:17:56.992Z]      0297:
[2025-01-22T16:17:56.992Z] File: '/usr/lib/python3.10/json/__init__.py', lineno: 346, function: loads
[2025-01-22T16:17:56.992Z]      0342:
[2025-01-22T16:17:56.992Z]      0343:    if (cls is None and object_hook is None and
[2025-01-22T16:17:56.992Z]      0344:            parse_int is None and parse_float is None and
[2025-01-22T16:17:56.992Z]      0345:            parse_constant is None and object_pairs_hook is None and not kw):
[2025-01-22T16:17:56.992Z]  *** 0346:        return _default_decoder.decode(s)
[2025-01-22T16:17:56.992Z]      0347:    if cls is None:
[2025-01-22T16:17:56.992Z]      0348:        cls = JSONDecoder
[2025-01-22T16:17:56.992Z]      0349:    if object_hook is not None:
[2025-01-22T16:17:56.992Z]      0350:        kw['object_hook'] = object_hook
[2025-01-22T16:17:56.992Z] File: '/usr/lib/python3.10/json/decoder.py', lineno: 337, function: decode
[2025-01-22T16:17:56.992Z]      0333:        """Return the Python representation of ``s`` (a ``str`` instance
[2025-01-22T16:17:56.992Z]      0334:        containing a JSON document).
[2025-01-22T16:17:56.992Z]      0335:
[2025-01-22T16:17:56.992Z]      0336:        """
[2025-01-22T16:17:56.992Z]  *** 0337:        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
[2025-01-22T16:17:56.992Z]      0338:        end = _w(s, end).end()
[2025-01-22T16:17:56.992Z]      0339:        if end != len(s):
[2025-01-22T16:17:56.992Z]      0340:            raise JSONDecodeError("Extra data", s, end)
[2025-01-22T16:17:56.992Z]      0341:        return obj
[2025-01-22T16:17:56.992Z] File: '/usr/lib/python3.10/json/decoder.py', lineno: 355, function: raw_decode
[2025-01-22T16:17:56.992Z]      0351:        """
[2025-01-22T16:17:56.992Z]      0352:        try:
[2025-01-22T16:17:56.992Z]      0353:            obj, end = self.scan_once(s, idx)
[2025-01-22T16:17:56.992Z]      0354:        except StopIteration as err:
[2025-01-22T16:17:56.992Z]  *** 0355:            raise JSONDecodeError("Expecting value", s, err.value) from None
[2025-01-22T16:17:56.992Z]      0356:        return obj, end
[2025-01-22T16:17:56.992Z] Exception: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
[2025-01-22T16:17:56.992Z] 
[2025-01-22T16:17:56.992Z] ERROR: Logfile of failure stored in: /home/jenkins/workspace/ipeline_scarthgap-summit-5.0.0.x/build/tmp/work/armv8a-poky-linux/gawk/5.3.0/temp/log.do_vigiles_pkg.2375786
@harish-bansal
Copy link
Collaborator

How often do you encounter this error? Can you provide details about your environment to help us reproduce it?
The error traceback indicates that multiple tasks are trying to access a common metadata file.

@borkra
Copy link
Author

borkra commented Jan 24, 2025

Happens sometimes, build runs on AWS., so not many details. Yocto 5.0.6.

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

No branches or pull requests

2 participants