[ http://issues.apache.org/jira/browse/XERCESC-1618?page=all ]

David Bertoni closed XERCESC-1618.
----------------------------------

    Resolution: Invalid

> seg fault/null pointer when invoking 'XMLReaderFactory::createXMLReader();'
> ---------------------------------------------------------------------------
>
>                 Key: XERCESC-1618
>                 URL: http://issues.apache.org/jira/browse/XERCESC-1618
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: SAX/SAX2
>    Affects Versions: 2.7.0
>         Environment: 1) windows XP SP2, build with Visual Studio 8
> 2) fedora core 4, run with both g++ 4.0.0 and 3.4.3
>            Reporter: JohnV
>
> void* XMemory::operator new(size_t size, MemoryManager* manager)
> {
> //** with assertions enabled, the following fails...    
> assert(manager != 0);
>       
> size_t headerSize = 
> XMLPlatformUtils::alignPointerForNewBlockAllocation(sizeof(MemoryManager*));
> /** with assertions disabled, the next line of code fails...manager pointer 
> is null
>     void* const block = manager->allocate(headerSize + size);
>     *(MemoryManager**)block = manager;
>     return (char*)block + headerSize;
> }
> -------------------------------------------------------------------
> On fedora core 4, my program gets a segmentation fault when I link to the 
> library from distribution xerces-c_2_7_0-redhat_AS4-gcc_343.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to