Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-969

Clover HTML reporter can hang on JRockit with numThreads > 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • n/a
    • None
    • None
    • None
    • Severity 3 - Minor

    Description

      Customer had a case where the reporter threads were blocked on accessing a hash map:

      "Clover-Thread-59" id=112 idx=0x1c0 tid=28824 prio=5 alive
      at java/util/HashMap.getEntry(HashMap.java:427)
      at java/util/HashMap.containsKey(HashMap.java:413)
      at com/cenqua/clover/context/ContextStore.getContextsAsString(ContextStore.java:257)
      at com/cenqua/clover/reporters/html/source/SourceRenderHelper.gatherSrcRenderInfo(SourceRenderHelper.java:278)
      at com/cenqua/clover/reporters/html/source/SourceRenderHelper.insertLineInfosForFile(SourceRenderHelper.java:83)
      at com/cenqua/clover/reporters/html/RenderFileAction.insertLineInfos(RenderFileAction.java:284)
      at com/cenqua/clover/reporters/html/RenderFileAction.render(RenderFileAction.java:131)
      at com/cenqua/clover/reporters/html/RenderFileAction.call(RenderFileAction.java:115)
      at com/cenqua/clover/util/CloverExecutors$LoggingCallable.call(CloverExecutors.java:86)
      at clover/retrotranslator/edu/emory/mathcs/backport/java/util/concurrent/FutureTask.run(FutureTask.java:178)
      at clover/retrotranslator/edu/emory/mathcs/backport/java/util/concurrent/ThreadPoolExecutor.runWorker(ThreadPoolExec
      utor.java:1061)
      at clover/retrotranslator/edu/emory/mathcs/backport/java/util/concurrent/ThreadPoolExecutor$Worker.run(ThreadPoolExe
      cutor.java:575)
      at java/lang/Thread.run(Thread.java:619)
      at jrockit/vm/RNI.c2java(JJJJJ)V(Native Method)
      - end of trace
      

      Setting numThreads="0" on clover-html-report resolves this.

      Attachments

        Activity

          People

            mparfianowicz Marek Parfianowicz
            andrew.myers Andrew Myers [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: