Return-Path: Delivered-To: apmail-xerces-c-dev-archive@www.apache.org Received: (qmail 87103 invoked from network); 18 Aug 2006 17:29:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 17:29:19 -0000 Received: (qmail 16695 invoked by uid 500); 18 Aug 2006 17:29:16 -0000 Delivered-To: apmail-xerces-c-dev-archive@xerces.apache.org Received: (qmail 16624 invoked by uid 500); 18 Aug 2006 17:29:16 -0000 Mailing-List: contact c-dev-help@xerces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: c-dev@xerces.apache.org Delivered-To: mailing list c-dev@xerces.apache.org Received: (qmail 16558 invoked by uid 99); 18 Aug 2006 17:29:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 10:29:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 10:29:14 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8BC037142E4 for ; Fri, 18 Aug 2006 17:26:15 +0000 (GMT) Message-ID: <24894313.1155921975569.JavaMail.jira@brutus> Date: Fri, 18 Aug 2006 10:26:15 -0700 (PDT) From: "Thomas Quinn (JIRA)" To: c-dev@xerces.apache.org Subject: [jira] Commented: (XERCESC-1578) Problems with MemHandlerTest on Tru64 UNIX 5.1 for Xerces C++ 2.7.0 In-Reply-To: <740228843.1142031579024.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/XERCESC-1578?page=comments#action_12429064 ] Thomas Quinn commented on XERCESC-1578: --------------------------------------- I also ran into this problem on an OSF1 V5.1 alpha box. Both cxx (Compaq C++ V6.5-040 for Compaq Tru64 UNIX V5.1B (Rev. 2650)) and gcc v. 3.4.0 give SEGVs. The following patch fixes the problem for me. My guess is that the original intent was to use the XMemory overload of the new operator, but RecursiveMutex is not derived from XMemory. =================================================================== RCS file: src/xercesc/util/Platforms/Tru64/RCS/Tru64PlatformUtils.cpp,v retrieving revision 1.1 diff -c -r1.1 src/xercesc/util/Platforms/Tru64/Tru64PlatformUtils.cpp *** 1.1 2006/08/17 22:36:32 --- src/xercesc/util/Platforms/Tru64/Tru64PlatformUtils.cpp 2006/08/17 22:57:33 *************** *** 469,475 **** void* XMLPlatformUtils::makeMutex(MemoryManager* manager) { ! return new (manager) RecursiveMutex(manager); } --- 469,475 ---- void* XMLPlatformUtils::makeMutex(MemoryManager* manager) { ! return new RecursiveMutex(manager); } > Problems with MemHandlerTest on Tru64 UNIX 5.1 for Xerces C++ 2.7.0 > ------------------------------------------------------------------- > > Key: XERCESC-1578 > URL: http://issues.apache.org/jira/browse/XERCESC-1578 > Project: Xerces-C++ > Issue Type: Bug > Components: Samples/Tests > Affects Versions: 2.7.0 > Environment: Tru64 UNIX 5.1 and CXX as compiler > Reporter: Orlando Hernandez > Priority: Blocker > > runConfigure -d -p tru64 -c cxx -x cxx -b 64 -rpthread -z -pthread > gmake > ladebug MemHandlerTest > Welcome to the Ladebug Debugger Version 69 (built May 4 2003 for Tru64 UNIX) > ------------------ > object file name: MemHandlerTest > Reading symbolic information ...done > dbx> r > Thread received signal SEGV > stopped at [void* __nw__7XMemoryXUl(size_t):37 0x3ffbffbe8dc] > Source file not found or not readable, tried... > ./XMemory.cpp > (Cannot find source file XMemory.cpp) > dbx> where > >0 0x3ffbffbe8dc in __nw__7XMemoryXUl(size=16) "XMemory.cpp":37 > #1 0x3ffbfee48e4 in XMLPlatformUtils::Initialize(locale=0x3ffbfcf11c0="en_US", nlsHome=0x0, panicHandler=0x0, memoryManager=0x140006d60, toInitStatics='\000') "PlatformUtils.cpp":276 > #2 0x120008ea8 in main(argC=1, argV=0x11fffc018) "/usr/users/ohernand/gnu/xalan.1.10.0/xerces-c-src_2_7_0/tests/MemHandlerTest/MemoryMonitor.cpp":173 > #3 0x120005a18 in __start(...) in MemHandlerTest > dbx> up > >1 0x3ffbfee48e4 in XMLPlatformUtils::Initialize(locale=0x3ffbfcf11c0="en_US", nlsHome=0x0, panicHandler=0x0, memoryManager=0x140006d60, toInitStatics='\000') "PlatformUtils.cpp":276 > Source file not found or not readable, tried... > ./PlatformUtils.cpp > (Cannot find source file PlatformUtils.cpp) > dbx> up > >2 0x120008ea8 in main(argC=1, argV=0x11fffc018) "/usr/users/ohernand/gnu/xalan.1.10.0/xerces-c-src_2_7_0/tests/MemHandlerTest/MemoryMonitor.cpp":173 > 173 XMLPlatformUtils::Initialize(XMLUni::fgXercescDefaultLocale, 0, 0, staticMemMonitor); > dbx> up > >3 0x120005a18 in __start(...) in MemHandlerTest > dbx> up > Can't move up that many frames. > dbx> > The same problem happend in the 2.6 version. > All the test has the same behavior. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org For additional commands, e-mail: c-dev-help@xerces.apache.org