Unmarshalling xml

Akbar Bash akbar.bs at gmail.com
Wed Oct 5 06:21:21 EDT 2016


Hi,

I am exploring SAML2.0 C++ version. I followed the code snippet to
Unmarshall the XML.
https://wiki.shibboleth.net/confluence/display/OpenSAML/
OSTwoUsrManCPPCreateFromXML

I see a core dump while calling XMLString::transcode. Here is the stack.

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f8c15587ea0 in xercesc_3_1::XMLString::transcode
(toTranscode=0x0, manager=0x0) at xercesc/util/XMLString.cpp:615
615     return gTranscoder->transcode(toTranscode, manager);
(gdb) bt
#0  0x00007f8c15587ea0 in xercesc_3_1::XMLString::transcode
(toTranscode=0x0, manager=0x0) at xercesc/util/XMLString.cpp:615
#1  0x00007f8c1564918d in xercesc_3_1::InputSource::InputSource
(this=0x7ffc0fd0c8e0, systemId=<optimized out>, manager=<optimized out>)
    at xercesc/sax/InputSource.cpp:115
#2  0x00007f8c15b719ee in xmltooling::StreamInputSource:
:StreamInputSource(std::istream&, char const*) () from
/usr/local/lib/libxmltooling.so.7
#3  0x00007f8c15b751cd in xmltooling::ParserPool::parse(std::istream&) ()
from /usr/local/lib/libxmltooling.so.7

I see the same issue when I ran the xmltooling test suites.

If I am calling XMLString::transcode() then by calling
 XMLPlatformUtils::Initialize() would initialise  fgMemoryManager.
But here the call is made by the xerces-c library. In the call stack I
could not see reference to call above API to intialize.

is there any macro need to be enabled to get rid of this error.

Please let me know the right group if this is only related usage of
Shibboleth IDP.

I would appreciate your help.

Regards,
Akbar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20161005/80db4f7f/attachment.html>


More information about the users mailing list