axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Hawkins <HAWKI...@uk.ibm.com>
Subject Fw: [jira] Created: (AXISCPP-204) Client segfaults when trying to call methods of caught exception
Date Fri, 15 Oct 2004 08:07:07 GMT




This looks important !
I think we should attempt to fix today for 1.4 - thoughts?


John Hawkins


----- Forwarded by John Hawkins/UK/IBM on 15/10/2004 09:06 -----
                                                                           
             axis-c-dev@ws.apa                                             
             che.org                                                       
                                                                        To 
             15/10/2004 04:46          axis-c-dev@ws.apache.org            
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
              "Apache AXIS C           [jira] Created: (AXISCPP-204)       
             Developers List"          Client segfaults when trying to     
                                       call methods of caught exception    
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXISCPP-204

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXISCPP-204
    Summary: Client segfaults when trying to call methods of caught
exception
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis-C++
 Components:
             Basic Architecture
   Versions:
             1.3 Beta

   Assignee:
   Reporter: Samisa Abeysinghe

    Created: Thu, 14 Oct 2004 8:45 PM
    Updated: Thu, 14 Oct 2004 8:45 PM
Environment: Linux with axis2 transport and Xerces parser

Description:
I have the following code in my client:

    catch (AxisException & e)
    {
        int code = e.getExceptionCode();
        cout << "e.getExceptionCode()" << code <<  endl;
        printf ("Exception : %s\n", e.what ());
        return -1;
    }

The client segfaults when e.getExceptionCode() is called.

If I comment that line, then the client craches when e.what() is called.

Also I observed that exception class has:
virtual const char* what() const throw();
However AxisException class that inherits exception class has:
virtual const char* what() throw() = 0;
Note that trailing const is missing in the second call. I guess this is a
bug.



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



Mime
View raw message