protoc crash in libstdc++
Hi,
the following backtrace is from a crash that happened when building
www/chromium with clang. The chromium port builds a binary protoc which
crashes when built with clang.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 802006400 (LWP 100869)]
0x0000000800996506 in std::ostream::sentry::sentry(std::ostream&) ()
from /usr/lib/libstdc++.so.6
(gdb) bt
#0 0x0000000800996506 in std::ostream::sentry::sentry(std::ostream&) ()
from /usr/lib/libstdc++.so.6
#1 0x00000008009964cd in std::basic_ostream<char>::sentry::sentry
(this=3D0x7fffffffcf88, __os=3D...) at /usr/include/c++/4.2/ostream:62
#2 0x0000000800998a4b in std::__ostream_insert<char,
std::char_traits<char> > (__out=3D..., __s=3D0x485df0 "Missing input file.",
__n=3D19)
at
/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/include/bits/ostream_=
insert.h:83
#3 0x000000000040592c in operator<<<std::char_traits<char> >
(this=3D<optimized out>, __out=3D..., __out=3D..., __s=3D<optimized out>) at
/usr/include/c++/4.2/ostream:517
#4 google::protobuf::compiler::CommandLineInterface::ParseArguments
(this=3D<optimized out>, argc=3D1, argv=3D0x7fffffffd640) at
third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc=
:790
#5 0x00000000004048b0 in
google::protobuf::compiler::CommandLineInterface::Run
(this=3D0x7fffffffd4d0, argc=3D-12408, argv=3D0x7fffffffcf88)
at
third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc=
:588
#6 0x0000000000432957 in main (argc=3D-12408, argv=3D0x7fffffffcf88) at
third_party/protobuf/src/google/protobuf/compiler/main.cc:59
(gdb) frame 2
#2 0x0000000800998a4b in std::__ostream_insert<char,
std::char_traits<char> > (__out=3D..., __s=3D0x485df0 "Missing input file.",
__n=3D19)
at
/usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/include/bits/ostream_=
insert.h:83
83
(gdb) list
78 __ostream_insert(basic_ostream<_CharT, _Traits>& __out,
79 const _CharT* __s, streamsize __n)
80 {
81 typedef basic_ostream<_CharT, _Traits> __ostream_type;
82 typedef typename __ostream_type::ios_base __ios_base;
83
84 typename __ostream_type::sentry __cerb(__out);
....
So the question is if this is a protoc or a clang or a libstdc++ bug.
Ren=E9
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 5 之 6 篇):