[ 
http://issues.apache.org/jira/browse/XERCESC-1337?page=comments#action_58590 ]
     
Leon Zhang commented on XERCESC-1337:
-------------------------------------

Normally, whole testcase carsh right after "//  Attr01 " of "//  Attr02" 
blocks. 
Since after trancode is changed to WIN32, no crash happen, I suspect codes 
related to ICU trancode.

In addition, I found codes below in in DOmMemtest.cpp:
{
        static char testStr[] = "This is our test string.";

        DOMString DOMTestStr = testStr;
*       char *roundTripString = DOMTestStr.transcode();
*       TASSERT(strcmp(testStr, roundTripString) == 0);
*       delete [] roundTripString;

        DOMString domstr2 = DOMString::transcode(testStr);
        TASSERT(domstr2.equals(DOMTestStr));
}

After I comment out three lines  above started with "*", I can whole testcase 
can work.


I feel perhaps functions below or function ucnv_fromUChars called by it has bug:
 bool ICULCPTranscoder::transcode(   const   XMLCh* const    toTranscode
                                    ,       char* const     toFill
                                    , const unsigned int    maxChars) 

I found that err's value is -124 after ucnv_fromUChars is called in this 
trancode function.

> DOMMemTest  fails with  Segmentation violation(xserces1.7 + ICU transcode + 
> windows2000)
> ----------------------------------------------------------------------------------------
>
>          Key: XERCESC-1337
>          URL: http://issues.apache.org/jira/browse/XERCESC-1337
>      Project: Xerces-C++
>         Type: Bug
>   Components: Utilities
>     Versions: 1.7.0
>  Environment: windows2000 + xseces 1.7
>     Reporter: Leon Zhang
>     Priority: Critical

>
> When I run DOMMemTest testcase after build xerces with ICU trascode option, 
> DOMMemTest  always fails with  Segmentation violation.  I am not sure this is 
> a DOMString bug or ICUTransService.cpp bug. But it seesm that this is not a 
> DOMString bug, since after build serces with WIN32 transcode.  It seems that 
> xseces 2.5 have the same bug, so other guys have to build xerces with WIN32 
> transcode.  I need your help.
> (You some products are embeded in xerces). Thanks a lot!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to