From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20877 invoked by alias); 13 Feb 2015 13:04:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20867 invoked by uid 89); 13 Feb 2015 13:04:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,URI_HEX autolearn=no version=3.3.2 X-HELO: mwork.nabble.com Received: from mwork.nabble.com (HELO mwork.nabble.com) (162.253.133.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Feb 2015 13:04:13 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id D569313C70F5 for ; Fri, 13 Feb 2015 05:04:14 -0800 (PST) Date: Fri, 13 Feb 2015 13:04:00 -0000 From: tassos_souris To: gcc-bugs@gcc.gnu.org Message-ID: <1423832652181-1120949.post@n5.nabble.com> In-Reply-To: <54DDDF7D.7000803@arm.com> References: <1423826115745-1120921.post@n5.nabble.com> <54DDDF7D.7000803@arm.com> Subject: Re: Segmentation fault with unique_ptr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2015-02/txt/msg01481.txt.bz2 the main function is as simple as this: Compile with: g++-4.9 -std=c++14 -g -o main main.cpp and run with ./main. I get segfault. gdb in bt shows that the segfault happens inside unique_ptr destructor. So it is not a memory issue. Also since the code runs with less size (i.e size=1000 no problem) i assume that something is wrong with unique_ptr and not my code. That's of course only an assumption don't get me wrong :) Thanks for looking at it -- View this message in context: http://gcc.1065356.n5.nabble.com/Segmentation-fault-with-unique-ptr-tp1120921p1120949.html Sent from the gcc - bugs mailing list archive at Nabble.com.