DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23442>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23442

XMLPlatformUtils::Initialize() in static build

           Summary: XMLPlatformUtils::Initialize() in static build
           Product: Xerces-C++
           Version: 2.3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When I call XMLPlatformUtils::Initialize() within thread my app gets killed. This only 
occurs in static build, in shared build everything goes fine. 
 
Stderr log: 
Server: got connection! 
enabling events on socket11 
Server: creating worker 
got XML query 
Killed 
 
Backtrace: 
Program terminated with signal 11, Segmentation fault. 
#0  0x082f4ab4 in __ctype_get_mb_cur_max () 
(gdb) bt 
#0  0x082f4ab4 in __ctype_get_mb_cur_max () 
#1  0x0822e1eb in xercesc_2_3::IconvLCPTranscoder::calcRequiredSize(char 
const*) () 
#2  0x0822e919 in xercesc_2_3::IconvLCPTranscoder::transcode(char const*, 
unsigned short*, unsigned) () 
#3  0x081ef12e in xercesc_2_3::XMLString::transcode(char const*, unsigned short*, 
unsigned) () 
#4  0x081e593e in xercesc_2_3::XMLMsgLoader::setLocale(char const*) () 
#5  0x081d680e in xercesc_2_3::XMLPlatformUtils::Initialize(char const*, char 
const*, xercesc_2_3::PanicHandler*, xercesc_2_3::MemoryManager*) () 
#6  0x08059915 in irsserver::XMLWorker::XMLInitialize() (this=0x85a84c8) 
    at /home/zork/sources/irs/src/server/xmlworker.cpp:183 
#7  0x080596d4 in irsserver::XMLWorker::Entry() (this=0x85a84c8) 
    at /home/zork/sources/irs/src/server/xmlworker.cpp:160 
#8  0x08113adb in wxThreadInternal::PthreadStart(wxThread*) (thread=0x85a84c8) 
at src/unix/threadpsx.cpp:747 
#9  0x08113956 in wxPthreadStart (ptr=0x85a84c8) at src/unix/threadpsx.cpp:692 
#10 0x082e4bae in pthread_start_thread () 
 
I am linking with xerces, postgres sql, crypto, wxWindows and my own libs. 
 
I made static lib by building and installing xerces, and then making static lib this 
way: 
 
cd $XERCESCROOT/obj/LINUX 
ar -rs libxerces-c.a *.obj 
 
link command: 
-static -L/home/zork/sources/irs/build/lib/base-ix86-gcc3 -lirsbase 
`wxbaseud-2.4-config --libs` -L/home/zork/sources/wxutils 
-L/home/zork/sources/wxutils/build/lib-nogui-unicode -lwxutils-nogui-unicode 
-lwxbasesh -L/home/zork/sources/dba/dba -ldba 
-L/home/zork/sources/common/common -lcommon -lcryptopp  -L/usr/local/pgsql/lib 
-lpq  -lcrypt -lxerces-c 
 
When I remove "static" everything goes fine. I think it is related to xerces. 
 
Regards, 
Ɓukasz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to