---------------------------------------------------------------- BEFORE YOU POST, search the faq at <http://java.apache.org/faq/> WHEN YOU POST, include all relevant version numbers, log files, and configuration files. Don't make us guess your problem!!! ---------------------------------------------------------------- Hi, It's my first time mailing to this forum, so if I'm in a wrong place PLEASE point me to the right one. I'm getting segmentation faults, when using gnujsp1.0 (snapshot gnujsp10cvs-snap-20000210-2100.jar) It doesn't happen all the time and I can't fugure out when and esspecially WHY does this happen. Sometimes stopping the web server helps, sometimes it doesn't. Here's my working environment: System: SunOS 5.7 sparc SUNW,Ultra-4 Webserver: Apache 1.3.9 + ApacheJServ 1.1 JDK: Solaris VM (build Solaris_JDK_1.2.1_03, native threads, sunwjit) GNUJSP: gnujsp1.0 (snapshot gnujsp10cvs-snap-20000210-2100.jar) Here are the config files: # jsp.properties # --------------------------------------------------------------- # gnujsp10.jar is soft link to gnujsp10csv.jar # --------------------------------------------------------------- repositories=/d3/tools/gnujsp/lib/gnujsp10.jar repositories=/d3/tools/gnujsp/lib/servlet-2.0-plus.jar servlet.gnujsp.code=org.gjt.jsp.JspServlet servlet.gnujsp.initArgs=checkclass=true,pagebase=/Yoav/web,scratchdir=/var/l ocal/apache/jsp,debug=true,compiler=builtin-javac -classpath %classpath%:%scratchdir%:/d3/tools/gnujsp/lib/servlet-2.0-plus.jar:/d3/tools /gnujsp/lib/gnujsp10.jar -d %scratchdir% -deprecation %source% # jserv.properties wrapper.bin=/d3/tools/java/jdk/bin/java wrapper.path=/bin:/usr/bin:/usr/local/bin:/d3/tools/java/jdk/bin wrapper.classpath=/d3/tools/java/jdk/lib/tools.jar wrapper.classpath=/d3/tools/java/jdk/lib/dt.jar wrapper.classpath=/d3/tools/java/jdk/jre/lib/rt.jar wrapper.classpath=/d3/tools/jserv/libexec/ApacheJServ.jar wrapper.classpath=/d3/tools/java/jdk/jre/lib/ext/jsdk.jar wrapper.env=JAVA_COMPILER=NONE bindaddress=localhost port=8007 zones=root,jsp root.properties=/d3/tools/jserv/etc/zone.properties jsp.properties=/d3/tools/jserv/etc/jsp.properties ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Here's what I get in apache/logs/error_log: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [Thu Feb 24 11:05:06 2000] [error] [client 128.XXX.XXX.XXX] Premature end of script headers: (null) GNUJSP: Detected JSDK version 2.0 Segmentation Fault si_signo [11]: Segmentation Fault si_errno [0]: Error 0 si_code [1]: SEGV_MAPERR [addr: 0x10] stackpointer=FB9708B8 Exiting Thread (sys_thread_t:0xff304708) : no stack Exiting Thread (sys_thread_t:0x2cf540) : no stack "Thread-9" (TID:0x2c0aa4, sys_thread_t:0x2c0a28, state:R, thread_t: t@16, threadID:0xfb971dc8, stack_bottom:0xfb972000, stack_size:0x20000) prio=5 *current thread* [1] org.apache.jserv.JServServletManager.createSession(JServServletManager.java: 955) [2] org.apache.jserv.JServConnection.getSession(JServConnection.java:1228) [3] org.gjt.jsp.jsdk20.HttpServletRequestWrapper.getSession(HttpServletRequestWr apper.java:609) [4] org.gjt.jsp.PageContextImpl.initialize(PageContextImpl.java:103) [5] org.gjt.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:46) [6] jsp__cargo__prog__home_2ejsp._jspService(jsp__cargo__prog__home_2ejsp.java:2 8) [7] org.gjt.jsp.HttpJspPageImpl.service(HttpJspPageImpl.java:75) [8] javax.servlet.http.HttpServlet.service(HttpServlet.java:588) [9] org.gjt.jsp.JspServlet$Page.process(JspServlet.java:835) [10] org.gjt.jsp.JspServlet.xservice(JspServlet.java:476) [11] org.gjt.jsp.JspServlet.service(JspServlet.java:405) [12] javax.servlet.http.HttpServlet.service(HttpServlet.java:588) [13] org.apache.jserv.JServConnection.processRequest(JServConnection.java:314) [14] org.apache.jserv.JServConnection.run(JServConnection.java:188) [15] java.lang.Thread.run(Thread.java:485) ------------------- "Thread-6" (TID:0x28ed5c, sys_thread_t:0x28ece0, state:CW, thread_t: t@13, threadID:0xfc661dc8, stack_bottom:0xfc662000, stack_size:0x20000) 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:485) ------------------- "Thread-5" (TID:0x2a012c, sys_thread_t:0x2a00b0, state:CW, thread_t: t@12, threadID:0xfc691dc8, stack_bottom:0xfc692000, stack_size:0x20000) 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:485) ------------------- "Thread-4" (TID:0x2a056c, sys_thread_t:0x2a04f0, state:CW, thread_t: t@11, threadID:0xfc6c1dc8, stack_bottom:0xfc6c2000, stack_size:0x20000) 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:485) ------------------- "Thread-3" (TID:0x2bc194, sys_thread_t:0x2bc118, state:CW, thread_t: t@10, threadID:0xfc6f1dc8, stack_bottom:0xfc6f2000, stack_size:0x20000) 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:485) ------------------- "Thread-2" (TID:0x2ab26c, sys_thread_t:0x2ab1f0, state:CW, thread_t: t@8, threadID:0xfc7f1dc8, stack_bottom:0xfc7f2000, stack_size:0x20000) 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:485) ------------------- "Thread-1" (TID:0x25ce14, sys_thread_t:0x25cd98, state:CW, thread_t: t@7, threadID:0xfe091dc8, stack_bottom:0xfe092000, stack_size:0x20000) 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:0x118d4c, sys_thread_t:0x118cd0, state:CW, thread_t: t@6, threadID:0xfed21dc8, stack_bottom:0xfed22000, stack_size:0x20000) prio=8 [1] java.lang.Object.wait(Native Method) [2] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:113) [3] java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:128) [4] java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:175) ------------------- "Reference Handler" (TID:0x11a9b4, sys_thread_t:0x11a938, state:CW, thread_t: t@5, threadID:0xfed51dc8, stack_bottom:0xfed52000, stack_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:115) ------------------- "Signal dispatcher" (TID:0xf99c4, sys_thread_t:0xf9948, state:MW, thread_t: t@4, threadID:0xfed81dc8, stack_bottom:0xfed82000, stack_size:0x20000) prio=10 ------------------- "main" (TID:0x39e6c, sys_thread_t:0x39df0, state:R, thread_t: t@1, threadID:0x25200, stack_bottom:0xffbf0000, stack_size:0x20000) prio=5 [1] java.net.PlainSocketImpl.socketAccept(Native Method) [2] java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406) [3] java.net.ServerSocket.implAccept(ServerSocket.java:241) [4] java.net.ServerSocket.accept(ServerSocket.java:224) [5] org.apache.java.net.AuthenticatedServerSocket.accept(AuthenticatedServerSock et.java:160) [6] org.apache.jserv.JServ.main(JServ.java:174) I've already posted to GNUJSP mailing list and they said that it's Please tell me where do you think the problem is -- JDK or JServ or smthg else. I've upgraded to JDK1.2.2_05, but it didn't help. Any help will be highly appreciated. Uri Shohet. -- -------------------------------------------------------------- Please read the FAQ! <http://java.apache.org/faq/> To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Archives and Other: <http://java.apache.org/main/mail.html> Problems?: [EMAIL PROTECTED]
