[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 <ps@pjoul.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ps@pjoul.cz Status|NEW |ASSIGNED -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c1 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jkupec@novell.com Summary|zypper si results in segmentation fault |zypper si does not install build dependencies --- Comment #1 from Ján Kupec <jkupec@novell.com> 2008-03-16 23:02:49 MST --- I fixed the segfault in r9173 in zypper, but the injecting of the build requires still does not work because srcpkg->dep(Dep::REQUIRES) seems to be empty => hijacking this bug to resolve that -- 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 mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c2 --- Comment #2 from Michael Schröder <mls@novell.com> 2008-03-17 04:39:32 MST --- (Why would you want to inject the requires? The solver sees the BuildRequires as normal requires of the package, so it should work out of the box.) -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c3 --- Comment #3 from Ján Kupec <jkupec@novell.com> 2008-03-17 05:30:11 MST --- Because i thought we don't put srcpackages into the solver pool, do we?. But even if i do zypp->resolver()->addRequire(Capability( srcpkg->name(), Rel::EQ, srcpkg->edition(), ResTraits<SrcPackage>::kind)); i get: Problem: nothing provides requested srcpackage:zypper = 0.10.4-2 Solution 1: do not ask to install a solvable providing srcpackage:zypper = 0.10.4-2 -- 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 mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c4 --- Comment #4 from Michael Schröder <mls@novell.com> 2008-03-17 05:51:28 MST --- Dunno what libzypp does, in my understanding they belong to the pool. Something providing "srcpackage:zypper" is not the right way to address a source package, as they do not provide anything. You must provide the solver the ID of the package. (This may need some fixing in the libzypp layer.) -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c5 --- Comment #5 from Ján Kupec <jkupec@novell.com> 2008-03-17 06:43:18 MST --- Nice, this works via poolitem.status().setToBeInstalled( zypp::ResStatus::USER ) as far as the solver is concerned. $ src/zypper si zypper Reading installed packages... The following NEW packages are going to be installed: libzypp-devel libsatsolver-devel The following NEW srcpackages are going to be installed: zypper 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) 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) or to show the build requires to the user. 3) And finally, the build deps are generated only in rpm-md metadata, we don't have them in susetags: ##---------------------------------------- =Pkg: zypper 0.10.3 3 src =Cks: SHA1 e107c279d204938a43182e1c332a029672dc13c5 =Loc: 1 zypper-0.10.3-3.src.rpm src =Siz: 313403 305351 =Shr: zypper 0.10.3 3 ppc 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) we need to fix the above. Note that having the srcpackages in the pool also solves the problem of the query API vs. the srcpackages! -- 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 ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c6 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schubi@novell.com, ro@novell.com, ma@novell.com --- Comment #6 from Michael Andres <ma@novell.com> 2008-03-17 08:49:31 MST --- (In reply to comment #5 from Jan Kupec)
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 <ro@novell.com> 2008-03-17 11:45:31 MST --- no, we do not handle _any_ dependencies for src-rpms currently. (and I'm not really sure it would make sense. 9 out of 10 times you get a src-rpm only to look at it, not to actually compile it). -- 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 mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c8 Michael Schröder <mls@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@novell.com --- Comment #8 from Michael Schröder <mls@novell.com> 2008-03-18 05:01:34 MST --- Well, you get a dependency error if you install it with rpm, so the dependencies should be in the metadata. It should be optional if zypper uses them or not. -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c9 --- Comment #9 from Ján Kupec <jkupec@novell.com> 2008-03-21 08:22:37 MST --- (In reply to comment #6 from Michael Andres)
(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 <fm@opensuse.org> 2008-04-11 14:02:46 MST --- Currently I am not able to install src.rpms at all with zypper: # zypper si bash Reading installed packages... bring it back! problems 7 solutions 7 Problem: nothing provides requested srcpackage:bash = 3.2-97 Lösung 1: do not ask to install a solvable providing srcpackage:bash = 3.2-97 Choose the above solution using '1' or cancel using 'c' [1/A]: 1 Abhängigkeiten werden aufgelöst... bring it back! problems 7 solutions 7 Problem: nothing provides requested srcpackage:bash = 3.2-97 Lösung 1: do not ask to install a solvable providing srcpackage:bash = 3.2-97 Choose the above solution using '1' or cancel using 'c' [1/A]: A # -- 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 Felix Möller <fm@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Alpha 2plus |Factory -- 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#c11 --- Comment #11 from Felix Möller <fm@opensuse.org> 2008-05-11 09:05:15 MST --- zypper si is still not working at all. # LANG=CC zypper si NetworkManager Reading installed packages... Problem: nothing provides requested srcpackage:NetworkManager = 0.7.0.r3556-10 Have you enabled all requested repositories ? Solution 1: do not ask to install a solvable providing srcpackage:NetworkManager = 0.7.0.r3556-10 Choose the above solution using '1' or cancel using 'c' [1/C]: 1 how am I supposed to install src.rpm with zypper? -- 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 coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c12 Stephan Kulow <coolo@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenther@novell.com --- Comment #12 from Stephan Kulow <coolo@novell.com> 2008-05-14 10:35:33 MST --- *** Bug 390344 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=390344 -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c13 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hfiguiere@novell.com --- Comment #13 from Ján Kupec <jkupec@novell.com> 2008-05-30 19:05:35 MDT --- *** Bug 378426 has been marked as a duplicate of this bug. *** https://bugzilla.novell.com/show_bug.cgi?id=378426 -- 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 mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c14 --- Comment #14 from Michael Schröder <mls@novell.com> 2008-06-02 02:24:20 MDT --- Btw, there's a way to make the solver select a sourcepackage: you have to create a special dependency that selects only sources, i.e. like "NetworkManager.src". I don't know if libzypp exposes this interface, though. Schubi? -- 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 schubi@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c15 --- Comment #15 from Stefan Schubert <schubi@novell.com> 2008-06-02 02:29:20 MDT --- comment #14 currently not. -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c16 --- Comment #16 from Ján Kupec <jkupec@novell.com> 2008-06-02 04:22:45 MDT --- comment #14: installing the src rpm only isn't a problem, the old ZYpp::installSrcPackage still works (zypper si -D/--no-build-deps foo). The problem is getting/marking its build deps comment #5, #6. -- 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 mls@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c17 --- Comment #17 from Michael Schröder <mls@novell.com> 2008-06-02 07:26:53 MDT --- That was also what I was talking about: how to put a request for a source package into a solver job. -- 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 ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c18 --- Comment #18 from Michael Andres <ma@novell.com> 2008-06-03 06:41:41 MDT --- You can find the PoolItem and select it for installation: - Via a Selectable: ui::Selectable::Ptr srcp( getZYpp()->poolProxy().lookup( ResKind::srcpackage, "zypper" ) ); if ( srcp ) srcp->setStatus( S_Install ); - By iterating the pool and manually selecting some available version: PoolItem srcp; for_( it, pool.byIdentBegin( ResKind::srcpackage, "zypper" ), pool.byIdentEnd( ResKind::srcpackage, "zypper" ) ) { if ( it->status().isInstalled() ) continue; if ( !srcp || srcp->edition() < (*it)->edition() ) srcp = *it; } if ( srcp ) srcp.status().setTransact( true, ResStatus::USER ); The only thing that currently does not work is trying to select the source package via: addRequire( Capability(srcpkg->name(), Rel::EQ, srcpkg->edition(), ResTraits<SrcPackage>::kind) ); This is because a source package does not provide its "name == edition". But this will be fixed. Capability will rewrite the capability into something the satsolver understands. --- @Jano: As the current zyyper code (in zypper-misc.cc(2663):build_deps_install) already looks up some appropriate package: SrcPackage::constPtr srcpkg = source_find(*it); the following should select it: if (srcpkg) PoolItem(srcpkg).status().setTransact( true, ResStatus::USER ); No need to drop the item you found, and ask the solver to find it again ;) -- 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 ma@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c19 --- Comment #19 from Michael Andres <ma@novell.com> 2008-06-03 12:07:27 MDT --- libzypp 4.26.1 now also allows resolver->addRequire( Capability(srcpkg->name(), Rel::EQ, srcpkg->edition(), ResTraits<SrcPackage>::kind) ); -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c20 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |coolo@novell.com Status|ASSIGNED |NEEDINFO Info Provider| |ro@novell.com --- Comment #20 from Ján Kupec <jkupec@novell.com> 2008-06-05 05:37:55 MDT --- Great, it works now, the source rpm installs fine. But the build deps are still missing in the susetags metadata (see comment #7 and #8). Rpmmd works fine. Rudi, Coolo, can we get this done yet? -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c21 --- Comment #21 from Ján Kupec <jkupec@novell.com> 2008-06-05 05:42:00 MDT --- (In reply to comment #18 from Michael Andres) Hm... true :O) -- 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 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |334207 -- 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#c22 Ruediger Oertel <ro@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|ro@novell.com | --- Comment #22 from Ruediger Oertel <ro@novell.com> 2008-06-05 09:03:14 MDT --- changed create_package_descr to include requires list for src rpms. -- 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 jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=369893#c23 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #23 from Ján Kupec <jkupec@novell.com> 2008-06-06 03:18:22 MDT --- Nice, it works now with susetags, too, thanx! I opened new bugs for the remaining issues (bug 397848 and bug 397853) so i'm closing this one. -- 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.
participants (1)
-
bugzilla_noreply@novell.com