Skip to content

oscap 1.3.9 coredumps while processing the latest Ubuntu 24.04 compliance control file #2188

@bhattisatish

Description

@bhattisatish

Description of Problem:

While running the latest Ubuntu 24.04 XCCDF file, the oscap command fails with a core dump.
The last message seen is:

oscap: ./src/XCCDF_POLICY/xccdf_policy.c:627: xccdf_policy_is_item_selected: Assertion `false' failed.
Aborted (core dumped)

OpenSCAP Version:

OpenSCAP command line tool (oscap) 1.3.9

Operating System & Version:

Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble

Steps to Reproduce:

  1. git clone https://github.com/complianceascode/content.git
  2. cd content/ and ./build_product ubuntu2404 and cd ..
  3. Run either of the following commands:
    • oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis_level1_workstation --results arf1.xml --report report1.html content/build/ssg-ubuntu2404-ds.xml
    • oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_cis_level2_workstation --results arf2.xml --report report2.html content/build/ssg-ubuntu2404-ds.xml

Actual Results:

The last successful message was:

Title   Enable PAM
Rule    xccdf_org.ssgproject.content_rule_sshd_enable_pam

Result  pass

And the error message seen is:

oscap: ./src/XCCDF_POLICY/xccdf_policy.c:627: xccdf_policy_is_item_selected: Assertion `false' failed.
Aborted (core dumped)

Expected Results:

A successful run with arf1.xml with the results and report1.html with the final evaluation report.

Additional Information / Debugging Steps:

Coredump file is available for download, if it i's of any help.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions