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

QFile::copy(): Syscall param ioctl(generic) points to unaddressable byte(s)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.10
    • None
    • Linux/X11

    Description

      Valgrind shows the following error when copying a file:

      ❯❯❯ valgrind ./test_qfile_copy

      ==2730== Memcheck, a memory error detector
      ==2730== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
      ==2730== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
      ==2730== Command: ./test_qfile_copy
      ==2730== 
      ==2730== Syscall param ioctl(generic) points to unaddressable byte(s)
      ==2730== at 0x5C415D7: ioctl (syscall-template.S:78)
      ==2730== by 0x505126F: ??? (in /home/blade/work/software/Qt.5.7_opensource/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
      ==2730== by 0x4FDEEC5: QFile::copy(QString const&) (in /home/blade/work/software/Qt.5.7_opensource/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
      ==2730== by 0x4FDF591: QFile::copy(QString const&, QString const&) (in /home/blade/work/software/Qt.5.7_opensource/5.10.0/gcc_64/lib/libQt5Core.so.5.10.0)
      ==2730== by 0x108D29: main (in /home/blade/work/projects/test_qfile_copy/test_qfile_copy)
      ==2730== Address 0x3 is not stack'd, malloc'd or (recently) free'd
      ==2730== 
      Successfully synced to "db.json"
      ==2730== 
      ==2730== HEAP SUMMARY:
      ==2730== in use at exit: 19,108 bytes in 12 blocks
      ==2730== total heap usage: 93 allocs, 81 frees, 98,502 bytes allocated
      ==2730== 
      ==2730== LEAK SUMMARY:
      ==2730== definitely lost: 0 bytes in 0 blocks
      ==2730== indirectly lost: 0 bytes in 0 blocks
      ==2730== possibly lost: 0 bytes in 0 blocks
      ==2730== still reachable: 19,108 bytes in 12 blocks
      ==2730== suppressed: 0 bytes in 0 blocks
      ==2730== Rerun with --leak-check=full to see details of leaked memory
      ==2730== 
      ==2730== For counts of detected and suppressed errors, rerun with: -v
      ==2730== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)

      test_qfile_copy.tar.gz

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            rightaway717 Ivan Belyakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes