From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17456 invoked by alias); 18 Dec 2010 02:26:30 -0000 Received: (qmail 17432 invoked by uid 22791); 18 Dec 2010 02:26:29 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_XD X-Spam-Check-By: sourceware.org Received: from mail-pv0-f169.google.com (HELO mail-pv0-f169.google.com) (74.125.83.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Dec 2010 02:26:21 +0000 Received: by pvc30 with SMTP id 30so284097pvc.0 for ; Fri, 17 Dec 2010 18:26:20 -0800 (PST) Received: by 10.142.246.13 with SMTP id t13mr1176628wfh.446.1292639180159; Fri, 17 Dec 2010 18:26:20 -0800 (PST) Received: from [192.168.1.102] ([60.186.239.12]) by mx.google.com with ESMTPS id q13sm1309435wfc.5.2010.12.17.18.26.12 (version=SSLv3 cipher=RC4-MD5); Fri, 17 Dec 2010 18:26:18 -0800 (PST) Message-ID: <4D0C1C9D.30204@gmail.com> Date: Sat, 18 Dec 2010 02:26:00 -0000 From: asmwarrior User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Tom Tromey CC: gdb@sourceware.org, gdb-patches@sourceware.org Subject: Re: RFA: add python exception subclasses References: <4CB66700.3000907@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00353.txt.bz2 On 2010-12-18 3:04, Tom Tromey wrote: >>> It seems this patch was already in the cvs trunk, but using the latest gdb I >>> build myself yesterday(MSYS+MinGW). gdb still crashes when showing >>> uninitialized vector. > Could you post the session and a backtrace? > > Tom since the previous reply was reject by the mail-list, I create a compact one. log here(some text removed) -------------------------------------------------------------------- > p v $1 = std::vector of length -259079, capacity -521893089 = {, , , , , , , , , "s\000\037\066\003\326\025\000\000\001\020%\000\000\025_\037\000\000\025\020%\000\000\025\326\025\000\000\025\213$\000\000\000\063\004\221\036\000\000E\001putwc\000\037%\002\320\037\000\000\001\065%\000\000\025\244\026\000\000\025j#\000\000\000E\001putwchar\000\037\221\002\320\037\000\000\001R%\000\000\025\244\026\000\000\000E\001swscanf\000\037r\002\221\025\000\000\001t%\000\000\025e\037\000\000\025e\037\000\000F\000E\001ungetwc\000\037'\002\320\037\000\000\001\225%\000\000\025\320\037\000\000\025j#\000\000\000E\001vfwprintf\000\037/\002\221\025\000\000\001\275%\000\000\025j#\000\000\025e\037\000\000\025\236\037\000\000\000E\001vfwscanf\000\037B\002\221\025\000\000\001\344%\000\000\025j#\000\000\025e\037\000\000\025\236\037\000\000\000E\001vswscanf\000\037C\002\221\025\000\000\001\v&\000\000\025e\037\000\000\025e\037\000\000\025\236\037\000\000\000E\001vwprintf\000\037\060\002\221\025\000\000\001-&\000\000\025e\037\000\000\025\236\037\000\000\000E\001vwscanf\000\037A .... , , , , , , , , , , , , , , , , , , , , , , , , #include #include #include #include #include int main() { wxString wxStr(L"wxString"); wxStr += L" Value"; std::string stdStr("std::string"); stdStr.append(" value"); std::map m; m[0] = "000"; m[1] = "111"; wxString& wxStrRef = wxStr; wxStrRef += L" Ref"; std::string& stdStrRef = stdStr; stdStrRef += " Ref"; std::list l = {"a", "b", "c"}; std::vector v = {"a", "b", "c"}; std::stack s; s.push("a"); s.push("b"); return 0; } and set break-point in the first line. then run the "p v" command. Hope this helps. thanks. asmwarrior