You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Andrew Perry (JIRA)" <ax...@ws.apache.org> on 2004/11/22 15:02:35 UTC

[jira] Created: (AXISCPP-279) Client fails with SIGSEGV on Linux with tracing enabled

Client fails with SIGSEGV on Linux with tracing enabled
-------------------------------------------------------

         Key: AXISCPP-279
         URL: http://nagoya.apache.org/jira/browse/AXISCPP-279
     Project: Axis-C++
        Type: Bug
  Components: Basic Architecture  
    Versions: current (nightly)    
 Environment: Linux
    Reporter: Andrew Perry
 Assigned to: Mark Whitlock 
    Priority: Critical


With tracing embedded and enabled the client fails with a SIGSEGV. The debug output is:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1221468032 (LWP 13331)]
0xb75b9041 in axiscpp::AxisTrace::traceEntry ()
   from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
(gdb) bt
#0  0xb75b9041 in axiscpp::AxisTrace::traceEntry ()
   from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
#1  0xb756ec28 in axiscpp::AxisConfig::getAxisConfProperty ()
   from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
#2  0xb7598004 in initialize_module ()
   from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
#3  0xb7599cff in axiscpp::Call::Call ()
   from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
#4  0xb7582192 in axiscpp::Stub::Stub ()
   from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
#5  0x0804b724 in operations (this=0x8052758,
    pcEndpointUri=0x8052718 "http://localhost:9080/ComplexTypeAll/services/Service",
    eProtocol=APTHTTP1_1)
    at /home/axistest/test_P/obj/test/generated/cpp/ComplexTypeAll/operations.cpp:17
#6  0x0804af9a in main (argc=1, argv=0xbfffb8b4)
    at /home/axistest/test_P/obj/test/generated/cpp/ComplexTypeAll/ComplexTypeAllClient.cpp:30

This is happening for all client tests.

Commenting out the ClientLogPath directive in the axiscpp.conf file allows the client to work correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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


[jira] Closed: (AXISCPP-279) Client fails with SIGSEGV on Linux with tracing enabled

Posted by "Mark Whitlock (JIRA)" <ax...@ws.apache.org>.
     [ http://nagoya.apache.org/jira/browse/AXISCPP-279?page=history ]
     
Mark Whitlock closed AXISCPP-279:
---------------------------------

     Resolution: Fixed
    Fix Version: current (nightly)

I have now fixed this. The problem was that I was passing an enum to AxisTrace::traceEntry which takes a variable number of arguments using "...". On Linux, the enum defaulted to a short, but the "..." can only be passed ints or longer. This caused a stack corruption. I have now changed the offending parameter to an int.

> Client fails with SIGSEGV on Linux with tracing enabled
> -------------------------------------------------------
>
>          Key: AXISCPP-279
>          URL: http://nagoya.apache.org/jira/browse/AXISCPP-279
>      Project: Axis-C++
>         Type: Bug
>   Components: Basic Architecture
>     Versions: current (nightly)
>  Environment: Linux
>     Reporter: Andrew Perry
>     Assignee: Mark Whitlock
>     Priority: Critical
>      Fix For: current (nightly)

>
> With tracing embedded and enabled the client fails with a SIGSEGV. The debug output is:
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread -1221468032 (LWP 13331)]
> 0xb75b9041 in axiscpp::AxisTrace::traceEntry ()
>    from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
> (gdb) bt
> #0  0xb75b9041 in axiscpp::AxisTrace::traceEntry ()
>    from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
> #1  0xb756ec28 in axiscpp::AxisConfig::getAxisConfProperty ()
>    from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
> #2  0xb7598004 in initialize_module ()
>    from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
> #3  0xb7599cff in axiscpp::Call::Call ()
>    from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
> #4  0xb7582192 in axiscpp::Stub::Stub ()
>    from /home/axistest/test_P/axis-c-1.4.0-Linux-trace-bin/lib/libaxis_client.so
> #5  0x0804b724 in operations (this=0x8052758,
>     pcEndpointUri=0x8052718 "http://localhost:9080/ComplexTypeAll/services/Service",
>     eProtocol=APTHTTP1_1)
>     at /home/axistest/test_P/obj/test/generated/cpp/ComplexTypeAll/operations.cpp:17
> #6  0x0804af9a in main (argc=1, argv=0xbfffb8b4)
>     at /home/axistest/test_P/obj/test/generated/cpp/ComplexTypeAll/ComplexTypeAllClient.cpp:30
> This is happening for all client tests.
> Commenting out the ClientLogPath directive in the axiscpp.conf file allows the client to work correctly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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