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

debugging fread when seeking somewhere past 2000 crashes Qt Creator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.1.0
    • Qt Creator 2.1.0-rc1
    • Debugger
    • None
    • CMake, cl, cdb
    • 4c3ca7ef2037aa281cae3bdcf82968f3f92ce73a

    Description

      I'm using the CMake capability using the cl compiler and the microsoft debugger. I have code that contains the line:

      readCount = fread (pBuf, 1, 2000, ifp);

      This will work, but if I change the line to:

      readCount = fread (pBuf, 1, 4000, ifp);

      it tries to read 4000 bytes and fails. If I close the file, open it up again and seek 2000 characters in and then try to fread again, if will crash Qt Creator as well. It seems like any time I try to run the debugger when doing an fread beyond 2000 characters, it fails. I can open the same file in windbg and step through the file just fine, so I know it's not the cdb debugger. It looks like it's a problem in Qt Creator. This has been persistant from 2.0.92 all the way through 2.0.94. I didn't try any of the previous versions so I don't know if it worked pre-2.0.92. The file is a binary file, but I'm not sure if that matters.

      Attachments

        Activity

          People

            con Eike Ziller
            shadowland Shane Dixon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: