Skip to Content.
Sympa Menu

mace-opensaml-users - RE: [OpenSAML] marshalling problem C++

Subject: OpenSAML user discussion

List archive

RE: [OpenSAML] marshalling problem C++


Chronological Thread 
  • From: "Brian Sheely" <>
  • To: <>
  • Subject: RE: [OpenSAML] marshalling problem C++
  • Date: Tue, 13 May 2008 11:45:41 -0700

I've tried to build samltest and xmltoolingtest, but I get a "A tool
returned an error code from "Performing Custom Build Step"" error in
both cases. I assume that's the result of running cxxtest\cxxtestgen.pl.
I still haven't figured out that issue.

I also built a very simple application with all of the code in main:

XMLToolingConfig::getConfig().init();
SAMLConfig::getConfig().init();
AuthnRequest* request = NULL;

try {
request =
opensaml::saml2p::AuthnRequestBuilder::buildAuthnRequest();
} catch (XMLObjectException& e) {
return 1;
}

DOMElement* element = request->marshall();
bool hasAttributes = element->hasAttributes();
return 0;

When compiled in release mode, I crash on the element->hasAttributes
call (It's not just the hasAttributes method... any other call would
also crash). When compiled in debug mode, I get a "Run-Time CheckFailure
#0..." error on the request->marshall call. I've never seen that error
before, but apparently it indicates the stack is messed up.

This code, as well as my real app, was built using Visual Studio 2005 on
Windows XP. Other than specifying the dependencies and setting the
paths, no other Visual Studio setting were changed. I've rebuilt all of
the third-party code (xerces, xmlsec, etc.). As a matter of fact, I've
tried using xerces libs that I built, as well as the pre-compiled
binaries (which I'm using now).

For whatever reason, I don't get the stack error when running the real
app. And I also think it's significant that I never actually step into
any xerces code during the marshall call. A few hundred calls in
xmltooling, but I return without ever seeing a xerces call on the stack.


Brian Sheely




Archive powered by MHonArc 2.6.16.

Top of Page