You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Deepti Shenai (JIRA)" <xe...@xml.apache.org> on 2012/07/19 07:01:35 UTC

[jira] [Created] (XERCESC-1991) AbstractDOMParser::parse xercesc_2_2 giving core dump

Deepti Shenai created XERCESC-1991:
--------------------------------------

             Summary: AbstractDOMParser::parse xercesc_2_2 giving core dump
                 Key: XERCESC-1991
                 URL: https://issues.apache.org/jira/browse/XERCESC-1991
             Project: Xerces-C++
          Issue Type: Bug
          Components: DOM
    Affects Versions: 2.2.0
         Environment: SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1

            Reporter: Deepti Shenai


I get the following core dump
#0  0x00007f9df7926945 in raise () from /lib64/libc.so.6
#1  0x00007f9df7927f21 in abort () from /lib64/libc.so.6
#2  0x00007f9df83a3504 in __gnu_cxx::__verbose_terminate_handler() ()
   from /usr/lib64/libstdc++.so.6
#3  0x00007f9df83a1946 in ?? () from /usr/lib64/libstdc++.so.6
#4  0x00007f9df83a1973 in std::terminate() () from /usr/lib64/libstdc++.so.6
#5  0x00007f9df83a19f5 in __cxa_rethrow () from /usr/lib64/libstdc++.so.6
#6  0x00007f9dedcd2351 in xercesc_2_2::AbstractDOMParser::parse(xercesc_2_2::InputSource const&) () from /usr/openv/lib/libvxxml4c.so
#7  0x000000000781ab18 in ?? ()
#8  0x00007f9de4ca9240 in ?? ()
#9  0x0000000007819b50 in ?? ()


Looks like AbstractDOMParser::parse is throwing an exception that is not being caught.
When i checked AbstractDOMParser::parse documentation on http://xerces.apache.org/xerces-c/apiDocs-3/classAbstractDOMParser.html#b6fbd6cdf84cce77db1c780017d107dd it mentions 3 types of exceptions to be caught. And I am catching all of them. 

This error happens when I get HTTP return code 416. With HTTP code 200 and 404 everything works well. 

Also want to know if AbstractDOMParser has some limitation with Multithreading.

This problem is not always reproducible.
Let me know if you need some more information.

Thank you.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] [Commented] (XERCESC-1991) AbstractDOMParser::parse xercesc_2_2 giving core dump

Posted by "Deepti Shenai (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESC-1991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418285#comment-13418285 ] 

Deepti Shenai commented on XERCESC-1991:
----------------------------------------

I am able to reproduce the problem by, on purpose, sending a request for data that is out of range. 
Meaning, if I send request for bytes 4096 - 8192, where the data is of just 1KB, I get HTTP code 416, and AbstractDOMParser::parse core dumps.

If I right a catch all statement in addition to the above mentioned 3 catches, there is no core.
But otherwise it is always reproducible. 
                
> AbstractDOMParser::parse xercesc_2_2 giving core dump
> -----------------------------------------------------
>
>                 Key: XERCESC-1991
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1991
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 2.2.0
>         Environment: SUSE Linux Enterprise Server 11 (x86_64)
> VERSION = 11
> PATCHLEVEL = 1
>            Reporter: Deepti Shenai
>
> I get the following core dump
> #0  0x00007f9df7926945 in raise () from /lib64/libc.so.6
> #1  0x00007f9df7927f21 in abort () from /lib64/libc.so.6
> #2  0x00007f9df83a3504 in __gnu_cxx::__verbose_terminate_handler() ()
>    from /usr/lib64/libstdc++.so.6
> #3  0x00007f9df83a1946 in ?? () from /usr/lib64/libstdc++.so.6
> #4  0x00007f9df83a1973 in std::terminate() () from /usr/lib64/libstdc++.so.6
> #5  0x00007f9df83a19f5 in __cxa_rethrow () from /usr/lib64/libstdc++.so.6
> #6  0x00007f9dedcd2351 in xercesc_2_2::AbstractDOMParser::parse(xercesc_2_2::InputSource const&) () from /usr/openv/lib/libvxxml4c.so
> #7  0x000000000781ab18 in ?? ()
> #8  0x00007f9de4ca9240 in ?? ()
> #9  0x0000000007819b50 in ?? ()
> Looks like AbstractDOMParser::parse is throwing an exception that is not being caught.
> When i checked AbstractDOMParser::parse documentation on http://xerces.apache.org/xerces-c/apiDocs-3/classAbstractDOMParser.html#b6fbd6cdf84cce77db1c780017d107dd it mentions 3 types of exceptions to be caught. And I am catching all of them. 
> This error happens when I get HTTP return code 416. With HTTP code 200 and 404 everything works well. 
> Also want to know if AbstractDOMParser has some limitation with Multithreading.
> This problem is not always reproducible.
> Let me know if you need some more information.
> Thank you.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org