axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "T. P. Saravanan" <s...@procsys.com>
Subject reproducible crash - standalone rest mode - with invalid request
Date Sun, 05 Jul 2009 15:49:17 GMT

Hi,

I am new to axis (and web-services).  I noticed a crash in axis2c.  I
have put the details of the crash, steps to reproduce and the
configuration of the machine I came across in the listing below.

I hope this is the write forum to post this - let me know if otherwise,
on where to post such bugs.

---

     [sara@host bld]$ lsb_release -a
     LSB Version: 
:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:desktop-3.1-ia32:desktop-3.1-noarch:desktop-3.2-ia32:desktop-3.2-noarch
     Distributor ID:	Fedora
     Description:	Fedora release 11 (Leonidas)
     Release:	11
     Codename:	Leonidas
     [sara@host bld]$ uname -a
     Linux host.procsys 2.6.29.5-191.fc11.i586 #1 SMP Tue Jun 16 
23:11:39 EDT 2009 i686 i686 i386 GNU/Linux
     [sara@host bld]$ gcc -v
     Using built-in specs.
     Target: i586-redhat-linux
     Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info 
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap 
--enable-shared --enable-threads=posix --enable-checking=release 
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada 
--enable-java-awt=gtk --disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre 
--enable-libgcj-multifile --enable-java-maintainer-mode 
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar 
--disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic 
--with-arch=i586 --build=i586-redhat-linux
     Thread model: posix
     gcc version 4.4.0 20090506 (Red Hat 4.4.0-4) (GCC)
     [sara@host bld]$ rpm -q --qf '{%VERSION}\n' glibc
     2.10.1
     [sara@host bld]$ svn co 
https://svn.apache.org/repos/asf/webservices/axis2/trunk/c axis2c

      ...

     [sara@host bld]$ cd axis2c
     [sara@host axis2c]$ svn log | grep head

------------------------------------------------------------------------
     r788651 | nandika | 2009-06-26 16:13:13 +0530 (Fri, 26 Jun 2009) | 
1 line

     hello_svc.c error message corrected

------------------------------------------------------------------------
     r788641 | nandika | 2009-06-26 15:13:19 +0530 (Fri, 26 Jun 2009) | 
1 line

     hello_svc.c.html and hello_svc.c error message corrected

------------------------------------------------------------------------
     r787166 | damitha | 2009-06-22 14:06:39 +0530 (Mon, 22 Jun 2009) | 
2 lines
     svn: Write error: Broken pipe

     [sara@host axis2c]$ sh build.sh

      ...

     [sara@host axis2c]$ cd deploy/bin/
     [sara@host bin]$ ulimit -c unlimited
     [sara@host bin]$ ./axis2_http_server &
     [1] 4007
     AXIS2C_HOME is not set - log is written to . dir
     Started Simple Axis2 HTTP Server ...

     [sara@host bin]$ cat ../../../crashs/t.py

     import socket

     s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
     s.connect(('127.0.0.1',9090))
     data = "POST /axis2/services/echo/echoString HTTP/1.1\r\n" \
            "Content-Type: text/xml\r\n" \
            "\r\n" \
            "X"

     if not s.send(data) == len(data) :
             raise SystemError, "bad send return"
     while True :
             ret = s.recv(1024)
             print ret
             if ret == "" :
                     break

     [sara@host bin]$ python ../../../crashs/t.py
     HTTP/1.1 500 Internal Server Error
     Date: Sun Jul  5 20:52:32 2009 GMT
     Server: Axis2C/1.6.0 (Simple Axis2 HTTP Server)
     Content-Type: text/html
     Content-Length: 210

     <html><head><title>500 Internal Server 
Error</title></head><body><h2>Internal Server Error</h2><p>The
server 
encountered an unexpected condition which prevented it from fulfilling 
the request.</p></body></html>


     [1]+  Segmentation fault      (core dumped) ./axis2_http_server
     [sara@host bin]$ ls core*
     core.4007
     [sara@host bin]$ gdb ./axis2_http_server core.4007
     GNU gdb (GDB) Fedora (6.8.50.20090302-32.fc11)

     ...

     (gdb) where
     #0  *__GI___libc_free (mem=0x1d) at malloc.c:3687
     #1  0x00118b3d in axutil_allocator_free_impl (allocator=0xb7400468, 
ptr=0x1d) at allocator.c:120
     #2  0x00703387 in axis2_http_status_line_free 
(status_line=0xb7401110, env=0xb74004a0) at http_status_line.c:149
     #3  0x007030dc in axis2_http_simple_response_free 
(simple_response=0xb74005f8, env=0xb74004a0) at http_simple_response.c:114
     #4  0x00701027 in axis2_http_out_transport_info_impl_free 
(http_out_transport_info=0xb74012e8, env=0xb74004a0)
         at http_out_transport_info.c:156
     #5  0x00700db6 in axis2_http_out_transport_info_free 
(http_out_transport_info=0xb74012e8, env=0xb74004a0) at 
http_out_transport_info.c:206
     #6  0x00700de4 in axis2_out_transport_info_impl_free 
(out_transport_info=0xb74012e8, env=0xb74004a0) at 
http_out_transport_info.c:59
     #7  0x08074ba5 in axis2_msg_ctx_free (msg_ctx=0xb7400f40, 
env=0xb74004a0) at msg_ctx.c:443
     #8  0x00706012 in axis2_http_worker_process_request 
(http_worker=0x9cdc4c8, env=0xb74004a0, svr_conn=0xb74004c0, 
simple_request=0xb74005c8)
         at http_worker.c:2008
     #9  0x00ffceb8 in axis2_svr_thread_worker_func (thd=0x9cdce20, 
data=0x9cdce08) at http_svr_thread.c:259
     #10 0x0012af26 in dummy_worker (opaque=0x9cdce20) at thread_unix.c:93
     #11 0x006b4935 in start_thread (arg=0xb7f06b70) at pthread_create.c:297
     #12 0x007f082e in clone () at 
../sysdeps/unix/sysv/linux/i386/clone.S:130
     Current language:  auto; currently minimal

----

This crash is also there in release 1.6.0

Also happening on ubuntu-jaunty based machine.

Let me know if more details are needed.

Regards,
Saravanan.

Mime
View raw message