[Bug 650920] New: Zypper asumes repository baseurl list is not empty
https://bugzilla.novell.com/show_bug.cgi?id=650920 https://bugzilla.novell.com/show_bug.cgi?id=650920#c0 Summary: Zypper asumes repository baseurl list is not empty Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: dheidler@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- (gdb) bt #0 0x00007ffff7967960 in boost::detail::atomic_increment (pw=0x39) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:66 #1 0x00007ffff7967982 in boost::detail::sp_counted_base::add_ref_copy (this=0x31) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:133 #2 0x00007ffff79679bd in boost::detail::shared_count::shared_count (this=0x7fffffffa4f8, r=...) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:228 #3 0x00007ffff7bd2e89 in boost::shared_ptr<zypp::url::UrlBase>::shared_ptr (this=0x7fffffffa4f0) at /usr/include/boost/smart_ptr/shared_ptr.hpp:169 #4 0x00007ffff7bd2eaf in zypp::RWCOW_pointer<zypp::url::UrlBase, zypp::rw_pointer::Shared<zypp::url::UrlBase> >::RWCOW_pointer (this=0x7fffffffa4f0) at /root/libzypp/zypp/base/PtrTypes.h:377 #5 0x00007ffff7bd0a47 in zypp::Url::Url (this=0x7fffffffa4f0, url=...) at /root/libzypp/zypp/Url.cc:293 #6 0x00007ffff7a5c85a in zypp::repo::RepoVariablesUrlReplacer::operator() (this=0x7fffffffa508, value=...) at /root/libzypp/zypp/repo/RepoVariables.cc:68 #7 0x000000000047e18e in dereference (zypper=..., repo=...) at /usr/include/boost/iterator/transform_iterator.hpp:137 #8 dereference<boost::transform_iterator<zypp::repo::RepoVariablesUrlReplacer, std::_Rb_tree_const_iterator<zypp::Url>, boost::use_default, boost::use_default> > (zypper=..., repo=...) at /usr/include/boost/iterator/iterator_facade.hpp:516 #9 operator* (zypper=..., repo=...) at /usr/include/boost/iterator/iterator_facade.hpp:634 #10 refresh_repo (zypper=..., repo=...) at /root/zypper/src/repos.cc:1180 #11 0x000000000048aed5 in refresh_repos (zypper=...) at /root/zypper/src/repos.cc:1121 #12 0x00000000004547f8 in Zypper::doCommand (this=0x79d960) at /root/zypper/src/Zypper.cc:3205 #13 0x000000000045bd68 in Zypper::safeDoCommand (this=0x79d960) at /root/zypper/src/Zypper.cc:841 #14 0x0000000000462128 in Zypper::main (this=0x79d960, argc=<value optimized out>, argv=<value optimized out>) at /root/zypper/src/Zypper.cc:132 #15 0x00000000004350e7 in main (argc=2, argv=0x7fffffffe578) at /root/zypper/src/main.cc:109 zypper frequently uses *repo.baseUrlsBegin() which fails, if the list is empty. It could be replaced with repo.url(), which gives an empty Url Object, if the list is empty, and otherwise returns the first baseUrl element. Zypper needs top be able to handle repos without baseurls anyway -- 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=650920 https://bugzilla.novell.com/show_bug.cgi?id=650920#c1 --- Comment #1 from Dominik Heidler <dheidler@novell.com> 2010-11-03 10:45:01 UTC --- zypper lr -u also creates a segfault if you have no baseurl (or only a mirrorlist url - the expectet behaviour in this case would be, to print the mirrorlist) -- 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=650920 https://bugzilla.novell.com/show_bug.cgi?id=650920#c2 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED CC| |jkupec@novell.com AssignedTo|zypp-maintainers@forge.prov |jkupec@novell.com |o.novell.com | --- Comment #2 from Ján Kupec <jkupec@novell.com> 2010-11-03 11:32:59 UTC --- Thanx Dominik, i'll fix this. -- 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=650920 https://bugzilla.novell.com/show_bug.cgi?id=650920#c3 Dominik Heidler <dheidler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Dominik Heidler <dheidler@novell.com> 2010-12-06 15:07:52 UTC --- I fixed it in zypper 1.5.2 @Jan: could you please verify this patch? -- 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