This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: add python exception subclasses


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]