Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4335143

SIGSEGV 11 segmentation violation when running JSP pages using ApacheJServ

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.2.2_05, 1.3.1
    • core-libs
    • x86, sparc
    • solaris_7, windows_nt



      Name: skT45625 Date: 05/02/2000


      Solaris VM (build Solaris_JDK_1.2.2_05, native threads, sunwjit)

      I keep getting segmentation faults and segmentation violations, when running
      JSP pages using Apache/1.3.9 (Unix),ApacheJServ/1.1,GNUJSP 1.0.0.
      It isn't consistent, it can run for two days without problems and then suddenly
      start happening.
      Restarting the Web server (Apache + JServ) usually solves this for some time,
      but sometimes it doesn't.
      Apache JServ and GNUJSP are pure Java, so they do not use any native code.

      This is happening on the following systems:
      1) SunOS 5.7+patches(106980-05 & 107607-01) sparc SUNW,Ultra-4
         Solaris VM (build Solaris_JDK_1.2.1_03, native threads, sunwjit)

      2) SunOS 5.7+patches(106980-05 & 107607-01) Generic_106541-05 sun4m sparc
      SUNW,SPARCstation-5
         Solaris VM (build Solaris_JDK_1.2.2_05, native threads, sunwjit)

      3) SunOS 5.5.1+patches Generic_103640-05 sun4m sparc SUNW,SPARCstation-4
         java version "1.2"
         Classic VM (build JDK-1.2-V, green threads, sunwjit)

      (We do not use the X Window System, so we didn't install 107636-03 patch)


      JSP's source code:
      <%
              String user = request.getRemoteUser();
              if (user.equals("root")) {
      %>
                      <%@include file="roothome.html" %>
      <%
              } else {
      %>
                      <%@include file="home.html" %>
      <%
              }
      %>

      Log file fragment:
      --------------%<-----------------------
      GNUJSP: Detected JSDK version 2.0
      SIGSEGV 11 segmentation violation
          si_signo [11]: SEGV
          si_errno [0]:
          si_code [1]: SEGV_MAPERR [addr: 0xc]

              stackpointer=EB1400B8
      "Thread-27" (TID:0x2fb5a0, sys_thread_t:0x2fb4e0, state:R, thread_t: t@34,
      threadID:0xeb140dc8, stack_bottom:0xeb141000, stack_size:0
      x20000) prio=5 *current thread*

      [1] java.util.zip.ZipFile.read(Native Method)
      [2] java.util.zip.ZipFile.access$5(ZipFile.java:330)
      [3] java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:301)
      [4] java.io.BufferedInputStream.read1(BufferedInputStream.java:228)
      [5] java.io.BufferedInputStream.read(BufferedInputStream.java:286)
      [6] java.io.FilterInputStream.read(FilterInputStream.java:97)
      [7] java.io.InputStreamReader.fill(InputStreamReader.java:163)
      [8] java.io.InputStreamReader.read(InputStreamReader.java:239)
      [9] java.io.BufferedReader.fill(BufferedReader.java:138)
      [10] java.io.BufferedReader.readLine(BufferedReader.java:276)
      [11] java.io.BufferedReader.readLine(BufferedReader.java:336)
      [12] java.util.Properties.load(Properties.java:179)
      [13] java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:102)
      [14] java.util.ResourceBundle.findBundle(ResourceBundle.java:608)
      [15] java.util.ResourceBundle.getBundle(ResourceBundle.java:425)
      [16] java.util.ResourceBundle.getBundle(ResourceBundle.java:353)
      [17] org.gjt.jsp.JspConfig.getLocalizedMsg(JspConfig.java:43)
      [18] org.gjt.jsp.JspServlet.service(JspServlet.java:425)
      [19] javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
      [20] org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
      [21] org.apache.jserv.JServConnection.run(JServConnection.java:188)
      [22] java.lang.Thread.run(Thread.java:479)
      -------------------

      Exiting Thread (sys_thread_t:0xef76f2d8) : no stack
      "Thread-6" (TID:0x27b570, sys_thread_t:0x27b4b0, state:CW, thread_t: t@12,
      threadID:0xeb1d0dc8, stack_bottom:0xeb1d1000, stack_size:0
      x20000) prio=5

      [1] java.lang.Thread.sleep(Native Method)
      [2] org.apache.jserv.JServServletManager.run(JServServletManager.java:998)
      [3] java.lang.Thread.run(Thread.java:479)
      -------------------
      "Thread-5" (TID:0x2c3570, sys_thread_t:0x2c34b0, state:CW, thread_t: t@11,
      threadID:0xeb200dc8, stack_bottom:0xeb201000, stack_size:0
      x20000) prio=5

      [1] java.lang.Thread.sleep(Native Method)
      [2] org.apache.jserv.JServServletManager.run(JServServletManager.java:998)
      [3] java.lang.Thread.run(Thread.java:479)
      -------------------
      "Thread-4" (TID:0x2af578, sys_thread_t:0x2af4b8, state:CW, thread_t: t@10,
      threadID:0xeb230dc8, stack_bottom:0xeb231000, stack_size:0
      x20000) prio=5

      [1] java.lang.Thread.sleep(Native Method)
      [2] org.apache.jserv.JServServletManager.run(JServServletManager.java:998)
      [3] java.lang.Thread.run(Thread.java:479)
      -------------------
      "Thread-3" (TID:0x2dc5b0, sys_thread_t:0x2dc4f0, state:CW, thread_t: t@9,
      threadID:0xeb260dc8, stack_bottom:0xeb261000, stack_size:0x
      20000) prio=5

      [1] java.lang.Thread.sleep(Native Method)
      [2] org.apache.jserv.JServServletManager.run(JServServletManager.java:998)
      [3] java.lang.Thread.run(Thread.java:479)
      -------------------
      "Thread-2" (TID:0x2c3e10, sys_thread_t:0x2c3d50, state:CW, thread_t: t@8,
      threadID:0xeb290dc8, stack_bottom:0xeb291000, stack_size:0x
      20000) prio=5

      [1] java.lang.Thread.sleep(Native Method)
      [2] org.apache.jserv.JServServletManager.run(JServServletManager.java:998)
      [3] java.lang.Thread.run(Thread.java:479)
      -------------------
      "Thread-1" (TID:0x2aae68, sys_thread_t:0x2aada8, state:CW, thread_t: t@7,
      threadID:0xeb310dc8, stack_bottom:0xeb311000, stack_size:0x
      20000) prio=1

      [1] java.lang.Object.wait(Native Method)
      [2] java.lang.Object.wait(Object.java:424)
      [3] org.apache.java.util.SimpleQueue.waitObject(SimpleQueue.java:117)
      [4] org.apache.java.io.LogWriter$Agent.run(LogWriter.java:431)
      -------------------
      "Finalizer" (TID:0x13e600, sys_thread_t:0x13e540, state:CW, thread_t: t@6,
      threadID:0xeb510dc8, stack_bottom:0xeb511000, stack_size:0
      x20000) prio=8

      [1] java.lang.Object.wait(Native Method)
      [2] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:153)
      [3] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:168)
      [4]
      java.lang.ref.Finalizer$FinalizerWorker$FinalizerThread.run(Finalizer.java:124)
      -------------------
      "Reference Handler" (TID:0x13aa98, sys_thread_t:0x13a9d8, state:CW, thread_t:
      t@5, threadID:0xeb540dc8, stack_bottom:0xeb541000, stac
      k_size:0x20000) prio=10

      [1] java.lang.Object.wait(Native Method)
      [2] java.lang.Object.wait(Object.java:424)
      [3] java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133)
      -------------------
      "Signal dispatcher" (TID:0x1161b0, sys_thread_t:0x1160f0, state:MW, thread_t:
      t@4, threadID:0xeb570dc8, stack_bottom:0xeb571000, stac
      k_size:0x20000) prio=10

      -------------------
      "main" (TID:0x38700, sys_thread_t:0x38640, state:R, thread_t: t@1,
      threadID:0x25118, stack_bottom:0xf0000000, stack_size:0x20000) pri
      o=5

      [1] java.net.PlainSocketImpl.socketAccept(Native Method)
      [2] java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406)
      [3] java.net.ServerSocket.implAccept(ServerSocket.java:240)
      [4] java.net.ServerSocket.accept(ServerSocket.java:224)
      [5]
      org.apache.java.net.AuthenticatedServerSocket.accept(AuthenticatedServerSocket.
      java:160)
      [6] org.apache.jserv.JServ.main(JServ.java:174)
      -------------------

      --------------%<-----------------------
      (Review ID: 101980)
      ======================================================================

            kkladkosunw Konstantin Kladko (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: