[Bug 614646] New: zypper useColor = autodetect crash
http://bugzilla.novell.com/show_bug.cgi?id=614646 http://bugzilla.novell.com/show_bug.cgi?id=614646#c0 Summary: zypper useColor = autodetect crash Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: lnussel@novell.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 when I enable useColor in zypper.conf ('autodetect' or 'always') zypper aborts: # zypper ref terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct NULL not valid Aborted # echo $TERM linux Happens with any command. # rpm -q zypper libzypp zypper-1.4.4-1.1.i586 libzypp-7.6.0-1.2.i586 Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614646 http://bugzilla.novell.com/show_bug.cgi?id=614646#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |jkupec@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614646 http://bugzilla.novell.com/show_bug.cgi?id=614646#c1 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|NEW |NEEDINFO InfoProvider| |lnussel@novell.com --- Comment #1 from Ján Kupec <jkupec@novell.com> 2010-06-22 10:44:32 UTC --- Hm, works for me. Can you get me a backtrace? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614646 http://bugzilla.novell.com/show_bug.cgi?id=614646#c2 --- Comment #2 from Ludwig Nussel <lnussel@novell.com> 2010-06-22 13:00:46 CEST --- while trying to reproduce again I found that it's not actually related to colors. Just duplicate any commented(!) example line in zypper.conf and zypper will segfault. e.g. change # showAlias = false to # showAlias = false # showAlias = false I'll try to install debuginfo and get a backtrace nevertheless -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614646 http://bugzilla.novell.com/show_bug.cgi?id=614646#c3 --- Comment #3 from Ludwig Nussel <lnussel@novell.com> 2010-06-22 13:02:09 CEST --- s/segfault/abort/ -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=614646 http://bugzilla.novell.com/show_bug.cgi?id=614646#c4 Ludwig Nussel <lnussel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|lnussel@novell.com | --- Comment #4 from Ludwig Nussel <lnussel@novell.com> 2010-06-22 13:07:14 CEST --- #0 0x00007ffff68019e5 in raise () from /lib64/libc.so.6 #1 0x00007ffff6802ee6 in abort () from /lib64/libc.so.6 #2 0x00007ffff705bcdd in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib64/libstdc++.so.6 #3 0x00007ffff7059ef6 in ?? () from /usr/lib64/libstdc++.so.6 #4 0x00007ffff7059f23 in std::terminate() () from /usr/lib64/libstdc++.so.6 #5 0x00007ffff705a02e in __cxa_throw () from /usr/lib64/libstdc++.so.6 #6 0x00007ffff7004510 in std::__throw_logic_error(char const*) () from /usr/lib64/libstdc++.so.6 #7 0x00007ffff703e829 in char* std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) () from /usr/lib64/libstdc++.so.6 #8 0x00007ffff703eca2 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib64/libstdc++.so.6 #9 0x000000000050109b in Augeas::get (this=<value optimized out>, augpath=<value optimized out>) at /usr/src/debug/zypper-1.4.4/src/utils/Augeas.cc:149 #10 0x00000000005037ff in Augeas::getOption (this=0x7fffffffd870, option=<value optimized out>) at /usr/src/debug/zypper-1.4.4/src/utils/Augeas.cc:183 #11 0x000000000047f5a9 in Config::read (this=0x7c1db8, file=<value optimized out>) at /usr/src/debug/zypper-1.4.4/src/Config.cc:138 #12 0x0000000000466cf9 in Zypper::processGlobalOptions (this=0x7c1da0) at /usr/src/debug/zypper-1.4.4/src/Zypper.cc:367 #13 0x000000000046a84c in Zypper::main (this=0x7c1da0, argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/zypper-1.4.4/src/Zypper.cc:107 #14 0x000000000043e713 in main (argc=2, argv=0x7fffffffec68) at /usr/src/debug/zypper-1.4.4/src/main.cc:109 -- Configure bugmail: http://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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c5 Ján Kupec <jkupec@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P3 - Medium Status|NEW |ASSIGNED Status Whiteboard| |augeas --- Comment #5 from Ján Kupec <jkupec@novell.com> 2010-10-11 13:37:29 UTC --- Looks like a bug in augeas. aug_get() should return different value when there are multiple matches for given path. I'll try to fix and/or report upstream. But also zypper needs some work to handle these multiple matches. -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c6 Dariusz Nawrocki <dnawrock@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dnawrock@gmail.com --- Comment #6 from Dariusz Nawrocki <dnawrock@gmail.com> 2011-02-03 09:12:12 UTC --- I have exactly the same problem in: zypper-1.4.8-0.2.4.i586 libzypp-7.9.6-0.3.1.i586 -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c7 --- Comment #7 from Dariusz Nawrocki <dnawrock@gmail.com> 2011-02-03 09:15:45 UTC --- (In reply to comment #6, #2)
I have exactly the same problem in:
zypper-1.4.8-0.2.4.i586 libzypp-7.9.6-0.3.1.i586
I mean C++ Exception after duplicate comments. (I don't know why my comment did not appear as a reply to https://bugzilla.novell.com/show_bug.cgi?id=614646#c2) -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c zj jia <zjjia@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zjjia@novell.com AssignedTo|bnc-team-screening@forge.pr |zypp-maintainers@forge.prov |ovo.novell.com |o.novell.com -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c9 Dominik Heidler <dheidler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dheidler@novell.com AssignedTo|zypp-maintainers@forge.prov |dheidler@novell.com |o.novell.com | --- Comment #9 from Dominik Heidler <dheidler@novell.com> 2011-06-06 12:43:43 UTC --- (In reply to comment #5)
Looks like a bug in augeas. aug_get() should return different value when there are multiple matches for given path. This is not a bug in augeas but in zypper's augeas wrapper class.
int aug_get(augeas *aug, const char *path, const char **value) aug_get returns an int, but we're saving it in a bool. So when augeas returns -1 (= found multiple nodes) this gets true in the bool. -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c10 Dominik Heidler <dheidler@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #10 from Dominik Heidler <dheidler@novell.com> 2011-06-06 12:50:54 UTC --- fixed in zypper 1.6.10 (git commit 8b6bf4340bed9adff4ff304aa4e6134aa69700cb) -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c11 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|augeas |augeas | |maint:released:sle11-sp1:48 | |050 --- Comment #11 from Swamp Workflow Management <swamp@suse.de> 2012-07-05 13:49:02 UTC --- Update released for: libzypp, libzypp-debuginfo, libzypp-debugsource, libzypp-devel, zypper, zypper-debuginfo, zypper-debugsource, zypper-log Products: SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-DESKTOP 11-SP1 (i386, x86_64) SLE-SDK 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-SERVER 11-SP1-TERADATA (x86_64) SLES4VMWARE 11-SP1 (i386, x86_64) -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c12 --- Comment #12 from Dariusz Nawrocki <dnawrock@gmail.com> 2012-07-05 18:34:49 UTC --- (In reply to comment #10)
fixed in zypper 1.6.10 (git commit 8b6bf4340bed9adff4ff304aa4e6134aa69700cb)
Yeah, I confirm bug fixed. Zypper works great. Thanks a lot. Tested on openSUSE 12.1 (i586): libzypp-10.4.5-1.17.1.i586 zypper-1.6.26-5.22.1.i586 zypper-log-1.6.25-5.19.1.noarch -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|augeas |augeas |maint:released:sle11-sp1:48 |maint:released:sle11-sp1:48 |050 |050 | |maint:running:51081:moderat | |e -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c13 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|augeas |augeas |maint:released:sle11-sp1:48 |maint:released:sle11-sp1:48 |050 |050 |maint:running:51081:moderat |maint:running:51081:moderat |e |e | |maint:released:sle10-sp3-ma | |nager:51233 --- Comment #13 from Swamp Workflow Management <swamp@suse.de> 2013-03-13 18:07:18 UTC --- Update released for: libzypp, libzypp-debuginfo, libzypp-devel, zypp-plugin-spacewalk, zypper, zypper-debuginfo Products: SLE-SERVER 10-CLIENT-TOOLS (i386, ia64, ppc, s390x, x86_64) -- 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=614646 https://bugzilla.novell.com/show_bug.cgi?id=614646#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|augeas |augeas |maint:released:sle11-sp1:48 |maint:released:sle11-sp1:48 |050 |050 |maint:running:51081:moderat |maint:released:sle10-sp3-ma |e |nager:51233 |maint:released:sle10-sp3-ma | |nager:51233 | -- 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