On Tue, Jul 07, 2009 at 04:30:55PM +0530, Manjula Peiris wrote: > Can you scenario you have tried ? >
Sorry, I do not understand your question. If you asking for the crash scenario - I thought the session listing below covers that information. At the risk of repeating myself - I will put it down again - look into the listing for accurate details. The crash happens when run in linux distributions Fedora-11 and Ubuntu-jaunty. The listing below is on Fedora-11. It uses gcc-4.4.0 and glibc-2.10.1. (I suppose axis2c has no other library dependence). I checked out on the latest svn version ( which at the time of checking was r788651 ). The problem happens in 1.6.0 release too. I built it using the build.sh script. I ran the axis2c_http_server. I used the echo_rest server in the samples. I sent a POST request with invalid data - just a single character (look below in the listing for the python script I used). This crashed axis2c_http_server. I have captured the core dump and put the stack trace in the listing. Hope that helps. Regards, Saravanan. > > On Sun, 2009-07-05 at 21:19 +0530, T. P. Saravanan wrote: > > 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. > > > > --- > > > > [s...@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 > > [s...@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 > > [s...@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) > > [s...@host bld]$ rpm -q --qf '{%VERSION}\n' glibc > > 2.10.1 > > [s...@host bld]$ svn co > > https://svn.apache.org/repos/asf/webservices/axis2/trunk/c axis2c > > > > ... > > > > [s...@host bld]$ cd axis2c > > [s...@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 > > > > [s...@host axis2c]$ sh build.sh > > > > ... > > > > [s...@host axis2c]$ cd deploy/bin/ > > [s...@host bin]$ ulimit -c unlimited > > [s...@host bin]$ ./axis2_http_server & > > [1] 4007 > > AXIS2C_HOME is not set - log is written to . dir > > Started Simple Axis2 HTTP Server ... > > > > [s...@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 > > > > [s...@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 > > [s...@host bin]$ ls core* > > core.4007 > > [s...@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.