Bug 1192337

Summary: zypper crashes in WSL after latest update
Product: [openSUSE] openSUSE Distribution Reporter: Joachim Mairböck <j.mairboeck>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Leap 15.3   
Target Milestone: ---   
Hardware: x86-64   
OS: Windows 10   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joachim Mairböck 2021-11-04 10:07:33 UTC
After installing the lastest package-manager update in WSL 1 (openSUSE-SLE-15.3-2021-3501), re-running "sudo zypper patch" fails with "Segmentation fault (core dumped)".

The YaST package manager still works (thankfully).

GDB Backtrace of "zypper patch":

#0  0x00007ffffef9fd8a in zypp::LogClient::pushMessage (this=this@entry=0x7ffff5cb0540, msg=...)
    at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/base/LogControl.cc:255
#1  0x00007ffffef9d27d in zypp::base::logger::LogControlImpl::putStream (message_r="Error querying socket domain: ",
    line_r=530,
    func_r=0x7fffff0fe698 <zyppng::Socket::fromSocket(int, zyppng::Socket::SocketState)::__FUNCTION__> "fromSocket",
    file_r=0x7fffff0fe268 "socket.cc", level_r=zypp::base::logger::E_MIL, group_r="DEFINE_LOGGROUP++",
    this=0x7ffff5cb0540) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/base/LogControl.cc:639
#2  zypp::base::logger::putStream (buffer_r="Error querying socket domain: ", line_r=530,
    func_r=0x7fffff0fe698 <zyppng::Socket::fromSocket(int, zyppng::Socket::SocketState)::__FUNCTION__> "fromSocket",
    file_r=0x7fffff0fe268 "socket.cc", level_r=zypp::base::logger::E_MIL, group_r="DEFINE_LOGGROUP++")
    at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/base/LogControl.cc:746
#3  zypp::base::logger::Loglinebuf::writeout (this=0x7ffff0006060, s=s@entry=0x7ffff5caf497 "\n", n=1)
    at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/base/LogControl.cc:453
#4  0x00007ffffefa09fb in zypp::base::logger::Loglinebuf::overflow (this=<optimized out>, ch=<optimized out>)
    at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/base/LogControl.cc:437
#5  0x00007ffffe040999 in std::ostream::put(char) () from /usr/lib64/libstdc++.so.6
#6  0x00007ffffefd6fd3 in std::endl<char, std::char_traits<char> > (__os=...) at /usr/include/c++/7/ostream:591
#7  std::ostream::operator<< (__pf=<optimized out>, this=0x7ffff0006100) at /usr/include/c++/7/ostream:113
#8  zyppng::Socket::fromSocket (fd=22, state=state@entry=zyppng::Socket::ConnectedState)
    at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/io/socket.cc:530
#9  0x00007ffffefd742b in zyppng::Socket::accept (this=<optimized out>)
    at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/io/socket.cc:520
#10 0x00007ffffef9e3e4 in zypp::LogThread::workerMain()::{lambda()#1}::operator()() const (__closure=0x7ffff0004b28)
    at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/base/LogControl.cc:153
#11 0x00007ffffefa1699 in sigc::adaptor_functor<zypp::LogThread::workerMain()::{lambda()#1}>::operator()() const (
    this=<optimized out>) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:256
#12 zyppng::internal::lock_shared<zypp::LogThread::workerMain()::{lambda()#1}>::operator()<>() const (
    this=<optimized out>) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/base/signals.h:288
#13 sigc::internal::slot_call<zyppng::internal::lock_shared<zypp::LogThread::workerMain()::{lambda()#1}>, void>::call_it--Type <RET> for more, q to quit, c to continue without paging--c
(sigc::internal::slot_rep*) (rep=<optimized out>) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:483
#14 0x00007ffffefd2bea in sigc::internal::signal_emit0<void, sigc::nil>::emit (impl=0x7ffff0004ac0) at /usr/include/sigc++-2.0/sigc++/signal.h:794
#15 sigc::signal0<void, sigc::nil>::emit (this=<optimized out>) at /usr/include/sigc++-2.0/sigc++/signal.h:2800
#16 zyppng::SocketPrivate::<lambda(const auto:5&)>::operator()<zyppng::SocketPrivate::ListeningState> (__closure=<optimized out>, currState=...) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/io/socket.cc:388
#17 std::__invoke_impl<void, zyppng::SocketPrivate::onSocketActivated(int)::<lambda(const auto:5&)>, zyppng::SocketPrivate::ListeningState&> (__f=...) at /usr/include/c++/7/bits/invoke.h:60
#18 std::__invoke<zyppng::SocketPrivate::onSocketActivated(int)::<lambda(const auto:5&)>, zyppng::SocketPrivate::ListeningState&> (__fn=...) at /usr/include/c++/7/bits/invoke.h:95
#19 std::__detail::__variant::__gen_vtable_impl<std::__detail::__variant::_Multi_array<void (*)(zyppng::SocketPrivate::onSocketActivated(int)::<lambda(const auto:5&)>&&, std::variant<zyppng::SocketPrivate::InitialState, zyppng::SocketPrivate::ConnectingState, zyppng::SocketPrivate::ConnectedState, zyppng::SocketPrivate::ListeningState, zyppng::SocketPrivate::ClosingState, zyppng::SocketPrivate::ClosedState>&)>, std::tuple<std::variant<zyppng::SocketPrivate::InitialState, zyppng::SocketPrivate::ConnectingState, zyppng::SocketPrivate::ConnectedState, zyppng::SocketPrivate::ListeningState, zyppng::SocketPrivate::ClosingState, zyppng::SocketPrivate::ClosedState>&>, std::integer_sequence<long unsigned int, 3> >::__visit_invoke(zyppng::SocketPrivate::<lambda(const auto:5&)> &&, std::variant<zyppng::SocketPrivate::InitialState, zyppng::SocketPrivate::ConnectingState, zyppng::SocketPrivate::ConnectedState, zyppng::SocketPrivate::ListeningState, zyppng::SocketPrivate::ClosingState, zyppng::SocketPrivate::ClosedState> &) (__visitor=..., __vars#0=...) at /usr/include/c++/7/variant:687
#20 0x00007ffffefd0988 in std::visit<zyppng::SocketPrivate::onSocketActivated(int)::<lambda(const auto:5&)>, std::variant<zyppng::SocketPrivate::InitialState, zyppng::SocketPrivate::ConnectingState, zyppng::SocketPrivate::ConnectedState, zyppng::SocketPrivate::ListeningState, zyppng::SocketPrivate::ClosingState, zyppng::SocketPrivate::ClosedState>&> (__visitor=...) at /usr/include/c++/7/variant:1259
#21 zyppng::SocketPrivate::onSocketActivated (this=<optimized out>, ev=<optimized out>) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/io/socket.cc:328
#22 0x00007ffffefd8deb in sigc::bound_mem_functor2<void, zyppng::SocketPrivate, zyppng::SocketNotifier const&, int>::operator() (_A_a2=<optimized out>, _A_a1=..., this=<optimized out>) at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:2143
#23 sigc::adaptor_functor<sigc::bound_mem_functor2<void, zyppng::SocketPrivate, zyppng::SocketNotifier const&, int> >::operator()<zyppng::SocketNotifier const&, int const&> (_A_arg2=<optimized out>, _A_arg1=..., this=<optimized out>) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:108
#24 zyppng::internal::lock_shared<sigc::bound_mem_functor2<void, zyppng::SocketPrivate, zyppng::SocketNotifier const&, int>, zyppng::SocketPrivate>::operator()<zyppng::SocketNotifier const&, int const&> (this=<optimized out>) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/base/signals.h:290
#25 sigc::internal::slot_call<zyppng::internal::lock_shared<sigc::bound_mem_functor2<void, zyppng::SocketPrivate, zyppng::SocketNotifier const&, int>, zyppng::SocketPrivate>, void, zyppng::SocketNotifier const&, int>::call_it (rep=<optimized out>, a_#0=..., a_#1=<optimized out>) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:451
#26 0x00007ffffefc7fd8 in sigc::internal::signal_emit2<void, zyppng::SocketNotifier const&, int, sigc::nil>::emit (_A_a2=@0x7ffff5caf89c: 1, _A_a1=..., impl=0x7ffff0004a10) at /usr/include/sigc++-2.0/sigc++/signal.h:1296
#27 sigc::signal2<void, zyppng::SocketNotifier const&, int, sigc::nil>::emit (this=<optimized out>, _A_a2=@0x7ffff5caf89c: 1, _A_a1=...) at /usr/include/sigc++-2.0/sigc++/signal.h:3104
#28 zyppng::SocketNotifier::onFdReady (this=0x7ffff0004760, events=<optimized out>) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/base/socketnotifier.cc:83
#29 0x00007ffffefe1e2f in zyppng::GAbstractEventSource::dispatch (source=0x7ffff0004830) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/base/eventdispatcher_glib.cc:153
#30 0x00007ffffb8a2694 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#31 0x00007ffffb8a2a30 in ?? () from /usr/lib64/libglib-2.0.so.0
#32 0x00007ffffb8a2cf2 in g_main_loop_run () from /usr/lib64/libglib-2.0.so.0
#33 0x00007ffffefc5173 in zyppng::EventLoop::run (this=<optimized out>) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/zyppng/base/eventloop_glib.cc:33
#34 0x00007ffffef9f8a1 in zypp::LogThread::workerMain (this=0x7fffff3fa680 <zypp::LogThread::instance()::t>) at /usr/src/debug/libzypp-17.28.5-15.2.x86_64/zypp-core/base/LogControl.cc:184
#35 0x00007ffffdfe7cd4 in ?? () from /usr/lib64/libstdc++.so.6
#36 0x00007ffffc298a1a in start_thread () from /lib64/libpthread.so.0
#37 0x00007ffffda10d0f in clone () from /lib64/libc.so.6
Comment 1 Joachim Mairböck 2021-11-04 10:15:55 UTC
uname -a output:

Linux ISA-LAPTOP-07 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux
Comment 2 Michael Andres 2021-11-04 14:11:50 UTC
Looks like a duplicate of https://github.com/openSUSE/libzypp/issues/355.
Fixed in libzypp-17.28.7.
Comment 3 Michael Andres 2021-11-04 14:13:19 UTC
.
Comment 7 Swamp Workflow Management 2021-11-24 02:24:21 UTC
SUSE-RU-2021:3780-1: An update that has 31 recommended fixes and contains one feature can now be installed.

Category: recommended (moderate)
Bug References: 1153687,1182372,1183268,1183589,1184326,1184399,1184997,1185325,1186447,1186503,1186602,1187224,1187425,1187466,1187738,1187760,1188156,1188435,1189031,1190059,1190199,1190356,1190465,1190712,1190815,1191286,1191324,1191370,1191609,1192337,1192436
CVE References: 
JIRA References: SLE-18858
Sources used:
SUSE Linux Enterprise Server for SAP 15 (src):    libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1
SUSE Linux Enterprise Server 15-LTSS (src):    libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1
SUSE Linux Enterprise Installer 15 (src):    libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    libsolv-0.7.20-3.48.1, libzypp-17.28.8-3.78.1, zypper-1.14.50-3.60.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Swamp Workflow Management 2021-11-24 02:33:52 UTC
SUSE-RU-2021:3781-1: An update that has 31 recommended fixes and contains one feature can now be installed.

Category: recommended (moderate)
Bug References: 1153687,1182372,1183268,1183589,1184326,1184399,1184997,1185325,1186447,1186503,1186602,1187224,1187425,1187466,1187738,1187760,1188156,1188435,1189031,1190059,1190199,1190356,1190465,1190712,1190815,1191286,1191324,1191370,1191609,1192337,1192436
CVE References: 
JIRA References: SLE-18858
Sources used:
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1
SUSE Linux Enterprise Installer 15-SP1 (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1
SUSE Enterprise Storage 6 (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1
SUSE CaaS Platform 4.0 (src):    libsolv-0.7.20-4.3.1, libzypp-17.28.8-3.61.1, zypper-1.14.50-3.46.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 9 Swamp Workflow Management 2021-12-02 11:42:54 UTC
openSUSE-RU-2021:3870-1: An update that has 7 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1190356,1191286,1191324,1191370,1191609,1192337,1192436
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.3 (src):    libzypp-17.28.8-20.1, zypper-1.14.50-21.1
Comment 10 Swamp Workflow Management 2021-12-02 11:44:55 UTC
SUSE-RU-2021:3870-1: An update that has 7 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1190356,1191286,1191324,1191370,1191609,1192337,1192436
CVE References: 
JIRA References: 
Sources used:
SUSE MicroOS 5.1 (src):    libzypp-17.28.8-20.1, zypper-1.14.50-21.1
SUSE MicroOS 5.0 (src):    libzypp-17.28.8-20.1, zypper-1.14.50-21.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    libzypp-17.28.8-20.1, zypper-1.14.50-21.1
SUSE Linux Enterprise Module for Basesystem 15-SP2 (src):    libzypp-17.28.8-20.1, zypper-1.14.50-21.1
SUSE Linux Enterprise Installer 15-SP2 (src):    libzypp-17.28.8-20.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Swamp Workflow Management 2021-12-06 17:53:57 UTC
openSUSE-RU-2021:1540-1: An update that has 7 recommended fixes can now be installed.

Category: recommended (moderate)
Bug References: 1190356,1191286,1191324,1191370,1191609,1192337,1192436
CVE References: 
JIRA References: 
Sources used:
openSUSE Leap 15.2 (src):    libzypp-17.28.8-lp152.2.41.1, zypper-1.14.50-lp152.2.31.1