touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #73806
[Bug 1449281] [NEW] system_error default_error_condition segfaults
You have been subscribed to a public bug:
When querying the default_error_condition().value() of an
std::error_code, I receive a segmentation fault.
This only occurs if the version of libstdc++6 .21. It works fine in .20
and .19.
Attached is an two-line example program that shows the segmentation
fault in .21.
Compile with:
g++ -std=c++11 error_category.cpp
GDB gives the following output:
Program received signal SIGSEGV, Segmentation fault.
0x001a0efb in std::error_category::equivalent(int, std::error_condition
const&) const ()
from /usr/lib/i386-linux-gnu/libstdc++.so.6
My Ubuntu version is:
$ cat /etc/issue
Ubuntu 12.04.5 LTS \n \l
My g++ version is:
g++ --version
g++ (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ldconfig says I'm linking to the following libstdc++ library:
$ ldconfig -p | grep stdc++
libstdc++.so.6 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
libstdc++.so.6 (libc6) => /usr/lib/i386-linux-gnu/libstdc++.so.6
libstdc++.so.6 (libc6) => /usr/lib32/libstdc++.so.6
$ ls -l /usr/lib/i386-linux-gnu/libstdc++.so.6
lrwxrwxrwx 1 root root 19 Apr 24 13:58 /usr/lib/i386-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.21
** Affects: gcc-4.8 (Ubuntu)
Importance: Undecided
Status: New
--
system_error default_error_condition segfaults
https://bugs.launchpad.net/bugs/1449281
You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to gcc-4.8 in Ubuntu.
References