From owner-freebsd-toolchain@FreeBSD.ORG Wed Jun 11 02:43:41 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5C094F92; Wed, 11 Jun 2014 02:43:41 +0000 (UTC) Received: from felyko.com (felyko.com [IPv6:2001:470:1:2d5:26:3:1337:ca7]) by mx1.freebsd.org (Postfix) with ESMTP id 3CCD82D59; Wed, 11 Jun 2014 02:43:41 +0000 (UTC) Received: from [IPv6:2601:9:8280:426:6415:be35:5fc5:314d] (unknown [IPv6:2601:9:8280:426:6415:be35:5fc5:314d]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by felyko.com (Postfix) with ESMTPSA id 125FA34A9E1; Tue, 10 Jun 2014 19:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=felyko.com; s=mail; t=1402454620; bh=t7bNdmCwhwl+flintfaSHw46BEaPE4fcYK1Yi7Lw65s=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=dCVx/LqOmtAov6B38dvUs64Cy1/O7H05Ei0w/lIKz2A54b64xOlbX3jDWf2eDGmJ+ ksvpJL3U5SczRvEK7+ydsAeVLvQ7ldlyfWVb1WVfQVEaza+JiGkALTFlnDbyV2Q83P Qxy1/SG3hY0R7h7kX9UvMUNwRp9Xibv08WDBHsww= Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: abi::__cxa_demangle provides invalid result on non-mangled symbols From: Rui Paulo In-Reply-To: Date: Tue, 10 Jun 2014 19:43:32 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: To: Ed Maste X-Mailer: Apple Mail (2.1878.2) Cc: freebsd-toolchain@freebsd.org, Ryan Stone X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 02:43:41 -0000 On Jun 9, 2014, at 19:44, Ed Maste wrote: > I had the same issue in LLVM, and as hacky as it seems, the solution > is to check that the name starts with "_Z" before passing it to > __cxa_demangle. This is what I also did for libproc. -- Rui Paulo