Bug 2169055

Summary: traceback when user interrupts Mock - Directory not empty: '/var/lib/mock/fedora-rawhide-x86_64/root/builddir/build/BUILD/kernel-6.2-rc7-18-g0983f6bf2bfc'
Product: [Fedora] Fedora Reporter: Mikhail <mikhail.v.gavrilov>
Component: mockAssignee: Copr Team <copr-team>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: copr-team, jkeating, msuchy, philip.wyett, praiskup, williams
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/af79736bcc42e2974e98c3e0df29f6997ed6074
Whiteboard: abrt_hash:70999838bac5a7d6f4b3c39eae82efc6064b76a8;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-10 13:07:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description Mikhail 2023-02-11 11:21:40 UTC
Version-Release number of selected component:
mock-3.5-2.fc38

Additional info:
reporter:       libreport-2.17.6
kernel:         6.2.0-0.rc7.20230208git0983f6bf2bfc.52.fc38.x86_64+debug
cmdline:        /usr/bin/python3 -tt /usr/libexec/mock/mock -r fedora-rawhide-x86_64 --resultdir /home/mikhail/packaging-work/kernel/results_kernel/6.2.0/0.rc7.20230209git0983f6bf2bfc.52.fc39 --rebuild /home/mikhail/packaging-work/kernel/kernel-6.2.0-0.rc7.20230209git0983f6bf2bfc.52.fc39.src.rpm
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-org.gnome.Terminal.slice/vte-spawn-3d551e3f-bfdc-4e13-844d-72e88a014d42.scope
uid:            0
reason:         file_util.py:68:rmtree:OSError: [Errno 39] Directory not empty: '/var/lib/mock/fedora-rawhide-x86_64/root/builddir/build/BUILD/kernel-6.2-rc7-18-g0983f6bf2bfc'
executable:     /usr/libexec/mock/mock
type:           Python3
package:        mock-3.5-2.fc38
runlevel:       N 5
exception_type: KeyboardInterrupt
crash_function: logOutput
interpreter:    python3-3.11.1-4.fc38.x86_64

Truncated backtrace:
#1 [/usr/lib/python3.11/site-packages/mockbuild/util.py:394] logOutput
#2 [/usr/lib/python3.11/site-packages/mockbuild/util.py:556] do_with_status
#3 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#4 [/usr/lib/python3.11/site-packages/mockbuild/buildroot.py:277] doChroot
#5 [/usr/lib/python3.11/site-packages/mockbuild/backend.py:789] rebuild_package
#6 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#7 [/usr/lib/python3.11/site-packages/mockbuild/backend.py:316] build
#8 [/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py:93] trace
#9 [/usr/lib/python3.11/site-packages/mockbuild/rebuild.py:66] build
#10 [/usr/lib/python3.11/site-packages/mockbuild/rebuild.py:25] rebuild_generic

Comment 1 Mikhail 2023-02-11 11:21:44 UTC
Created attachment 1943513 [details]
File: os_info

Comment 2 Mikhail 2023-02-11 11:21:45 UTC
Created attachment 1943514 [details]
File: environ

Comment 3 Mikhail 2023-02-11 11:21:47 UTC
Created attachment 1943515 [details]
File: mountinfo

Comment 4 Mikhail 2023-02-11 11:21:49 UTC
Created attachment 1943516 [details]
File: open_fds

Comment 5 Mikhail 2023-02-11 11:21:50 UTC
Created attachment 1943517 [details]
File: namespaces

Comment 6 Mikhail 2023-02-11 11:21:52 UTC
Created attachment 1943518 [details]
File: backtrace

Comment 7 Mikhail 2023-02-11 11:21:54 UTC
Created attachment 1943519 [details]
File: cpuinfo

Comment 8 Miroslav Suchý 2023-02-11 13:57:24 UTC
> exception_type: KeyboardInterrupt

The process was interrupted by the user. While in a such condition we should gracefully exit and not print traceback, and this should be fixed - this will have very very low priority for us.

Comment 9 Pavel Raiskup 2023-08-10 13:07:42 UTC
Thank you for the report.  This seems like the same issue resolved in bug #2186613,
or have the same cause.

*** This bug has been marked as a duplicate of bug 2186613 ***