[Bug 599698] New: interrupted zypper, now it's hung and won't exit
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c0
Summary: interrupted zypper, now it's hung and won't exit
Classification: openSUSE
Product: openSUSE 11.2
Version: Final
Platform: x86-64
OS/Version: openSUSE 11.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libzypp
AssignedTo: zypp-maintainers@forge.provo.novell.com
ReportedBy: jnelson-suse@jamponi.net
QAContact: qa@suse.de
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9)
Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9
I ran:
sudo zypper ....
and almost immediately realized I gave it the wrong commandline.
I hit control-c several times.
[jnelson@worklaptop:~] sudo zypper install search
^C^C
OK OK! Exiting immediately...
^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^C
it never quit. It's hung.
I became root, and used gdb to attach to zypper, and ran this backtrace:
(gdb) bt
#0 __lll_lock_wait_private () at
./nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1 0x00007f7bf202a7e3 in _L_lock_11371 () from /lib64/libc.so.6
#2 0x00007f7bf2029b24 in __libc_realloc (oldmem=0x7f7bf2307e60, bytes=81) at
malloc.c:3813
#3 0x00007f7bf2097ff5 in __vasprintf_chk (result_ptr=0x7fff57047dd0, flags=1,
format=0x7f7bf32b8d60 "%s <%d> %s(%d) [%s] %s(%s):%d %s", args=<value optimized
out>) at vasprintf_chk.c:90
#4 0x00007f7bf324e0a2 in zypp::str::form(char const*, ...) () from
/usr/lib64/libzypp.so.619
#5 0x00007f7bf3253b03 in
zypp::base::LogControl::LineFormater::format(std::basic_string
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c1
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c2
Petr Baudis
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c3
--- Comment #3 from Ján Kupec
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c4
--- Comment #4 from Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c5
--- Comment #5 from Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c6
--- Comment #6 from Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c7
--- Comment #7 from Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c8
--- Comment #8 from Jon Nelson
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=599698
http://bugzilla.novell.com/show_bug.cgi?id=599698#c9
--- Comment #9 from Jon Nelson
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c10
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c11
--- Comment #11 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c12
--- Comment #12 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c13
--- Comment #13 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c14
--- Comment #14 from Ján Kupec
As long as you e.g. do not save volatile .repo files in /etc/zypp/repos.d, it
hm, i do. zypper in foo.rpm and zypper --plus-repo does temporarily add such repo. But i guess this could be done without it, right?
would be easy to change the RepoManager to wipe excess dirs below /var/cache/zypp (data of volatile repos as well as leftover temp dirs after crash/^C).
Such a check would not cost much, if everything is clean.
Yes, we can do this. Then there are also leftovers from downloads in /var/adm/mount, tmp files from keyring manipulation (maybe not an issue), maybe more. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c15
--- Comment #15 from Michael Andres
(In reply to comment #13)
As long as you e.g. do not save volatile .repo files in /etc/zypp/repos.d, it
hm, i do. zypper in foo.rpm and zypper --plus-repo does temporarily add such repo. But i guess this could be done without it, right?
Yes, a RepoInfo in memory should be sufficient.
Then there are also leftovers from downloads in /var/adm/mount, tmp files from keyring manipulation (maybe not an issue), maybe more.
Should be solvable too, as we usually use temp. dirs. We could create a files in the tmpdirs root -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c16
--- Comment #16 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c17
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c19
--- Comment #19 from Jon Nelson
https://bugzilla.novell.com/show_bug.cgi?id=599698
https://bugzilla.novell.com/show_bug.cgi?id=599698#c20
Michael Andres
participants (1)
-
bugzilla_noreply@novell.com