Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22649

std::map iterator dumper is partially broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 4.10.0-rc1
    • Debugger

    Description

      #include <iostream>
      #include <map>
      
      int main(int argc, char *argv[])
      {
      	std::map<int, std::string> map;
      	map[1] = "hello";
      	auto it = map.begin();
      	std::cout << it->second << std::endl; // BREAK_HERE
      	return 0;
      }

      Expand it -> node.

      left and right are <not accessible>.

      The magic button in the debugger log shows:

      >~"bridgemessage={msg=\"b'**** CAUGHT EXCEPTION: SUBITEM ****'\"},\n"
      >~"bridgemessage={msg=\"b'Traceback (most recent call last):\\n'\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 2202, in putSubItem\\n    self.putItem(value)\\n'\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 2720, in putItem\\n    self.putItemX(value)\\n'\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 2756, in putItemX\\n    self.putFormattedPointer(value)\\n'\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 1357, in putFormattedPointer\\n    self.putFormattedPointerX(value)\\n'\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 1373, in putFormattedPointerX\\n    pointer = value.pointer()\\n'\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 2976, in pointer\\n    return self.extractInteger(self.dumper.ptrSize() * 8, True)\\n'\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 3350, in extractInteger\\n    rawBytes = self.data(size)\\n'\"},\n"
      >~"bridgemessage={msg=\"b\"  File $dumper.py$, line 3332, in data\\n    error('CANNOT CONVERT ADDRESS TO BYTES: %s' % self)\\n\"\"},\n"
      >~"bridgemessage={msg=\"b'  File $dumper.py$, line 171, in error\\n    raise RuntimeError(message)\\n'\"},\n"
      >~"bridgemessage={msg=\"b\"RuntimeError: CANNOT CONVERT ADDRESS TO BYTES: Value(name='None',type=std::_Rb_tree_node_base*,bsize=None,bpos=None,data=,address=0x0)\\n\"\"},\n"
      

      Attachments

        Activity

          People

            hjk hjk
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: