MantisBT - CDash
View Issue Details
0010829CDashpublic2010-06-14 14:262010-10-28 06:02
tkaupp 
Julien Jomier 
normalminorhave not tried
resolvedfixed 
1.6.4 
1.8 
0010829: loadXML problem
> CDashers,
>
> My browser spits out the following when I'm trying to look at the details of
> my test result (e.g. calling
> http://[mychdashserver]/cdash/testDetails.php?test=14905&build=232 [^]):
>
> Warning: DOMDocument::loadXML() [domdocument.loadxml]: PCDATA invalid Char
> value 12 in Entity, line: 18 in /var/www/CDash-1.6.4/cdash/common.php on line
> 39
>
> Warning: DOMDocument::loadXML() [domdocument.loadxml]: PCDATA invalid Char
> value 26 in Entity, line: 19 in /var/www/CDash-1.6.4/cdash/common.php on line
> 39
>
> There's a whole page full of these warnings and it happens for all tests I
> submitted since upgrading to 1.6.4. The ctest version of the clients is 2.8.0
> and 2.8.1.
>
> Below are the first 24 lines of the Test.xml file which generated the output
> above:
> <?xml version="1.0" encoding="UTF-8"?>
> <Site BuildName="Linux-g++"
> BuildStamp="20100531-0334-Experimental"
> Name="oak"
> Generator="ctest-2.8.1"
> CompilerName="/home/tkaupp/bin/g++"
> OSName="Linux"
> Hostname="oak"
> OSRelease="2.6.30-2-686"
> OSVersion="#1 SMP Sat Sep 26 01:16:22 UTC 2009"
> OSPlatform="i686"
> Is64Bits="0"
> VendorString="GenuineIntel"
> VendorID="Intel Corporation"
> FamilyID="6"
> ModelID="23"
> ProcessorCacheSize="3072"
> NumberOfLogicalCPU="2"
> NumberOfPhysicalCPU="2"
> TotalVirtualMemory="3992"
> TotalPhysicalMemory="3037"
> LogicalProcessorsPerPhysical="1"
> ProcessorClockFrequency="2534"
>>
>
> Any ideas?
>
> Regards, Tobias
No tags attached.
xml Test.xml (4,663,232) 2010-06-14 14:26
https://public.kitware.com/Bug/file/3184/Test.xml
tar bug.tar (491,520) 2010-06-16 15:27
https://public.kitware.com/Bug/file/3196/bug.tar
Issue History
2010-06-14 14:26tkauppNew Issue
2010-06-14 14:26tkauppFile Added: Test.xml
2010-06-14 14:28Julien JomierNote Added: 0021005
2010-06-14 16:08Odile LemayNote Added: 0021006
2010-06-15 05:42Odile LemayNote Edited: 0021006
2010-06-15 12:59Odile LemayNote Edited: 0021006
2010-06-16 14:47Denis CharlandNote Added: 0021032
2010-06-16 14:50Julien JomierNote Added: 0021033
2010-06-16 14:51Julien JomierStatusnew => assigned
2010-06-16 14:51Julien JomierAssigned To => Julien Jomier
2010-06-16 14:57Odile LemayNote Added: 0021034
2010-06-16 15:01Denis CharlandNote Added: 0021035
2010-06-16 15:12Julien JomierNote Added: 0021036
2010-06-16 15:14Denis CharlandNote Added: 0021038
2010-06-16 15:21Odile LemayNote Added: 0021040
2010-06-16 15:21Julien JomierNote Added: 0021041
2010-06-16 15:27Odile LemayFile Added: bug.tar
2010-06-16 15:31Odile LemayNote Added: 0021043
2010-06-16 19:01Julien JomierNote Added: 0021059
2010-06-16 19:02Julien JomierNote Added: 0021060
2010-10-28 06:02Julien JomierStatusassigned => resolved
2010-10-28 06:02Julien JomierFixed in Version => 1.8
2010-10-28 06:02Julien JomierResolutionopen => fixed

Notes
(0021005)
Julien Jomier   
2010-06-14 14:28   
Are you using CTest? The output of the tests have to be encoded...
(0021006)
Odile Lemay   
2010-06-14 16:08   
(edited on: 2010-06-15 12:59)
We start having problems when we installed CDash on a new linux machine running Fedora 12 64-bit
Mysql 5.1.39, CDash 1.6.4, php 5.3.0.

We migrated our sql database, and we run the upgrade scripts (cdash/sql/.) without any errors.

We also run in the CDash maintenance, Upgrade CDash.
 
Since that new installation, there is no "Test Output" available in the CDash board.

The file produced by ctest contain compress information.
I tried to add –no-compress to ctest.
I got some test output in the CDash board but not all of them.

In the error-log file produce by Apache
We got the following error in ssl_error_log:

PHP Notice: Use of undefined constant user = assumed ‘user’ in <where my file is located>common.php on line 1815, referer: https:<myMachine>/index.php?project=<myProject>
 
PHP Warning: DOMDocument::loadXML(): PCDATA invalid Char value 12 in Entity, line: 18 in <where my file is located>/CDash/cdash/common.php on line 39, referrer: https:<myMachine>/CDash/viewTest.php?onlypassed&buildid=987

…. There is many errors like them.

We got some errors in error_log:

PHP Warning: DOMDocument::loadXML(): PCDATA invalid Char value 3 in Entity, line: 18 in <whereIsLocated>/common.php on line 39, referer: http://<MyMachine>/CDash/testDetails.php?test [^] =21083&build=1008

PHP Warning: DOMDocument::loadXML(): Premature end of data in tag output line 18 in Entity, line: 18 in <whereIsLocated>/common.php on line 39, referer: http://<myMachine>/CDash/testDetails.php?test=21083&build=1008 [^]

… There is many errors like them.

The cdash board is really important for us. We run unitary tests and regression tests on a daily basis for all our development projets.

(0021032)
Denis Charland   
2010-06-16 14:47   
Julien,

It looks like this problem is similar to the one reported yesterday in bug ID 10831 where the guy performed an upgrade after an upgrade. Everything was fine after the first upgrade. Problems with test outputs began after the second upgrade with error messages (Warning: DOMDocument::loadXML(): PCDATA invalid Char...). These messages are similar to the one reported here.

I talk to my co-worker (Odile Lemay) who wrote the note above and showed here the information in bug ID 10831. She told me that she upgraded CDash to 1.6.4 by first running an upgrade script located somewhere in the CDash tree then by pressing the “Upgrade CDash” button on Maintenance page. Looks to me as an upgrade after an upgrade.

I'm wondering if Tobias, who reported this bug, also performed by mistake an upgrade after an upgrade.

The problem is related to the test output compression. Looks like the second upgrade corrupts something in the CDash installation. Deactivating compression by setting $CDASH_USE_COMPRESSION='0' in cdash/cdash/config.php:75 and by running ctest with --no-compress-output option fixes the problem.
(0021033)
Julien Jomier   
2010-06-16 14:50   
I think the issue is still between CTest and CDash and not really due to the upgrade. Just to clarify, If you set $CDASH_USE_COMPRESS=1 and run ctest with --no-compress-output, do you get a valid result?
(0021034)
Odile Lemay   
2010-06-16 14:57   
If I run ctest --no-compress-output and CDASH_USE_COMPRESS = 0, with a lot of tests, in batch mode, there are still missing tests output. I got more, but not all of them.

If I run ctests --no-compress-output and CDASH_USE_COMPRESS=1, still in batch mode, I found few tests output.

I am doing tests on mac and linux machines.
(0021035)
Denis Charland   
2010-06-16 15:01   
Before assuming that the issue is not really due to the upgrade, maybe we should first wait for Tobias to tell us how he performed the upgrade.
(0021036)
Julien Jomier   
2010-06-16 15:12   
Could you tell me which version of CTest you are using?
(0021038)
Denis Charland   
2010-06-16 15:14   
We also have the following message in both error_log and ssl_error_log files located in /var/log/httpd:

PHP Notice: Use of undefined constant user - assumed 'user' in ../CDash/cdash/common.php on line 1815, referer: https://<my_machine>/CDash/index.php?project=<my_project_name> [^]
(0021040)
Odile Lemay   
2010-06-16 15:21   
We are using ctest provide with cmake 2.8.1
I compiled with the default options and I installed cmake myself, normal way.

Before upgrading cdash, we were able to produce Test Output with ctest (provided with 2.8.1).

Odile
(0021041)
Julien Jomier   
2010-06-16 15:21   
Thanks for the report. I just fixed the warning and put it a fix in the 1.6 branch.

Odile, regarding the test output that are missing, you mean they are producing errors when trying to view them, is that correct? Is there a way to send me the Test.XML in question? or a small test.xml that doesn't work?
(0021043)
Odile Lemay   
2010-06-16 15:31   
Ex: The Test Output for filling/buffat/analysis_diff and filling/buffat/analysis_gui are not display.

Those files are produced on linux Fedora 12 64 bits.
CDash is installed on the same machine, same user.
(0021059)
Julien Jomier   
2010-06-16 19:01   
I tried the XML files with an installation of 1.4.2 and it worked, I then upgraded to 1.6.4 and I can still see the tests result. From what I can tell there is an escaping issue. If you can run a small test by installing a fresh instance of CDash 1.6.4 on a separate database, create a project and try to submit to the project and see if you can see the results. If that doesn't work try the same thing but set CDASH_USE_COMPRESS = 0 in the config.local.php. Let me know if that solves the problem.
(0021060)
Julien Jomier   
2010-06-16 19:02   
Also, make sure that you have zlib module for php installed when you enable compression.