tst_LargeFile::mapOffsetOverflow started failing on 32-bit xenial

Bug #1560528 reported by Timo Jyrinki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Invalid
Undecided
Matthias Klose
qtbase-opensource-src (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Something has changed xenial, resulting in the following one unit test failing on 32-bit (it's expected failure on 64-bit):

QWARN : tst_LargeFile::mapOffsetOverflow() QFSFileEngine::map: Mapping a file beyond its size is not portable
FAIL! : tst_LargeFile::mapOffsetOverflow() '!address' returned FALSE. ()
   Loc: [tst_largefile.cpp(517)]
--
blockSize(1 << 12)
...
void tst_LargeFile::mapOffsetOverflow()
{
    // Out-of-range mappings should fail, and not silently clip the offset
    for (int i = 50; i < 63; ++i) {
        uchar *address = 0;

        address = largeFile.map(((qint64)1 << i), blockSize);
#if defined(__x86_64__)
        QEXPECT_FAIL("", "fails on 64-bit Linux (QTBUG-21175)", Abort);
#endif
        QVERIFY( !address );

        address = largeFile.map(((qint64)1 << i) + blockSize, blockSize);
        QVERIFY( !address );
    }
#endif
}

Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

This seems to be a regression/change in glibc. I experimented at https://launchpad.net/~timo-jyrinki/+archive/ubuntu/quantal-compiz-unity-testing/+packages and only after forcing the glibc 2.21 into use, I was able to get the unit test passing.

Changed in qtbase-opensource-src (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.5.1+dfsg-16ubuntu6

---------------
qtbase-opensource-src (5.5.1+dfsg-16ubuntu6) xenial; urgency=medium

  [ Alberto Mardegan ]
  * debian/patches/xcb_fix_parent_screen_of_embedded_windows.patch:
    - Fix wrong size of embedded window. Fixed in upstream Qt 5.6.
      (LP: #1564767)

 -- Timo Jyrinki <email address hidden> Tue, 05 Apr 2016 13:59:17 +0000

Changed in qtbase-opensource-src (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

qtbase-opensource-src (5.5.1+dfsg-16ubuntu4) xenial; urgency=medium

  * debian/patches/qdoc-Wrap-QML-read-only-and-default-qualifiers-in-br.patch:
    - Fix typos in property definitions. (LP: #1557259)
  * Temporarily disable a test broken by glibc upgrade (LP: #1560528).

 -- Timo Jyrinki <email address hidden> Tue, 29 Mar 2016 11:30:45 +0000

Matthias Klose (doko)
Changed in glibc (Ubuntu):
assignee: nobody → Matthias Klose (doko)
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.