From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23580 invoked by alias); 14 Aug 2014 17:20:15 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 23555 invoked by uid 89); 14 Aug 2014 17:20:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f46.google.com Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com) (209.85.215.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 14 Aug 2014 17:20:12 +0000 Received: by mail-la0-f46.google.com with SMTP id b8so1466418lan.33 for ; Thu, 14 Aug 2014 10:20:09 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.112.160.38 with SMTP id xh6mr6423542lbb.21.1408036809064; Thu, 14 Aug 2014 10:20:09 -0700 (PDT) Received: by 10.112.94.70 with HTTP; Thu, 14 Aug 2014 10:20:08 -0700 (PDT) In-Reply-To: References: Date: Thu, 14 Aug 2014 17:20:00 -0000 Message-ID: Subject: Re: Corruption in C++ constructor From: Jonathan Wakely To: navin p Cc: gcc-help , gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-08/txt/msg00041.txt.bz2 On 14 August 2014 17:18, navin p wrote: > Is this a corruption , how do i debug this ? You can try rebuilding your code with -D_GLIBCXX_DEBUG compiler option, which turns on debugging checks in the C++ standard library. That might reveal a bug in your code. You could also try using the sanitizer features in recent versions of GCC.