I finally managed to use gdb to step into Qt code, and what I’m seeing
in qTopLevelDomain() is that for e.g. "google.com" the sections are
correctly extracted as ["google", "com"], and the for loop calls into
qIsEffectiveTLD() for "com" (which should return true because "com" is
part of the list at
https://publicsuffix.org/list/public_suffix_list.dat), which itself
calls into containsTLDEntry(), which computes a chunk index and then
compares the entry to entries in that chunk. "com" is being compared to
two entries: "accident-prevention.aero" and "net.ag". Those two entries
are far apart in the generated table, so this doesn’t make much sense.
It looks like somehow the initial computation of the chunk in
containsTLDEntry() is broken.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtbase-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1551145

Title:
  [regression] unit test failures after Qt update

Status in qtbase-opensource-src package in Ubuntu:
  New
Status in webbrowser-app package in Ubuntu:
  Confirmed

Bug description:
  Today I upgraded my laptop running xenial, rebuilt my local copy of
  webbrowser-app as there had been Qt5 updates (as well as gcc updates),
  and now two unit tests are failing:

  The following tests FAILED:
          3 - tst_DomainUtilsTests (Failed)
          6 - tst_HistoryDomainListModelTests (Failed)

  qt5 was updated from 5.5.1+dfsg-14ubuntu1 to 5.5.1+dfsg-14ubuntu2, but
  I’m not seeing any relevant changes in
  https://launchpadlibrarian.net/243321175/qtbase-opensource-src_5.5.1
  +dfsg-14ubuntu1_5.5.1+dfsg-14ubuntu2.diff.gz.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1551145/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to