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_ptrzypp::url::UrlBase::shared_ptr
(this=0x7fffffffa4f0) at /usr/include/boost/smart_ptr/shared_ptr.hpp:169
#4 0x00007ffff7bd2eaf in zypp::RWCOW_pointerzypp::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 dereferencezypp::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.