From owner-freebsd-current@FreeBSD.ORG Tue Dec 18 12:32:59 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3CB5AAB1; Tue, 18 Dec 2012 12:32:59 +0000 (UTC) (envelope-from rdivacky@vlakno.cz) Received: from vlakno.cz (mail.vlakno.cz [178.238.39.38]) by mx1.freebsd.org (Postfix) with ESMTP id F1E668FC12; Tue, 18 Dec 2012 12:32:58 +0000 (UTC) Received: by vlakno.cz (Postfix, from userid 1002) id E18141CC55BF; Tue, 18 Dec 2012 13:24:22 +0100 (CET) Date: Tue, 18 Dec 2012 13:24:22 +0100 From: Roman Divacky To: Ren? Ladan Subject: Re: protoc crash in libstdc++ Message-ID: <20121218122422.GA35312@freebsd.org> References: <50D05FD6.7080008@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50D05FD6.7080008@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2012 12:32:59 -0000 On Tue, Dec 18, 2012 at 01:21:42PM +0100, Ren? Ladan wrote: > 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::sentry::sentry > (this=0x7fffffffcf88, __os=...) at /usr/include/c++/4.2/ostream:62 > #2 0x0000000800998a4b in std::__ostream_insert std::char_traits > (__out=..., __s=0x485df0 "Missing input file.", > __n=19) > at > /usr/src/gnu/lib/libstdc++/../../../contrib/libstdc++/include/bits/ostream_insert.h:83 > #3 0x000000000040592c in operator<< > > (this=, __out=..., __out=..., __s=) at > /usr/include/c++/4.2/ostream:517 > #4 google::protobuf::compiler::CommandLineInterface::ParseArguments > (this=, argc=1, argv=0x7fffffffd640) at > third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc:790 > #5 0x00000000004048b0 in > google::protobuf::compiler::CommandLineInterface::Run > (this=0x7fffffffd4d0, argc=-12408, argv=0x7fffffffcf88) > at > third_party/protobuf/src/google/protobuf/compiler/command_line_interface.cc:588 > #6 0x0000000000432957 in main (argc=-12408, argv=0x7fffffffcf88) at ^^^^^^ wow :) Can you run this under valgrind? Roman