MantisBT - CDash
View Issue Details
0007570CDashpublic2008-08-28 10:152009-03-28 17:17
Dan Thill 
Julien Jomier 
normalminoralways
closedfixed 
1.0.2 
1.4 
0007570: Test submission silently fails when test output is quite large.
When the output from a test is "large" (for me, it was 7MB), the submission would silently fail (nothing was obvious from the client side). I know there are plans to increase the test.output column to a MEDIUMTEXT or LARGETEXT, so I went ahead and did this myself manually. The failure still occurred. I tracked it down to this:

common.php:add_test
-------------------
 $output = mysql_real_escape_string($output);

It simply never returns from this function. I couldn't find anything in any logs, but this is probably a setup problem on my part--I'm not much of web admin.

I suspect it is a MySQL bug, but it may be something that affects us when the test.output column gets increased. Perhaps there are other ways to sanitize the output?

In the meantime, I was able to just truncate my output to 500k so I could keep going.

Server Version: Apache/2.2.8 (Win32) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g mod_autoindex_color SVN/1.4.6 PHP/5.2.5

Mysql: 5.0.51a
No tags attached.
zip Test.xml.zip (1,603,106) 2008-08-28 11:35
https://public.kitware.com/Bug/file/1689/Test.xml.zip
Issue History
2008-08-28 10:15Dan ThillNew Issue
2008-08-28 10:20Julien JomierStatusnew => assigned
2008-08-28 10:20Julien JomierAssigned To => Julien Jomier
2008-08-28 10:24Julien JomierNote Added: 0013215
2008-08-28 10:48Dan ThillNote Added: 0013216
2008-08-28 11:35Dan ThillFile Added: Test.xml.zip
2009-02-03 13:49Julien JomierNote Added: 0014767
2009-02-03 13:49Julien JomierStatusassigned => resolved
2009-02-03 13:49Julien JomierFixed in Version => 1.4
2009-02-03 13:49Julien JomierResolutionopen => fixed
2009-03-28 17:17Julien JomierStatusresolved => closed

Notes
(0013215)
Julien Jomier   
2008-08-28 10:24   
It might be a php memory issue. Could you try to increase the memory_limit variable in your php.ini?
BTW, CDash 1.2 will have a MEDIUMTEXT.
Also, if there is a way to get your xml files that would be great (if you can make them avaiable). Thanks for the report.
(0013216)
Dan Thill   
2008-08-28 10:48   
I already did that--I apologize for forgetting to mention it. I increased all the limits I could find to extremely large values (CDash is just a local install for me to track regression tests).
(0014767)
Julien Jomier   
2009-02-03 13:49   
It seems to work with the new parser. It might be a memory issue at the MySQL level though. I tried on my windows box with MySQL 5.0 and it worked. Feel free to reopen if you have more information.