Tomcat crashes JVM due to EXCEPTION_ACCESS_VIOLATION

痞子三分冷 提交于 2019-12-13 05:58:48

问题


After some time away from work, it seems that one of my colleagues decided to experiment with our staging server. With the objeticve of developing using a new framework for DB access, he installed a bunch of stuff without being careful if there was any unwanted interaction with the in house developed applications.

Instead of having any kind of framework to handle the SQL calls from the JSP apps, the old DBA/Programmer wrote a crude connection class to access the MS-SQL'08 server. The class in question is gone, we don't have the source code for it.

So when I come back to work and try to stage a new developing application I managed to crash the JVM, here's the dump file.

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006f19137c, pid=692, tid=6096
#
# JRE version: Java(TM) SE Runtime Environment (7.0_75-b13) (build 1.7.0_75-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.75-b04 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0x12137c]
#
# Core dump written. Default location: C:\Program Files\Apache Software Foundation\Tomcat 7.0\hs_err_pid692.mdmp
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

The whole dump file is available at: pastebin.com/TtgdkLer

What did I try to do:

  • Remove everything that was added later.
  • Check all server config files for anything out of the ordinary
  • Copy the last backup image of the Tomcat folder + application data
  • Do a fresh install of Tomcat 7 and reconfigure everything from scratch

Nothing works.

What I did find out is that on the major application web.xml there's a filter that if I remove, won't crash the server:

  <filter-mapping>
    <filter-name>ConnectionFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

The problem is that this particular filter routes the connections through the authentication server. Meaning that turning it off would allow any user to access the information on the Intranet.

I'm honestly out of options. The last option I have is to rewind the state of the whole server back to a whole while ago. Any suggestions?


回答1:


The crash report has the the following method at the top of the stack: com.microsoft.sqlserver.jdbc.AuthenticationJNI.SNISecGenClientContext([B[I[BI[B[I[ZLjava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/util/logging/Logger;)I+0


Edit: Original answer obsolete




回答2:


Well, I have encountered the same issue again when migrating the server again, but this time as I changed the DLL the issue was not resolved or changed at all.

I'm just adding that the actual JAR file was from a different package and that was enough to cause the same error, when I downloaded and installed the correct JAR/DLL combination, everything was fine.



来源:https://stackoverflow.com/questions/31385689/tomcat-crashes-jvm-due-to-exception-access-violation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!