Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4660

VSS Plugin/ COM4j crashes Hudson.

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: vss-plugin
    • Labels:
      None
    • Environment:
      Platform: PC, OS: Windows XP
    • Similar Issues:

      Description

      Hudson will crash after a while, most likely after a scm poll. It seems there is
      a massive memory leak as the memory usage climbs up and up... usually after
      running it for about 30 mins it'll be at about 500mb usage. For something that
      doesn't seem to be doing much it seems excessive... After a while it'll go up to
      at least 800mb then crash with an error log. This is what's in the hudson error log:

      #

      1. A fatal error has been detected by the Java Runtime Environment:
        #
      2. EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x007da8dd, pid=5788, tid=2220
        #
      3. JRE version: 6.0_14-b08
      4. Java VM: Java HotSpot(TM) Server VM (14.0-b16 mixed mode windows-x86 )
      5. Problematic frame:
      6. v ~BufferBlob::jni_fast_GetLongField
        #
      7. If you would like to submit a bug report, please visit:
      8. http://java.sun.com/webapps/bugreport/crash.jsp
      9. The crash happened outside the Java Virtual Machine in native code.
      10. See problematic frame for where to report the bug.
        #

      --------------- T H R E A D ---------------

      Current thread (0x47ddc400): JavaThread "Finalizer" daemon [_thread_in_native,
      id=2220, stack(0x47f50000,0x47fa0000)]

      siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

      Registers:
      EAX=0x00000000, EBX=0x04eb5588, ECX=0x00000366, EDX=0x00000000
      ESP=0x47f9f87c, EBP=0x47f9f8b4, ESI=0x00000022, EDI=0x00000000
      EIP=0x007da8dd, EFLAGS=0x00010246

      Top of Stack: (sp=0x47f9f87c)
      0x47f9f87c: 47ddc510 6ddc740f 47ddc510 00000000
      0x47f9f88c: 00000022 00000000 47ddc510 04eb5588
      0x47f9f89c: 47f9f890 47f9f4a0 47f9f9f8 6de6d4e0
      0x47f9f8ac: 6ded0440 00000000 47f9f8d0 6dcf6cee
      0x47f9f8bc: 47ddc510 00000000 00000022 47ddc400
      0x47f9f8cc: 47ddc510 47f9f908 4a8553b5 47ddc510
      0x47f9f8dc: 00000000 47f9f8fc 009e6294 47ddc510
      0x47f9f8ec: 47f9f8fc 00000000 00000000 47f9f904

      Instructions: (pc=0x007da8dd)
      0x007da8cd: 00 00 00 8b c1 83 e0 01 8b 54 04 0c 8b 74 24 10
      0x007da8dd: 8b 12 c1 ee 02 8b 04 32 8b 54 32 04 be 00 3f f1

      Stack: [0x47f50000,0x47fa0000], sp=0x47f9f87c, free space=318k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      v ~BufferBlob::jni_fast_GetLongField
      V [jvm.dll+0x196cee]
      C [com4j.dll+0x153b5]
      J com4j.Variant.finalize()V
      V [jvm.dll+0x184f9c]
      V [jvm.dll+0x268131]
      V [jvm.dll+0x18501d]
      V [jvm.dll+0x18de3f]
      V [jvm.dll+0x190b34]
      C [java.dll+0x2115]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J com4j.Variant.clear0(Ljava/nio/ByteBuffer;)V
      J com4j.Variant.finalize()V
      v ~StubRoutines::call_stub
      J java.lang.ref.Finalizer.invokeFinalizeMethod(Ljava/lang/Object;)V
      J java.lang.ref.Finalizer$FinalizerThread.run()V
      v ~StubRoutines::call_stub

      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
      0x5453ec00 JavaThread "pool-4-thread-23" [_thread_blocked, id=808,
      stack(0x58a60000,0x58ab0000)]
      0x72724400 JavaThread "ComThread for SCM polling for
      hudson.model.FreeStyleProject@130d0c0[BB2-Create_Jar_File]" daemon
      [_thread_in_native, id=4400, stack(0x5a960000,0x5a9b0000)]
      0x5009e800 JavaThread "ComThread for SCM polling for
      hudson.model.FreeStyleProject@17a8197[BB2-Get_Web_Dir]" daemon
      [_thread_in_native, id=4048, stack(0x5a910000,0x5a960000)]

      Hudson is setup to run as a service (self-install) although the problem
      manifests itself when run under tomcat 6.20 as well.

      Hudson java params are:
      <arguments>-Xrs -Xmx1024m
      -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar
      "%BASE%\hudson.war" --httpPort=80</arguments>

        Attachments

          Activity

          Hide
          julicher julicher added a comment -

          Here's more from the log... looks like its threads blocking... when multiple
          projects are calling the same object...

          Java Threads: ( => current thread )
          0x51269400 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@11e7cc6[BB2-Get_Web_Dir]" daemon
          [_thread_in_native, id=3428, stack(0x661f0000,0x66240000)]
          0x51480400 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@1aa5882[BB2-Create_Jar_File]" daemon
          [_thread_in_native, id=1060, stack(0x5c400000,0x5c450000)]
          0x4f8cc400 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@165f5a4[2.9.2-Create_Jar_File]" daemon
          [_thread_in_native, id=1120, stack(0x5b7a0000,0x5b7f0000)]
          0x6431bc00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@11e7cc6[BB2-Get_Web_Dir]" daemon
          [_thread_in_native, id=3952, stack(0x5ae50000,0x5aea0000)]
          0x63e69c00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@1aa5882[BB2-Create_Jar_File]" daemon
          [_thread_in_native, id=3720, stack(0x5b7f0000,0x5b840000)]
          0x51dbcc00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@1aa5882[BB2-Create_Jar_File]" daemon
          [_thread_in_native, id=3348, stack(0x5abf0000,0x5ac40000)]
          0x4c871400 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@11e7cc6[BB2-Get_Web_Dir]" daemon
          [_thread_in_native, id=3916, stack(0x5b130000,0x5b180000)]
          0x59d50c00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@165f5a4[2.9.2-Create_Jar_File]" daemon
          [_thread_in_native, id=3904, stack(0x5b0e0000,0x5b130000)]
          0x49bf0c00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@165f5a4[2.9.2-Create_Jar_File]" daemon
          [_thread_in_native, id=3876, stack(0x5b040000,0x5b090000)]
          0x49b7cc00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@11e7cc6[BB2-Get_Web_Dir]" daemon
          [_thread_in_native, id=3976, stack(0x5aff0000,0x5b040000)]
          0x51718c00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@1aa5882[BB2-Create_Jar_File]" daemon
          [_thread_in_native, id=1276, stack(0x5af50000,0x5afa0000)]
          0x52673400 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@165f5a4[2.9.2-Create_Jar_File]" daemon
          [_thread_in_native, id=1284, stack(0x5aba0000,0x5abf0000)]
          0x4868fc00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@1aa5882[BB2-Create_Jar_File]" daemon
          [_thread_in_native, id=3108, stack(0x5afa0000,0x5aff0000)]
          0x497ee800 JavaThread "RequestHandlerThread8" daemon [_thread_blocked,
          id=3212, stack(0x5ab50000,0x5aba0000)]
          0x49193400 JavaThread "RequestHandlerThread7" daemon [_thread_blocked,
          id=1264, stack(0x5adb0000,0x5ae00000)]
          0x5045dc00 JavaThread "RequestHandlerThread6" daemon [_thread_blocked,
          id=4016, stack(0x5ace0000,0x5ad30000)]
          0x53709c00 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@11e7cc6[BB2-Get_Web_Dir]" daemon
          [_thread_in_native, id=3472, stack(0x5ab00000,0x5ab50000)]
          0x4982f800 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@165f5a4[2.9.2-Create_Jar_File]" daemon
          [_thread_in_native, id=3908, stack(0x5ac90000,0x5ace0000)]
          0x49a26800 JavaThread "ComThread for SCM polling for
          hudson.model.FreeStyleProject@1aa5882[BB2-Create_Jar_File]" daemon
          [_thread_in_native, id=2968, stack(0x5ac40000,0x5ac90000)]
          0x53120400 JavaThread "ComThread for Executor #2 for master : executing
          BB2-Create_DB #167" daemon [_thread_in_native, id=556, stack(0x5aab0000,0x5ab00000)]
          0x4c730800 JavaThread "ComThread for Executor #3 for master : executing
          BB2-Get_Web_Dir #42" daemon [_thread_in_native, id=3552,
          stack(0x5aa60000,0x5aab0000)]
          0x490a4400 JavaThread "ComThread for Executor #0 for master : executing
          BB2-Create_Jar_File #121" daemon [_thread_in_native, id=2272,
          stack(0x4a9f0000,0x4aa40000)]
          0x48ccf800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3440,
          stack(0x4a980000,0x4a9d0000)]
          0x494e8400 JavaThread "Thread-4" daemon [_thread_in_native, id=3588,
          stack(0x4a8e0000,0x4a930000)]
          0x4915fc00 JavaThread "RequestHandlerThread5" daemon [_thread_blocked,
          id=316, stack(0x4a890000,0x4a8e0000)]
          0x4916fc00 JavaThread "RequestHandlerThread0" daemon [_thread_blocked,
          id=2552, stack(0x4a840000,0x4a890000)]
          0x48b05400 JavaThread "RequestHandlerThread1" daemon [_thread_blocked,
          id=3424, stack(0x4a7f0000,0x4a840000)]
          0x49bf5c00 JavaThread "RequestHandlerThread2" daemon [_thread_blocked,
          id=3392, stack(0x4a7a0000,0x4a7f0000)]
          0x49c2dc00 JavaThread "RequestHandlerThread3" daemon [_thread_blocked,
          id=3980, stack(0x4a750000,0x4a7a0000)]
          0x4897ec00 JavaThread "RequestHandlerThread4" daemon [_thread_blocked,
          id=696, stack(0x4a0c0000,0x4a110000)]
          0x4994a800 JavaThread "Executor #3 for master" [_thread_blocked, id=3304,
          stack(0x4a700000,0x4a750000)]
          0x49a5d400 JavaThread "Executor #2 for master" [_thread_blocked, id=2192,
          stack(0x4a6b0000,0x4a700000)]
          0x49a5ec00 JavaThread "Executor #1 for master" [_thread_blocked, id=3356,
          stack(0x4a660000,0x4a6b0000)]
          0x49949400 JavaThread "Executor #0 for master" [_thread_blocked, id=2548,
          stack(0x4a610000,0x4a660000)]

          Show
          julicher julicher added a comment - Here's more from the log... looks like its threads blocking... when multiple projects are calling the same object... Java Threads: ( => current thread ) 0x51269400 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@11e7cc6 [BB2-Get_Web_Dir] " daemon [_thread_in_native, id=3428, stack(0x661f0000,0x66240000)] 0x51480400 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@1aa5882 [BB2-Create_Jar_File] " daemon [_thread_in_native, id=1060, stack(0x5c400000,0x5c450000)] 0x4f8cc400 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@165f5a4 [2.9.2-Create_Jar_File] " daemon [_thread_in_native, id=1120, stack(0x5b7a0000,0x5b7f0000)] 0x6431bc00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@11e7cc6 [BB2-Get_Web_Dir] " daemon [_thread_in_native, id=3952, stack(0x5ae50000,0x5aea0000)] 0x63e69c00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@1aa5882 [BB2-Create_Jar_File] " daemon [_thread_in_native, id=3720, stack(0x5b7f0000,0x5b840000)] 0x51dbcc00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@1aa5882 [BB2-Create_Jar_File] " daemon [_thread_in_native, id=3348, stack(0x5abf0000,0x5ac40000)] 0x4c871400 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@11e7cc6 [BB2-Get_Web_Dir] " daemon [_thread_in_native, id=3916, stack(0x5b130000,0x5b180000)] 0x59d50c00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@165f5a4 [2.9.2-Create_Jar_File] " daemon [_thread_in_native, id=3904, stack(0x5b0e0000,0x5b130000)] 0x49bf0c00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@165f5a4 [2.9.2-Create_Jar_File] " daemon [_thread_in_native, id=3876, stack(0x5b040000,0x5b090000)] 0x49b7cc00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@11e7cc6 [BB2-Get_Web_Dir] " daemon [_thread_in_native, id=3976, stack(0x5aff0000,0x5b040000)] 0x51718c00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@1aa5882 [BB2-Create_Jar_File] " daemon [_thread_in_native, id=1276, stack(0x5af50000,0x5afa0000)] 0x52673400 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@165f5a4 [2.9.2-Create_Jar_File] " daemon [_thread_in_native, id=1284, stack(0x5aba0000,0x5abf0000)] 0x4868fc00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@1aa5882 [BB2-Create_Jar_File] " daemon [_thread_in_native, id=3108, stack(0x5afa0000,0x5aff0000)] 0x497ee800 JavaThread "RequestHandlerThread 8 " daemon [_thread_blocked, id=3212, stack(0x5ab50000,0x5aba0000)] 0x49193400 JavaThread "RequestHandlerThread 7 " daemon [_thread_blocked, id=1264, stack(0x5adb0000,0x5ae00000)] 0x5045dc00 JavaThread "RequestHandlerThread 6 " daemon [_thread_blocked, id=4016, stack(0x5ace0000,0x5ad30000)] 0x53709c00 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@11e7cc6 [BB2-Get_Web_Dir] " daemon [_thread_in_native, id=3472, stack(0x5ab00000,0x5ab50000)] 0x4982f800 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@165f5a4 [2.9.2-Create_Jar_File] " daemon [_thread_in_native, id=3908, stack(0x5ac90000,0x5ace0000)] 0x49a26800 JavaThread "ComThread for SCM polling for hudson.model.FreeStyleProject@1aa5882 [BB2-Create_Jar_File] " daemon [_thread_in_native, id=2968, stack(0x5ac40000,0x5ac90000)] 0x53120400 JavaThread "ComThread for Executor #2 for master : executing BB2-Create_DB #167" daemon [_thread_in_native, id=556, stack(0x5aab0000,0x5ab00000)] 0x4c730800 JavaThread "ComThread for Executor #3 for master : executing BB2-Get_Web_Dir #42" daemon [_thread_in_native, id=3552, stack(0x5aa60000,0x5aab0000)] 0x490a4400 JavaThread "ComThread for Executor #0 for master : executing BB2-Create_Jar_File #121" daemon [_thread_in_native, id=2272, stack(0x4a9f0000,0x4aa40000)] 0x48ccf800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3440, stack(0x4a980000,0x4a9d0000)] 0x494e8400 JavaThread "Thread-4" daemon [_thread_in_native, id=3588, stack(0x4a8e0000,0x4a930000)] 0x4915fc00 JavaThread "RequestHandlerThread 5 " daemon [_thread_blocked, id=316, stack(0x4a890000,0x4a8e0000)] 0x4916fc00 JavaThread "RequestHandlerThread 0 " daemon [_thread_blocked, id=2552, stack(0x4a840000,0x4a890000)] 0x48b05400 JavaThread "RequestHandlerThread 1 " daemon [_thread_blocked, id=3424, stack(0x4a7f0000,0x4a840000)] 0x49bf5c00 JavaThread "RequestHandlerThread 2 " daemon [_thread_blocked, id=3392, stack(0x4a7a0000,0x4a7f0000)] 0x49c2dc00 JavaThread "RequestHandlerThread 3 " daemon [_thread_blocked, id=3980, stack(0x4a750000,0x4a7a0000)] 0x4897ec00 JavaThread "RequestHandlerThread 4 " daemon [_thread_blocked, id=696, stack(0x4a0c0000,0x4a110000)] 0x4994a800 JavaThread "Executor #3 for master" [_thread_blocked, id=3304, stack(0x4a700000,0x4a750000)] 0x49a5d400 JavaThread "Executor #2 for master" [_thread_blocked, id=2192, stack(0x4a6b0000,0x4a700000)] 0x49a5ec00 JavaThread "Executor #1 for master" [_thread_blocked, id=3356, stack(0x4a660000,0x4a6b0000)] 0x49949400 JavaThread "Executor #0 for master" [_thread_blocked, id=2548, stack(0x4a610000,0x4a660000)]

            People

            • Assignee:
              Unassigned
              Reporter:
              julicher julicher
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: