Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-15859

Qt crashes after aborting a QNetworkAccessManager::put() FTP upload operation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • Some future release
    • 4.7.1
    • Network: FTP
    • None
    • openSuse 11.3, libqt4 == 4.7.1+4.7.20101204

    Description

      My program does an FTP upload inside a QDialog. The user can cancel the dialog, which calls
      QNetworkReply->abort() and reject() of the dialog, after which the dialog is deleted.
      Still, the Qt mainloop tries to access somehow QFtpDTP::writeData() and crashes, as the accessed object
      was already deleted.
      See the attached valgrind logfile.
      I also attach the source to the dialog implementation, with which you should be able to reproduce the problem.

      Attachments

        1. Backup.cxx
          2 kB
          Martin Koller
        2. Backup.hxx
          0.6 kB
          Martin Koller
        3. Backup.ui
          2 kB
          Martin Koller
        4. valgrind.log
          15 kB
          Martin Koller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            mkoller Martin Koller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes