Bug 1084795

Summary: zypper hangs when quickly interrupted with C-c
Product: [openSUSE] openSUSE Distribution Reporter: Forgotten User 3iFmpWffVQ <forgotten_3iFmpWffVQ>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.0   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User 3iFmpWffVQ 2018-03-10 19:24:28 UTC
When running 'zypper info zypper' or 'zypper search zypper' and immediately interrupting it with C-c, zypper hangs indefinitely and then can only be killed with kill -9.

$ zypper info zypper
^CLoading repository data...
^C
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C

Or also

$ zypper info zypper
^CLoading repository data...
^C
Trying to exit gracefully...
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^Z
[1]+  Stopped                 zypper info zypper
$ jobs
[1]+  Stopped                 zypper info zypper
$ kill %1

[1]+  Stopped                 zypper info zypper
$ 

$ jobs
[1]+  Running                 zypper info zypper &
$ sleep 10
$ jobs
[1]+  Running                 zypper info zypper &
$ kill %1
$ jobs
[1]+  Running                 zypper info zypper &
$ kill -9 %1
$  
[1]+  Killed                  zypper info zypper
Comment 1 Michael Andres 2018-05-28 11:13:50 UTC
The cause for bug 1092413 is an undefined behavior which not necessarily leads to a core dump. During testing we also recognized the behavior you describe here.

Bug 1092413 is fixed in
  TUMBLEWEED      zypper 1.14. 5   
  SLE-15          zypper 1.14. 5   
  SLE-12-SP3      zypper 1.13.42   
  SLE-12-SP2      zypper 1.13.42   
  SLE-12-SP1      zypper 1.12.55   
  SLE-12          zypper 1.11.67

This most probably fixes your issue as well. In case it does not, please repoen the bug and attach the /var/log/zypper.log after you had to kill zypper.

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