This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: add python exception subclasses
- From: asmwarrior <asmwarrior at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb at sourceware dot org, gdb-patches at sourceware dot org
- Date: Sat, 18 Dec 2010 10:29:49 +0800
- Subject: Re: RFA: add python exception subclasses
- References: <4CB66700.3000907@gmail.com> <m3tykn2id8.fsf@fleche.redhat.com> <m3fww2ued0.fsf_-_@fleche.redhat.com> <AANLkTinsJLTZT0ws=LbpYcq85_Z9_R=fcXz+J+kqScJU@mail.gmail.com> <m3ei9g9q6y.fsf@fleche.redhat.com>
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<string>.
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 = {<error
reading variable: Cannot access memory at address 0x900014b6>, <error
reading variable: Cannot access memory at address 0x34ac>, <error
reading variable: Cannot access memory at address 0x300b9f4>, <error
reading variable: Cannot access memory at address 0x12ff7ff2>, <error
reading variable: Cannot access memory at address 0x900010b6>, <error
reading variable: Cannot access memory at address 0x35ac>, <error
reading variable: Cannot access memory at address 0x300b9f4>, <error
reading variable: Cannot access memory at address 0x12ff7ff2>, <error
reading variable:
.....
<error reading variable: Cannot access memory at address 0x12ff7ff2>,
"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
....
<error reading variable: Cannot access memory at address 0xdd08ec77>,
<error reading variable: Cannot access memory at address 0x448b2408>,
<error reading variable: Cannot access memory at address 0xc4830418>,
<error reading variable: Cannot access memory at address 0x24fc>, <error
reading variable: Cannot access memory at address 0x3d747fe4>, <error
reading variable: Cannot access memory at address 0xf0000031>, <error
reading variable: Cannot access memory at address 0x665f7473>, <error
reading variable: Cannot access memory at address 0x6624047f>, <error
reading variable: Cannot access memory at address 0x74027f31>, <error
reading variable: Cannot access memory at address 0xe083661e>, <error
reading variable: Cannot access memory at address 0x9b217514>, <error
reading variable: Cannot access memory at address 0x8366e0d3>, <error
reading variable: Cannot access memory at address 0x187420d4>, <error
reading variable: Cannot access memory at address 0x8ac>, <error reading
variable: Cannot access memory at address 0x1dfa82f4>, <error reading
variable: Cannot access memory at address 0xb2e80768>, <error reading
variable: Cannot access memory at address 0x59fffff4>, <error reading
variable: Cannot access memory at address 0x94e8b7>, <error reading
variable: Cannot access memory at address 0xc359fff4>, <error reading
variable: Cannot access memory at address 0x5a242ccd>, <error reading
variable: Cannot access memory at address 0xe005ddb7>, <error reading
variable: Cannot access memory at address 0xd97c90d7>, <error reading
variable: Cannot access memory at address 0xddfdd9bd>, <error reading
variable: Cannot access memory at address 0xd9c0d9cd>, <error reading
variable: Cannot acces
This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application's support team for more information.
--------------------------------------------------------------------
the test code was quite simple:
#include <wx/wx.h>
#include <string>
#include <map>
#include <list>
#include <stack>
#include <vector>
int main()
{
wxString wxStr(L"wxString");
wxStr += L" Value";
std::string stdStr("std::string");
stdStr.append(" value");
std::map<int, std::string> m;
m[0] = "000";
m[1] = "111";
wxString& wxStrRef = wxStr;
wxStrRef += L" Ref";
std::string& stdStrRef = stdStr;
stdStrRef += " Ref";
std::list<std::string> l = {"a", "b", "c"};
std::vector<std::string> v = {"a", "b", "c"};
std::stack<std::string> 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