Bug 426424

Summary: Zypper hangs during install
Product: [openSUSE] openSUSE 11.1 Reporter: Hans Petter Jansson <hpj>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED NORESPONSE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dimstar, schubi
Version: Factory   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Hans Petter Jansson 2008-09-15 20:23:19 UTC
I issued a "zypper dup" and it got stuck during the night. I have plenty of free space, etc.

The last output is:

Retrieving: open-vm-tools-2008.09.03-3.i586.rpm [done (40.4 K/s)]
Installing: open-vm-tools-2008.09.03-3 [83%]

A backtrace yields the following:

(gdb) t a a bt

Thread 1 (Thread 0xb718b770 (LWP 16780)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7a80503 in read () from /lib/libc.so.6
#2  0xb7a2717c in _IO_file_underflow () from /lib/libc.so.6
#3  0xb7a2a118 in __underflow () from /lib/libc.so.6
#4  0xb7a1c848 in getdelim () from /lib/libc.so.6
#5  0xb7f5d7b5 in zypp::externalprogram::ExternalDataSource::receiveLine() ()
   from /usr/lib/libzypp.so.508
#6  0xb7dd8397 in zypp::target::rpm::RpmDb::systemReadLine(std::string&) ()
   from /usr/lib/libzypp.so.508
#7  0xb7de5248 in zypp::target::rpm::RpmDb::doInstallPackage(zypp::filesystem::Pathname const&, zypp::base::Flags<zypp::target::rpm::RpmInstFlag>, zypp::callback::SendReport<zypp::target::rpm::RpmInstallReport>&) ()
   from /usr/lib/libzypp.so.508
#8  0xb7de617a in zypp::target::rpm::RpmDb::installPackage(zypp::filesystem::Pathname const&, zypp::base::Flags<zypp::target::rpm::RpmInstFlag>) ()
   from /usr/lib/libzypp.so.508
#9  0xb7e208b9 in zypp::target::TargetImpl::commit(std::list<zypp::PoolItem, std::allocator<zypp::PoolItem> > const&, zypp::ZYppCommitPolicy const&, zypp::ResPool const&) () from /usr/lib/libzypp.so.508
#10 0xb7e23bca in zypp::target::TargetImpl::commit(zypp::ResPool, zypp::ZYppCommitPolicy const&) () from /usr/lib/libzypp.so.508
#11 0xb7f255f7 in zypp::zypp_detail::ZYppImpl::commit(zypp::ZYppCommitPolicy const&) () from /usr/lib/libzypp.so.508
#12 0xb7f1fe43 in zypp::ZYpp::commit(zypp::ZYppCommitPolicy const&) ()
   from /usr/lib/libzypp.so.508
#13 0x080f8eb8 in solve_and_commit(Zypper&) ()
#14 0x0807ae2b in Zypper::doCommand() ()
#15 0x08080c68 in Zypper::safeDoCommand() ()
#16 0x08081c31 in Zypper::main(int, char**) ()
#17 0x080904ce in main ()

I also have this in my process list:

root      3780  0.0  0.0      0     0 pts/6    Z+   02:19   0:00 [rpm] <defunct>

Maybe RPM crashed and zypper failed to detect it?
Comment 1 Hans Petter Jansson 2008-09-16 05:49:46 UTC
It happened again:

Retrieving: open-vm-tools-2008.09.03-5.i586.rpm [done (31.1 K/s)]
Installing: open-vm-tools-2008.09.03-5 [32%]

It's the same package, although it stalled earlier this time. Could it be related to the fact that I'm running this in a vmware instance?
Comment 2 Stanislav Visnovsky 2008-10-27 08:27:38 UTC
Pavol, any idea?
Comment 3 Pavol Rusnak 2008-10-29 17:03:35 UTC
(In reply to comment #1 from Hans Petter Jansson)
> Could it be related to the fact that I'm running this in a vmware instance?

No, as a matter of fact, installing this package makes sense ONLY inside VMware instance.

What is your VMware version?
Comment 4 Stefan Schubert 2008-11-18 11:32:52 UTC
Feel free to reopen the bug if you can provide the requested information.