Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 32294 invoked from network); 25 Jul 2006 19:17:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 19:17:40 -0000 Received: (qmail 4508 invoked by uid 500); 25 Jul 2006 19:17:39 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 4497 invoked by uid 500); 25 Jul 2006 19:17:39 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 4486 invoked by uid 99); 25 Jul 2006 19:17:38 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 12:17:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [208.30.140.160] (HELO moroha.quovadx.com) (208.30.140.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 12:17:38 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.4) with ESMTP id k6PJGkkb014599 for ; Tue, 25 Jul 2006 19:16:46 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 25 Jul 2006 13:17:18 -0600 Message-ID: <44C66E60.8030505@roguewave.com> Date: Tue, 25 Jul 2006 13:17:52 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: problem in temp_buffer References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Jul 2006 19:17:18.0736 (UTC) FILETIME=[F24E4100:01C6B01E] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Nicole Willson wrote: > Actually the message is the header guard corruption message. For some > reason hdr->self_ is 0xffffffff on the second time through the for loop. That's definitely not right. I would suggest setting a breakpoint on the variable to see when it changes from the valid value first set in operator_new. Martin > > > -----Original Message----- > From: Martin Sebor [mailto:sebor@roguewave.com] > Sent: Tuesday, July 25, 2006 12:45 PM > To: stdcxx-dev@incubator.apache.org > Subject: Re: problem in temp_buffer > > Nicole Willson wrote: > >>The stack trace is: >>#0 0x0feb0ca8 in raise () from /lib/tls/libc.so.6 >>#1 0x0feb26c4 in abort () from /lib/tls/libc.so.6 >>#2 0x1000eaa4 in find_block (ptr=0x77e00d48, check_heap=true, >>caller=0x0) >> at ../new.cpp:142 > > > This looks like it's coming from the heap debugging library and could be > caused by a corrupted header guard (see below). Is there any error > message? (If not, you might need to flush stderr in the function to see > it). > > $ svn cat > http://svn.apache.org/repos/asf/incubator/stdcxx/trunk/tests/src/new.cpp > > | cat -n | head -150 | tail -15 > 136 > 137 if (check_heap) { > 138 // check the lead guard > 139 if (hdr->self_ != hdr) { > 140 rw_error (0, 0, __LINE__, > 141 "%s:%d: header guard corruption at > %#p: " > 142 "expected %#p, got %#p", > 143 hdr->ptr_, (const void*)hdr, > hdr->self_); > 144 abort (); > 145 } > 146 > 147 // check that the stored pointer has the expected > value > 148 if (hdr->ptr_ != hdr + 1) { > 149 rw_error (0, 0, __LINE__, > 150 "%s:%d: block address mismatch: " > > Martin