<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
&nbsp;&nbsp;&nbsp; Hello dear list.<br>
<br>
&nbsp;&nbsp; A problem is happening in our production machine which we were
unable to reproduce on our development machines. We have a very large
application almost ready for deployment, in which one of the modules is
written in java mapscript 4.10.1,&nbsp; and the error on the attached log
happened for the first time when we installed the application on the
production server. Whats worse, the GIS module causing the error brings
down Tomcat and the whole application with it.<br>
&nbsp;&nbsp;&nbsp; This is a excerpt from the JVM log:<br>
<br>
# An unexpected error has been detected by HotSpot Virtual Machine:<br>
#<br>
#&nbsp; SIGSEGV (0xb) at pc=0x636ff93b, pid=19162, tid=1759710128<br>
#<br>
# Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode)<br>
# Problematic frame:<br>
# C&nbsp; [libmapscript.so+0x3893b]&nbsp;
Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1layerObj+0xf<br>
#<br>
<br>
---------------&nbsp; T H R E A D&nbsp; ---------------<br>
<br>
Current thread (0x08112ee0):&nbsp; JavaThread "Finalizer" daemon
[_thread_in_native, id=19174]<br>
<br>
siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x627e7024<br>
<br>
Registers:<br>
EAX=0x636ff92c, EBX=0x6b363670, ECX=0x084a03a0, EDX=0x6b372b58<br>
ESP=0x68e2dae4, EBP=0x68e2fafc, ESI=0x627e7000, EDI=0x08112ee0<br>
EIP=0x636ff93b, CR2=0x627e7024, EFLAGS=0x00010216<br>
<br>
Top of Stack: (sp=0x68e2dae4)<br>
0x68e2dae4:&nbsp;&nbsp; 00000000 00000000 000004b0 00000000<br>
0x68e2daf4:&nbsp;&nbsp; 00000000 00000000 00000000 00000000<br>
0x68e2db04:&nbsp;&nbsp; 00000000 00000000 00000000 00000000<br>
0x68e2db14:&nbsp;&nbsp; 00000000 00000000 00000000 00000000<br>
0x68e2db24:&nbsp;&nbsp; 00000000 00000000 00000000 00000000<br>
0x68e2db34:&nbsp;&nbsp; 00000000 00000000 00000000 00000000<br>
0x68e2db44:&nbsp;&nbsp; 00000000 00000000 00000000 00000000<br>
0x68e2db54:&nbsp;&nbsp; 00000000 00000000 00000000 00000000 <br>
<br>
Instructions: (pc=0x636ff93b)<br>
0x636ff92b:&nbsp;&nbsp; 90 55 89 e5 57 56 53 81 ec 0c 20 00 00 8b 75 10<br>
0x636ff93b:&nbsp;&nbsp; 8b 4e 24 e8 00 00 00 00 5b 81 c3 15 63 0e 00 85 <br>
<br>
Stack: [0x68db0000,0x68e31000),&nbsp; sp=0x68e2dae4,&nbsp; free space=502k<br>
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)<br>
C&nbsp; [libmapscript.so+0x3893b]&nbsp;
Java_edu_umn_gis_mapscript_mapscriptJNI_delete_1layerObj+0xf<br>
j&nbsp; edu.umn.gis.mapscript.mapscriptJNI.delete_layerObj(J)V+0<br>
j&nbsp; edu.umn.gis.mapscript.layerObj.delete()V+25<br>
j&nbsp; edu.umn.gis.mapscript.layerObj.finalize()V+1<br>
v&nbsp; ~StubRoutines::call_stub<br>
V&nbsp; [libjvm.so+0x2649ac]<br>
V&nbsp; [libjvm.so+0x427bc8]<br>
V&nbsp; [libjvm.so+0x2647df]<br>
V&nbsp; [libjvm.so+0x28f233]<br>
V&nbsp; [libjvm.so+0x2755b4]<br>
C&nbsp; [libjava.so+0xb3be]&nbsp;
Java_java_lang_ref_Finalizer_invokeFinalizeMethod+0x6e<br>
j&nbsp; java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V+0<br>
j&nbsp; java.lang.ref.Finalizer.runFinalizer()V+45<br>
j&nbsp; java.lang.ref.Finalizer.access$100(Ljava/lang/ref/Finalizer;)V+1<br>
j&nbsp; java.lang.ref.Finalizer$FinalizerThread.run()V+11<br>
v&nbsp; ~StubRoutines::call_stub<br>
V&nbsp; [libjvm.so+0x2649ac]<br>
V&nbsp; [libjvm.so+0x427bc8]<br>
V&nbsp; [libjvm.so+0x264205]<br>
V&nbsp; [libjvm.so+0x26429e]<br>
V&nbsp; [libjvm.so+0x2db925]<br>
V&nbsp; [libjvm.so+0x4c6cb3]<br>
V&nbsp; [libjvm.so+0x4287d8]<br>
C&nbsp; [libpthread.so.0+0x5371]<br>
<br>
&nbsp;&nbsp;&nbsp; It seems to happen while rendering the a map, but not always, so it
cant be consistently reproduced. We just query maps and it will happen
eventually.<br>
&nbsp;&nbsp;&nbsp; Also, "delete_1layer" is hints at the removal of a layer (duh) but
we don't have a remove or delete layers anywhere in our code, so we
suspect of GC problems. Could it be related to the problems Umberto
describes in <br>
&nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="http://lists.umn.edu/cgi-bin/wa?A2=ind0705&L=MAPSERVER-USERS&P=R28693">http://lists.umn.edu/cgi-bin/wa?A2=ind0705&amp;L=MAPSERVER-USERS&amp;P=R28693</a>
and specially<br>
&nbsp;&nbsp;&nbsp; <a href="http://mapserver.gis.umn.edu/development/rfc/ms-rfc-24/">http://mapserver.gis.umn.edu/development/rfc/ms-rfc-24/</a>&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp; and if it is, could there be anything possible to workaround it?
Full log attached.<br>
<br>
&nbsp;&nbsp;&nbsp; We're at a loss here, folks. Any help is greatly appreciated<br>
&nbsp;&nbsp;&nbsp; Thanks,<br>
<br>
&nbsp;&nbsp;&nbsp; Rod<br>
<br>
<div class="moz-signature">-- <br>
<font color="#000000" face="Verdana, Arial, Helvetica" size="1">
<br>
<font color="#000000" size="2"><b>Rodrigo Del C. Andrade</b></font><br>
<font color="#606060"><i>Programador</i></font><br>
<font color="#606060"><i>SIC - SSE - Solu&ccedil;&otilde;es Seguran&ccedil;a P&uacute;blica</i></font><br>
<br>
<font color="#000080"><b>D&Iacute;GITRO TECNOLOGIA</b></font><br>
<font color="#000000"><b>E-mail:</b></font>
<a href="mailto:rodrigo.andrade@digitro.com.br"><font color="#606060">rodrigo.andrade@digitro.com.br</font></a><br>
<font color="#000000"><b>Fone:</b></font>
<font color="#000000">+55 48 3281-7314 / +55 48 3281-7000</font><br>
<font color="#000000"><b>Fax:</b></font>
<font color="#000000">+55 48 3281-7299</font><br>
<font color="#000000"><b>Site:</b></font>
<a href="http://www.digitro.com"><font color="#606060">www.digitro.com</font></a>
</font></div>
</body>
</html>