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=6916>.
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=6916

ArenaBlock: deallocate called with 0 instead of m_blockSize

           Summary: ArenaBlock: deallocate called with 0 instead of
                    m_blockSize
           Product: XalanC
           Version: 1.3.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the call to m_allocator.deallocate in ArenaBlock::~ArenaBlock() in file 
ArenaBlock.hpp, 
the call to deallocate should have m_blockSize as the second parameter. Now it is 
always called 
with 0. 

        virtual 
        ~ArenaBlock()
        {
                destroyAll();

                // Release the 
memory...
                // m_allocator.deallocate(m_objectBlock, 0); // 
error
                m_allocator.deallocate(m_objectBlock, m_blockSize);
        }

If compiling with 
MSVC6 and STLport 4.5, this error causes the program to go in a indefinite loop when 
it shuts 
down.

Reply via email to