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 const&,
zypp::base::logger::LogLevel, char const*, char const*, int,
std::basic_string const&)
() from /usr/lib64/libzypp.so.619
#6 0x00007f7bf32582a3 in zypp::base::logger::Loglinebuf::writeout(char const*,
long) () from /usr/lib64/libzypp.so.619
#7 0x00007f7bf3255a7e in zypp::base::logger::Loglinebuf::overflow(int) () from
/usr/lib64/libzypp.so.619
#8 0x00007f7bf2813b00 in sputc (__c=<value optimized out>, this=<value
optimized out>) at
/usr/src/debug/gcc-4.4.1-20090817/obj-x86_64-suse-linux/x86_64-suse-linux/libstdc++-v3/include/streambuf:410
#9 std::basic_ostream::put (__c=<value
optimized out>, this=<value optimized out>)
at
/usr/src/debug/gcc-4.4.1-20090817/obj-x86_64-suse-linux/x86_64-suse-linux/libstdc++-v3/include/bits/ostream.tcc:163
#10 0x000000000043365d in Zypper::cleanup() ()
#11 0x0000000000455e9a in signal_handler(int) ()
#12 <signal handler called>
#13 0x00007f7bf2051616 in __libc_fork () at
./nptl/sysdeps/unix/sysv/linux/fork.c:130
#14 0x00007f7bf3167c77 in zypp::ExternalProgram::start_program(char const*
const*, std::map, std::basic_string, std::less >,
std::allocator const, std::basic_string > > > const&, zypp::ExternalProgram::Stderr_Disposition,
int, bool, char const*) () from /usr/lib64/libzypp.so.619
#15 0x00007f7bf316a3ab in zypp::ExternalProgram::ExternalProgram(char const*
const*, zypp::ExternalProgram::Stderr_Disposition, bool, int, bool,
zypp::filesystem::Pathname const&) ()
from /usr/lib64/libzypp.so.619
#16 0x00007f7bf31829ef in
zypp::KeyRing::Impl::importKey(zypp::filesystem::Pathname const&,
zypp::filesystem::Pathname const&) () from /usr/lib64/libzypp.so.619
#17 0x00007f7bf3182c68 in zypp::KeyRing::Impl::importKey(zypp::PublicKey
const&, bool) () from /usr/lib64/libzypp.so.619
#18 0x00007f7bf30d9bd0 in
zypp::target::rpm::RpmDb::exportTrustedKeysInZyppKeyRing() () from
/usr/lib64/libzypp.so.619
#19 0x00007f7bf30e24cc in
zypp::target::rpm::RpmDb::initDatabase(zypp::filesystem::Pathname,
zypp::filesystem::Pathname, bool) () from /usr/lib64/libzypp.so.619
#20 0x00007f7bf310bdc4 in
zypp::target::TargetImpl::TargetImpl(zypp::filesystem::Pathname const&, bool)
() from /usr/lib64/libzypp.so.619
#21 0x00007f7bf31fb211 in zypp::Target::Target(zypp::filesystem::Pathname
const&, bool) () from /usr/lib64/libzypp.so.619
#22 0x00007f7bf321003c in
zypp::zypp_detail::ZYppImpl::initializeTarget(zypp::filesystem::Pathname
const&, bool) () from /usr/lib64/libzypp.so.619
#23 0x000000000046e70a in init_target(Zypper&) ()
#24 0x00000000004853cc in ?? ()
#25 0x00000000004908a5 in void init_repos,
std::allocator > > >(Zypper&, std::vector,
std::allocator > > const&) ()
#26 0x0000000000486d68 in init_repos(Zypper&) ()
#27 0x000000000043ee72 in Zypper::doCommand() ()
#28 0x0000000000445d88 in Zypper::safeDoCommand() ()
#29 0x0000000000446968 in Zypper::main(int, char**) ()
#30 0x0000000000456094 in main ()
(gdb)
The other zypper process is zombied:
25531 pts/6 T+ 0:00 zypper install search
25641 pts/6 Z+ 0:00 [zypper] <defunct>
obviously a bug, somewhere.
Only occasionally reproduceable.
Reproducible: Sometimes
Steps to Reproduce:
1.
2.
3.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.