OpenSCAP / openscap

NIST Certified SCAP 1.2 toolkit
https://www.open-scap.org/tools/openscap-base
GNU Lesser General Public License v2.1
1.37k stars 377 forks source link

oscap cannot be terminated using CTRL+C #1192

Open jan-cerny opened 6 years ago

jan-cerny commented 6 years ago

Description of Problem:

oscap cannot be terminated by pressing CTRL+C while evaluating an intensive rule, eg. xccdf_org.ssgproject.content_rule_rpm_verify_permissions

OpenSCAP Version:

1.3.0_alpha2

Operating System & Version:

F27

Steps to Reproduce:

  1. oscap xccdf eval --profile standard ssg-fedora-ds.xml
  2. CTRL+C

Actual Results:

oscap does not terminate

Expected Results:

oscap terminates

Additional Information / Debugging Steps:

mpreisler commented 6 years ago

Hi, can you reproduce this on stable OpenSCAP from the 1.2.x branch?

jan-cerny commented 6 years ago

Hi, the issue is not reproducible with openscap-1.2.17-1.fc27.x86_64.

mpreisler commented 6 years ago

Could you please attach a debugger, break while it's stuck and paste the backtrace?

jan-cerny commented 6 years ago

Yes, I could, but it is not stuck, it will finish after a while after the rule is evaluated.

mpreisler commented 6 years ago

Then I suggest setting watches in the debugger and figuring out why it's not shutting the probe down.

jan-cerny commented 6 years ago

@mpreisler There is no mention of SIGINT under /src.

EDIT: However, we need to investigate this link: http://ftp.rpm.org/api/4.12.0.1/group__rpmsq.html