Re: [xml] Program crashes at LIBXML_TEST_VERSION



Please note that I am using libxml version 2.6.23 downloaded from GNOME website (http://gnome.bullfreeware.com/new_index.html). Operating system is AIX 5.2

Also note that I have developed a simple test application and its working fine. No crash at LIBXML_TEST_VERSION macro.

This problem was observed while using libxml in a dll only.

Regards,

Ahmad Jalil Qarshi

On 6/19/07, Ahmad Jalil Qarshi <ahmad jalil qarshi gmail com> wrote:
Hi,

I am using libxml library in a dll. When I call a function from my dll, using this library, my application crashes. My code looks like:
------------------------------------------------------------------
int FormatCommand(char szName[], char szAction[], char szID[], char szCustID[], char szLogin[], int nUserType, int nPayType, int nPayMode, char OldCustPswd[], char NewCustPswd[], char OldPkgID[], char NewPkgID[], char szStatus[])
    xmlDocPtr doc = NULL;       /* document pointer */
    xmlNodePtr root_node = NULL, headerNode = NULL, ServiceNode = NULL, BodyNode = NULL, node = NULL, node1=NULL;/* node pointers */
    xmlDtdPtr dtd = NULL;       /* DTD pointer */
    xmlChar *xmlbuff;
    int buffersize;
    char buff[256];
    int i, j;
    printf("\nIn FormatCommand Function\n");
    LIBXML_TEST_VERSION;  (At this point my application crashes)
    printf("\nLIBXML_TEST_VERSION\n");

    doc = xmlNewDoc(BAD_CAST "1.0"); 
    root_node = xmlNewNode(NULL, BAD_CAST "RequestMessage");
    xmlDocSetRootElement(doc, root_node);
------------------------------------------------------------------

When I debuged my application I got following information:
***********************************************************************
[mediaapp:/mediaapp/media/qarshi/control]dbx ctrlmain core
Type 'help' for help.
[using memory image in core]
reading symbolic information ...

Illegal instruction (illegal opcode) in . at 0x0 ($t1)
warning: Unable to access address 0x0 from core
(dbx) where
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
warning: Unable to access address 0xfffffffffffffffc from core
.() at 0x0
FormatCommand(0x205b26d8, 0x205b2b98, 0x2ff21580, 0x0, 0x0, 0xffffffff, 0xffffffff, 0xffffffff) at 0xd3be460c
generateSend(0x20011928, 0x2ff21b70, 0x20011938) at 0xd3be298c
SendCommand(0x20011928, 0x2ff21c6c, 0x2ff21b70, 0x20011938) at 0xd3be3988
Manager(0x2ff221a0, 0x20013f18), line 283 in "ctrlManager.c"
unnamed block $b473, line 126 in "ctrlCPManager.c"
CPManager(), line 126 in " ctrlCPManager.c"
main(argc = 2, argv = 0x2ff226dc), line 255 in "ctrlmain.c"
(dbx) quit
***********************************************************************

Kindly help me to resolve this problem.

Thanks in anticipation.

Ahmad Jalil Qarshi




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]