[Bug 1117225] New: zsh hangs after some zypper commands
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225 Bug ID: 1117225 Summary: zsh hangs after some zypper commands Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp Assignee: zypp-maintainers@forge.provo.novell.com Reporter: sseebergelverfeldt@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- When running some zypper commands, for example ref, ar and rr, the zsh prompt is not responsive for some time after zypper is finished. That means that the new prompt line appears but no input is shown. The unresponsiveness lasts for a few minutes. After that, all entered input appears at once and zsh is usable again. There is no error message from either zypper or zsh. This happens in the GNOME terminal emulator as well as in TTY1. It seems that one condition must be met for this bug to occur: zypper must perform some actual change. Either there must be new repo meta data, so there is an actual refresh, or an repo must be added, removed, etc. If there is no new repository meta data during a refresh, then there is no problem with zsh. This also happens with different .zshrc configuration files. I can reproduce this consistently. Installed versions: zsh: 5.6.2-lp150.2.9.1 zypper: 1.14.12-lp150.2.9.2 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225#c1
--- Comment #1 from Sven Seeberg
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225#c2
Michael Andres
2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] ZYppFactory.cc(_closeLockFile):186 Close lockfile /var/run/zypp.pid 2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] ZYppFactory.cc(~ZYpp):318 ZYpp is off... 2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] RpmDb.cc(closeDatabase):720 Calling closeDatabase: RpmDb[V4(X--)V3(---): '(/)/var/lib/rpm'] 2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] librpmDb.cc(blockAccess):328 Block access 2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] RpmDb.cc(closeDatabase):751 closeDatabase: RpmDb[NO_INIT] 2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] TargetImpl.cc(~TargetImpl):817 Targets closed 2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] RpmDb.cc(~RpmDb):254 ~RpmDb() 2018-11-26 09:34:05 <1> fibonacci(1126) [zypp] RpmDb.cc(~RpmDb):257 ~RpmDb() end
Running `top` in an other window might help to identify a program starting after zypper/rpm ended. I'm not familiar with zsh, but maybe your prompt definition has some command embedded, which causes the delay (similar to bash $PROMPT_COMMAND). Do other shells (bash, sh,... ) show th same symptoms? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225#c3
Sven Seeberg
[zypper] main.cc(~Bye):59 ===== Exiting main() ===== [zypper] Zypper.cc(~Zypper):600 Zypper instance destroyed. Bye! [zypp] PathInfo.cc(recursive_rmdir):426 recursive_rmdir /var/tmp/zypp.MxhSUs [zypp++] TmpPath.cc(~Impl):78 TmpPath cleaned up /var/tmp/zypp.MxhSUs{d 0700 0/0} [zypp] ZYppFactory.cc(_openLockFile):168 Open lockfile /var/run/zypp.pid [zypp] ZYppFactory.cc(~ZYppGlobalLock):117 Cleanned lock file. (6820) [zypp] ZYppFactory.cc(_closeLockFile):186 Close lockfile /var/run/zypp.pid [zypp] ZYppFactory.cc(~ZYpp):318 ZYpp is off...
Looking at top/htop, I can see no process spawned by zsh after zypper is finished. I'll investigate on the zsh side. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225#c4
--- Comment #4 from Michael Andres
In the end zypper is ending properly(?).
Yes. Not all commands also require the rpm-db. They end droping the zypp lockfile. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225#c5
Michael Andres
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225
http://bugzilla.opensuse.org/show_bug.cgi?id=1117225#c6
--- Comment #6 from Sven Seeberg
participants (1)
-
bugzilla_noreply@novell.com