From owner-freebsd-arm@FreeBSD.ORG Sun Jan 18 16:08:53 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2FF2E1B1 for ; Sun, 18 Jan 2015 16:08:53 +0000 (UTC) Received: from moon.peach.ne.jp (moon.peach.ne.jp [203.141.148.98]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F2E40E36 for ; Sun, 18 Jan 2015 16:08:52 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id BC0956811E for ; Mon, 19 Jan 2015 01:08:50 +0900 (JST) Received: from artemis (unknown [172.18.0.21]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTPSA id 97D4468118 for ; Mon, 19 Jan 2015 01:08:50 +0900 (JST) Message-ID: From: "Daisuke Aoyama" To: References: <8938766D727E4CD587AB34DB32A67916@ad.peach.ne.jp> In-Reply-To: <8938766D727E4CD587AB34DB32A67916@ad.peach.ne.jp> Subject: Re: C++ exception of RPi Date: Mon, 19 Jan 2015 01:08:55 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jan 2015 16:08:53 -0000 I've written example of C++ exception since just boot up r276981. Try to compile by "clang++ sample.cc". If your /lib/libcxxrt.so.1 is not affected, you can get a result like this: # ./a.out catch: 10 Otherwise, # ./a.out pid 653 (a.out), uid 0: exited on signal 6 (core dumped) Abort trap (core dumped) sample.cc: ---------------------------------------------------------------------- #include using namespace std; int main() { try{ throw 10; } catch (int e) { cout << "catch: " << e << endl; } } ---------------------------------------------------------------------- Regards, -- Daisuke Aoyama