[Bug 369893] New: zypper si results in segmentation fault
https://bugzilla.novell.com/show_bug.cgi?id=369893 Summary: zypper si results in segmentation fault Product: openSUSE 11.0 Version: Alpha 2plus Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: felix@derklecks.de QAContact: dmacvicar@novell.com Found By: --- I am unable to install any source packages with zypper. macbook:~ # zypper si hal Segmentation fault (core dumped) [New process 30643] #0 0xb7f5dc9b in zypp::sat::Solvable::get (this=0x8) at /usr/src/packages/BUILD/libzypp-4.3.2/zypp/sat/Solvable.cc:38 38 /usr/src/packages/BUILD/libzypp-4.3.2/zypp/sat/Solvable.cc: No such file or directory. in /usr/src/packages/BUILD/libzypp-4.3.2/zypp/sat/Solvable.cc (gdb) bt #0 0xb7f5dc9b in zypp::sat::Solvable::get (this=0x8) at /usr/src/packages/BUILD/libzypp-4.3.2/zypp/sat/Solvable.cc:38 #1 0xb7f5e3e5 in zypp::sat::Solvable::edition (this=0x8) at /usr/src/packages/BUILD/libzypp-4.3.2/zypp/sat/Solvable.cc:177 #2 0x080b1464 in ?? () #3 0x080b603b in source_install () #4 0x0806ecbd in Zypper::doCommand () #5 0x08074968 in Zypper::safeDoCommand () #6 0x0807579e in Zypper::main () #7 0x08086c2e in main () Current language: auto; currently c++ -- 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=369893
Pavel Šefránek
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c1
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c2
--- Comment #2 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c3
--- Comment #3 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c4
--- Comment #4 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c5
--- Comment #5 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c6
Michael Andres
Nice, this works via poolitem.status().setToBeInstalled( zypp::ResStatus::USER ) as far as the solver is concerned.
They are in the pool.
But there are three more problems: 1) commit does not install src packages (as we did not deal with src packages through the pool previously)
Right, needs to be fixed.
2) we still need srcpkg->dep(Dep::REQUIRES) to be able to do 'zypper si --no-build-deps foo' (only install the source package, ...well we have ZYpp::installSrcPackage(srcpkg) for that)
No, once we handle srcpkg in commit, we we'll obsolete ZYpp::installSrcPackage.
or to show the build requires to the user.
I'd sugest to add a policy flag to the resolver. With no-build-deps we simply won't pass them to the satsolver. (Schubi?)
3) And finally, the build deps are generated only in rpm-md metadata, we don't have them in susetags:
This depends on what autobuild generates. (Rudi?)
So if we are to put the srcpackages into the pool together with the others (i like this approach btw, but i don't know the reasons why we avoided it in the past)
Memory and speed considerations. -- 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=369893
User ro@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c7
--- Comment #7 from Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=369893
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c8
Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c9
--- Comment #9 from Ján Kupec
(In reply to comment #5 from Jan Kupec)
2) we still need srcpkg->dep(Dep::REQUIRES) to be able to do <cut> or to show the build requires to the user.
I'd sugest to add a policy flag to the resolver. With no-build-deps we simply won't pass them to the satsolver. (Schubi?)
That would solve the build-deps problem, but we need this also e.g. for zypper info (to show the list of the dependencies of the package), yast needs to display that info too. -- 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=369893
User fm@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c10
--- Comment #10 from Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=369893
Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=369893
User fm@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c11
--- Comment #11 from Felix Möller
https://bugzilla.novell.com/show_bug.cgi?id=369893
User coolo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c12
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c13
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c14
--- Comment #14 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=369893
User schubi@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c15
--- Comment #15 from Stefan Schubert
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c16
--- Comment #16 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
User mls@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c17
--- Comment #17 from Michael Schröder
https://bugzilla.novell.com/show_bug.cgi?id=369893
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c18
--- Comment #18 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=369893
User ma@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c19
--- Comment #19 from Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c20
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c21
--- Comment #21 from Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=369893
User ro@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c22
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=369893
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=369893#c23
Ján Kupec
participants (1)
-
bugzilla_noreply@novell.com