[Bug 366548] New: satsolver-tools's rpmdb2solv runs for ages
https://bugzilla.novell.com/show_bug.cgi?id=366548 Summary: satsolver-tools's rpmdb2solv runs for ages Product: openSUSE 11.0 Version: Alpha 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: burnus@gmx.de QAContact: dmacvicar@novell.com Found By: --- On one of my computers, zypper and yast2 sw_single start /bin/sh -c rpmdb2solv -r '/' > '/var/cache/zypp/@SystemohMZAJ' This meanwhile runs for CPUTIME = 247:29.41 which seems to be much too long. Running it as user (after killing it) with strace: [...] open("//var/lib/rpm/Packages", O_RDONLY) = 3 fcntl(3, F_SETFD, FD_CLOEXEC) = 0 fstat(3, {st_mode=S_IFREG|0644, st_size=54759424, ...}) = 0 pread(3, "\0\0\0\0\1\0\0\0\0\0\0\0a\25\6\0\10\0\0\0\0\20\0\0\0\10\0\0\216\16\0\0"..., 4096, 0) = 4096 [...] pread(3, "\0\0\0\0\1\0\0\0x\17\0\0w\17\0\0\0\0\0\0\1\0`\0\0\7\0\0\0\0\0\0"..., 4096, 16220160) = 4096 mremap(0x2b554037f000, 344064, 40960, MREMAP_MAYMOVE) = 0x2b554037f000 lsof "/var/lib/rpm/Packages" shows that no other program accesses that file. I tried to find a relevant log file, but without success. -- 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=366548
User burnus@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c1
--- Comment #1 from Tobias Burnus
https://bugzilla.novell.com/show_bug.cgi?id=366548
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=366548
User burnus@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c2
--- Comment #2 from Tobias Burnus
https://bugzilla.novell.com/show_bug.cgi?id=366548
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c3
--- Comment #3 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=366548
User burnus@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c4
--- Comment #4 from Tobias Burnus
https://bugzilla.novell.com/show_bug.cgi?id=366548
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c5
--- Comment #5 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=366548
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c6
--- Comment #6 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=366548
User burnus@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c7
--- Comment #7 from Tobias Burnus
I really need debug symbols for this, where's that debug package? Good question, at least not here: http://download.opensuse.org/pub/opensuse/distribution/SL-OSS-factory-debug/...
Hmm, I think I found something by code inspection. Can you make a satsolver-tools RPM (w/ debug symbols) or a rpmdb2solv available? (I'm on x86-64).
.. OK, I found one packages which has debug symbols. Judging from the changelog it is the same version. Running it and pressing then Ctrl-C gives the following backtrace. The package was found at: http://download.opensuse.org/repositories/zypp:/svn/openSUSE_Factory/x86_64/ Note: I only extracted rpmdb2solv and run it as user. (gdb) bt #0 0x000000000040c05d in stringpool_strn2id (ss=0xda2010, str=0x7fff7d616dd6 "", len=<value optimized out>, create=1) at /usr/src/packages/BUILD/satsolver-0.0.20/src/hash.h:49 #1 0x000000000040bcd6 in str2id (pool=0xda2010, str=0xd57
, create=2103537110) at /usr/src/packages/BUILD/satsolver-0.0.20/src/poolid.c:30 #2 0x0000000000414819 in repo_fix_legacy (repo=0xdbb220, provides=<value optimized out>, supplements=131) at /usr/src/packages/BUILD/satsolver-0.0.20/src/repo.c:399 #3 0x0000000000404875 in rpm2solv (pool=0xda2010, repo=0xdbb220, repodata=0xdbb2c0, s=0xdb7310, rpmhead=0x2b322d503010) at /usr/src/packages/BUILD/satsolver-0.0.20/tools/repo_rpmdb.c:630 #4 0x00000000004062de in repo_add_rpmdb (repo=0xd57, ref=0x0, rootdir=0x41b099 "/") at /usr/src/packages/BUILD/satsolver-0.0.20/tools/repo_rpmdb.c:813 #5 0x0000000000402e64 in main (argc=<value optimized out>, argv=0x7fff7d618468) at /usr/src/packages/BUILD/satsolver-0.0.20/tools/rpmdb2solv.c:59 -- 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=366548
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c8
--- Comment #8 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=366548
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c9
--- Comment #9 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=366548
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c10
--- Comment #10 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=366548
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=366548#c11
Michael Schröder
participants (1)
-
bugzilla_noreply@novell.com