Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - 6.3.2 cpp on 6.4.0: (6 Items)
   
6.3.2 cpp on 6.4.0  
We are having problems running C++ programs built under 6.3.2 on 6.4.0. They SIGSEGV all over the place.  The same 
executable runs fine on 6.3.2.

If you want I can create a small test case to demonstrate the problem.  We use 3.3.5,gcc_ntox86.

I tried to copy the libcpp.so.4 of 6.3.2 over that of the 6.4.0 but to no avail.

Re: 6.3.2 cpp on 6.4.0  
Mario Charest wrote:
> If you want I can create a small test case to demonstrate the problem.  We use 3.3.5,gcc_ntox86.

Yes, could you please create the testcase? I'd really like to have a look.

Regards,

Ryan Mansfield
RE: 6.3.2 cpp on 6.4.0  
Uncompress that file. The binary is testcase.exe. Make sure LD_LIBRARY_PATH points to the poco_1.3.3_1_QNX6.3.2/lib.

If you want to build it run the build script.  

If necessary I can sent you the poco stuff (source) as well but it's quite bit.

Meanwhile I will try to build a static debug version of Poco to link against and send you the whole thing.

> -----Original Message-----
> From: Ryan Mansfield [mailto:community-noreply@qnx.com]
> Sent: January-12-09 7:02 PM
> To: ostech-core_os
> Subject: Re: 6.3.2 cpp on 6.4.0
> 
> Mario Charest wrote:
> > If you want I can create a small test case to demonstrate the
> problem.  We use 3.3.5,gcc_ntox86.
> 
> Yes, could you please create the testcase? I'd really like to have a
> look.
> 
> Regards,
> 
> Ryan Mansfield
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post19923
> 

Attachment: Text problem.7z 1.14 MB
RE: 6.3.2 cpp on 6.4.0  
This is a version with all static libraries, it still crashes (hence it's not related to the Poco librairies being 
shared object).  With the debugger I can see where it crashes:


void ParserEngine::init()
{
	if (_parser)
		XML_ParserFree(_parser);

	if (!_pBuffer)
		_pBuffer  = new char[PARSE_BUFFER_SIZE];

// --- CRASHED in the function __dynamic_cast ../../gcc/cp/tinfo2.cc
	if (dynamic_cast<NoNamespacePrefixesStrategy*>(_pNamespaceStrategy))
	{
		_parser = XML_ParserCreateNS(_encodingSpecified ? _encoding.c_str() : 0, '\t');
		XML_SetNamespaceDeclHandler(_parser, handleStartNamespaceDecl, handleEndNamespaceDecl);
	}
	else if (dynamic_cast<NamespacePrefixesStrategy*>(_pNamespaceStrategy))
	{
		_parser = XML_ParserCreateNS(_encodingSpecified ? _encoding.c_str() : 0, '\t');
		XML_SetReturnNSTriplet(_parser, 1);
		XML_SetNamespaceDeclHandler(_parser, handleStartNamespaceDecl, handleEndNamespaceDecl);
	}
	else
	{
		_parser = XML_ParserCreate(_encodingSpecified ? _encoding.c_str() : 0);
	}

	XML_SetUserData(_parser, this);
	XML_SetElementHandler(_parser, handleStartElement, handleEndElement);
	XML_SetCharacterDataHandler(_parser, handleCharacterData);
	XML_SetProcessingInstructionHandler(_parser, handleProcessingInstruction);
	if (_expandInternalEntities)
		XML_SetDefaultHandlerExpand(_parser, handleDefault);
	else
		XML_SetDefaultHandler(_parser, handleDefault);
	XML_SetUnparsedEntityDeclHandler(_parser, handleUnparsedEntityDecl);
	XML_SetNotationDeclHandler(_parser, handleNotationDecl);
	XML_SetExternalEntityRefHandler(_parser, handleExternalEntityRef);
	XML_SetCommentHandler(_parser, handleComment);
	XML_SetCdataSectionHandler(_parser, handleStartCdataSection, handleEndCdataSection);
	XML_SetDoctypeDeclHandler(_parser, handleStartDoctypeDecl, handleEndDoctypeDecl);
	XML_SetEntityDeclHandler(_parser, handleEntityDecl);
	XML_SetSkippedEntityHandler(_parser, handleSkippedEntity);
	XML_SetParamEntityParsing(_parser, _externalParameterEntities ? XML_PARAM_ENTITY_PARSING_ALWAYS : 
XML_PARAM_ENTITY_PARSING_NEVER);
	XML_SetUnknownEncodingHandler(_parser, handleUnknownEncoding, this);
}

> -----Original Message-----
> From: Ryan Mansfield [mailto:community-noreply@qnx.com]
> Sent: January-12-09 7:02 PM
> To: ostech-core_os
> Subject: Re: 6.3.2 cpp on 6.4.0
> 
> Mario Charest wrote:
> > If you want I can create a small test case to demonstrate the
> problem.  We use 3.3.5,gcc_ntox86.
> 
> Yes, could you please create the testcase? I'd really like to have a
> look.
> 
> Regards,
> 
> Ryan Mansfield
> 
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post19923
> 

Attachment: Text testcase.exe.7z 1.07 MB
Re: 6.3.2 cpp on 6.4.0  
Should I also create a ticket through support because this is a show stopper for us.

Re: 6.3.2 cpp on 6.4.0  
Mario Charest wrote:
> Should I also create a ticket through support because this is a show stopper for us.

If it's critical then file a ticket. I haven't had a chance to dig 
through your test case yet.

Regards,

Ryan Mansfield