[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xerces-c utils ValueVectorOf sigbus

  • To: <xml-dev@l...>
  • Subject: xerces-c utils ValueVectorOf sigbus
  • From: "Fred Crable" <fcrable@v...>
  • Date: Mon, 5 Dec 2005 02:18:43 -0600
  • Thread-index: AcX5dIDxnHuNTc/JQt6JhoCRTUUK/A==
  • Thread-topic: xerces-c utils ValueVectorOf sigbus

sigbus
I'm running the same systems on Linux & Solaris 2.9 and I'm hitting a
wall here.  On Linux I'm great, but on Solaris I get an occasional
SigBus.  I know this may be my fault but it is very strange that I keep
sigbus in the same section of the xerces-c code every time.  It always
is crashing in the ValueVectorOf descructor.  Note, I've removed the
memory manager allocate from this code just for something else to try
but in general it's crashing here:

Loaded symbols for /usr/lib/libthread.so.1
#0  0xfec872d4 in xercesc_2_7::ValueVectorOf<int>::~ValueVectorOf()
(this=0x406fd33)
    at
/export/home/build/3.5.0/cvs/Thirdparty/devlibs/xerces-c-src_2_7_0/inclu
de/xercesc/util/ValueVectorOf.c:80
80          delete [] fElemList;
(gdb) print fElemList
$1 = (int *) 0x8056ea4
(gdb) print *fElemList
Cannot access memory at address 0x8056ea4
(gdb) where
#0  0xfec872d4 in xercesc_2_7::ValueVectorOf<int>::~ValueVectorOf()
(this=0x406fd33)
    at
/export/home/build/3.5.0/cvs/Thirdparty/devlibs/xerces-c-src_2_7_0/inclu
de/xercesc/util/ValueVectorOf.c:80
#1  0xfecc4e64 in xercesc_2_7::ValueStackOf<int>::~ValueStackOf()
(this=0x406fd33)
    at
/export/home/build/3.5.0/cvs/Thirdparty/devlibs/xerces-c-src_2_7_0/inclu
de/xercesc/util/ValueStackOf.c:45
#2  0xfeb57124 in xercesc_2_7::XPathMatcherStack::cleanUp()
(this=0x406fd33) at XPathMatcherStack.cpp:66

g++ (GCC) 3.2.3
GNU gdb 6.0
SunOS sol9-280-01 5.9 Generic_118558-11 sun4u sparc SUNW,Sun-Fire-280R


Has anyone seen anything like this!?  I'm not even getting a full stack
trace and it's in the descructor and I'm basically stuck.  Is xerces on
Solaris 2.9 just a bad idea?  What else can I try?

FYI -- Some background on this process.  It's a multi-threaded process
that is doing quite a bit of xml parsing just for settings and stuff.
It's basically chewing on the same XML over and over again in different
threads.  It works fine on Linux but here it fails badly.  I thought I
may of run out of memory but I have to GB ram & 5 GB swap setup.  Anyway
worth a shot asking the question to see.

Also, this is what I was playing with and doesn't amount to a hill of
beans:
diff -r1.2 ValueVectorOf.c
79c79,80
<     fMemoryManager->deallocate(fElemList); //delete [] fElemList;
---
>     //fMemoryManager->deallocate(fElemList); //
>     delete [] fElemList;
96c97,98
<         fMemoryManager->deallocate(fElemList); //delete [] fElemList;
---
>         //fMemoryManager->deallocate(fElemList); //
>         delete [] fElemList;
249c251,252
<     fMemoryManager->deallocate(fElemList); //delete [] fElemList;
---
>     //fMemoryManager->deallocate(fElemList); //
>     delete [] fElemList;

Thanks in advance,
Fred Crable


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.