BIND 10 #906: MessageTest::toText fails for the second test data file

BIND 10 Development do-not-reply at isc.org
Thu May 5 22:07:14 UTC 2011


#906: MessageTest::toText fails for the second test data file
-------------------------------------+-------------------------------------
            Reporter:  jinmei        |                        Owner:  jreed
                Type:  defect        |                       Status:  new
            Priority:  major         |                    Milestone:
           Component:  build system  |  Sprint-DHCP-20110517
           Sensitive:  0             |                     Keywords:
         Sub-Project:  DNS           |              Defect Severity:  N/A
Estimated Difficulty:  1             |  Feature Depending on Ticket:
         Total Hours:  0             |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 At least some versions of libstdc++ (that comes with g++) don't seem to
 use the straightforward reuse of ifstream after close().  It can be
 reproduced by the following simple test case:

 {{{
 int
 main() {
     ifstream ifs;
     for (int i = 0; i < 2; ++i) {
         ifs.open("ifs.cc");
         if (ifs.fail()) {
             return (1);
         }
         string s;
         while (getline(ifs, s), !ifs.eof()) {
             ;
         }
         ifs.close();
     }
     return (0);
 }
 }}}

 This problem made this autobuild failure:
 http://bind10.isc.org/~tester/builder//BIND10/20110505182000-Solaris10
 -sparc-GCC/logs/unittests.out

 I'm attaching a proposed fix (confirmed on the Solaris box).  It
 should be pretty trivial, but I'll put it in the review queue in case
 someone has a better idea or possibly finds a problem in the patch.

 If it doesn't get reviewed soon (and especially if I see the failure
 report before it gets reviewed), I'll merge it anyway.

 I'll insert it to the current sprint, giving an estimation of 1.

-- 
Ticket URL: <https://bind10.isc.org/ticket/906>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list