[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#803669: Breaks QProcess in owncloud-client tests on mips an mipsel



Hi Gaudenz!

On Sunday 01 November 2015 17:32:12 Gaudenz Steinlin wrote:
[snip]
> Setting the severity of this bug to serious because it causes another
> package to fail to build from source.
> 
> This version of Qt breaks the tests of owncloud-sync on mips and mipsel.
> Test also break when compiling version 2.0.0+dfsg-1 of owncloud-client
> which previously successfully built against the newer version of Qt. So I
> suspect this is a bug in Qt and not in owncloud-client.
> 
> See here for the failing build logs:
> https://buildd.debian.org/status/fetch.php?pkg=owncloud-client&arch=mipsel&v
> er=2.0.2%2Bdfsg-1&stamp=1445685652
> 
> I tried to debug this on the mipsel porter box but could not resovlve
> the problem. This is what I found out:
> 
> - The problem is also present when running the tests with Qt
>   5.5.0+dfsg-3 so setting this version. This is the first version of Qt
>   5.5 available for mipsel. This is likely a bug introduced with Qt 5.5.
> 
> - This is the problematic part of the code in owncloud-client which
>   triggers the bug (see test/testfilesystem.h in owncloud-client):
>  
> https://anonscm.debian.org/cgit/pkg-owncloud/owncloud-client.git/tree/test/
> testfilesystem.h
> 
>  26     QByteArray shellSum( const QByteArray& cmd, const QString& file )
>  27     {
>  28        QProcess md5;
>  29        QStringList args;
>  30        args.append(file);
>  31        md5.start(cmd, args);
>  32        QByteArray sumShell;
>  33        qDebug() << "File: "<< file;
>  34
>  35        if( md5.waitForFinished()  ) {
>  36
>  37          sumShell = md5.readAll();
>  38          sumShell = sumShell.left( sumShell.indexOf(' '));
>  39        }
>  40        return sumShell;
>  41     }
> 
>   This is called twice during the test to compute a md5/sha1 sum with the
> command line tool to compare this against owncloud-clients internal
> implementation. The test then fails because this function returns an empty
> string instead of the correct result.
> 
> - Running the test under strace shows that the md5sum/sha1sum call succeeds
> and returns the correct string. But apparently waitForFinished just hangs
> for 30s (default timeout value) and then returns an error.

An important detail here would be to know if the md5sum value gets returned 
during the 30 seconds that waitForFinished and +/- how many seconds 
before/after.
 
> At this point I'm out of ideas on how to further debug this. Help by Qt
> maintainers or mips porters would be appreciated.

If you can please test with md5.waitForFinished(60000) on line 35. It's not 
strange to have great delays on mips and mipsel.

Kinds regards, Lisandro.

-- 
<rata> hmm, el enchufe hace chispas...
<-- rata ha dejado este servidor ("Leaving").
<marga> ouch
  Visto en #lugfi, irc.freenode.net

Lisandro Damián Nicanor Pérez Meyer
http://perezmeyer.com.ar/
http://perezmeyer.blogspot.com/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: