Hi Sebastian, 

Given that it crashes with null pointer error around XalanDOMString.hpp(59) and 
ICUCleanUp() doesn't seem to play any role with the crash, it may be related to


https://issues.apache.org/jira/browse/XALANC-744


Here is my one liner patch for the issue and hope it helps:

Index: src/xalanc/PlatformSupport/XalanLocator.hpp
===================================================================
--- src/xalanc/PlatformSupport/XalanLocator.hpp (revision 1580726)
+++ src/xalanc/PlatformSupport/XalanLocator.hpp (working copy)
@@ -91,7 +91,7 @@
             const XalanDOMChar*     theAlternateId = getEmptyPtr())
     {
         return theLocator == 0 ? theAlternateId : (theLocator->getSystemId() ?
-            theLocator->getPublicId() : theAlternateId);
+            theLocator->getSystemId() : theAlternateId);
     }

     /**

Regards,


Scott

On Wednesday, May 21, 2014 1:23 AM, Sebastian Wannemaker 
<sebastian.wannema...@gmail.com> wrote:
 


Hi Scott,

thanks for your answer. Unfortunately, removing ICUCleanUp() don't solve the 
issue. While digging a little bit deeper, it crashes in Microsoft Visual Studio 
10.0\VC\include\xutility line 2237:

template<class _InIt,
class _OutTy,
size_t _OutSize> inline
_OutTy *copy(_InIt _First, _InIt _Last,
_OutTy (&_Dest)[_OutSize])
{// copy [_First, _Last) to [_Dest, ...)
return (_Unchecked(
_STD copy(_First, _Last,     // <--- THIS IS LINE 2237
_Array_iterator<_OutTy, _OutSize>(_Dest))));
}
 #endif /* _ITERATOR_DEBUG_LEVEL == 0 */

What should I say, shame on me, I disobey the elementary rule "Treat compiler 
warnings as errors"... While compiling I get 

warning C4996: 'std::_Copy_backward': Function call with parameters that may be 
unsafe - this call relies on the caller to check that the passed values are 
correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See 
documentation on how to use Visual C++ 'Checked Iterators'


caused by XalanVector.hpp(282), XalanVector.hpp(274), XalanDOMString.hpp(59) 
and some more cases. Even if I do not know how to deal with this exactly, I am 
a step further and can dig there.

Thanks
Sebastian





2014-05-21 6:33 GMT+02:00 Scott Yuan <yua...@yahoo.com>:


>Hi Sebastian, 
>
>I will try removing following line
>
>  xalanc::XalanTransformer::ICUCleanUp();
>
>and see it still crash.   
>
>Regards,
>
>Scott Yuan
>

Reply via email to