This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199380 - java.lang.VerifyError
Summary: java.lang.VerifyError
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Engine (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2011-06-13 12:08 UTC by Tomas Hurka
Modified: 2011-07-25 13:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2011-06-13 12:08:12 UTC
Profiler the code below:

package test;

/**
 *
 * @author thurka
 */
public class Test {

    Object tx;
    
    public static void main(String[] args) {
    }

    private Test(Object o) {
    }

    private Test() {
    }
    
    private void cpuTest() {
        while(true) {
            System.out.println("");
        }
    }
    
    private Test memTest() {
        return (tx == null) ? new Test() : new Test(tx);        
    }
}

The code needs to run on JDK 7 and compiled with -source 1.7. When profiled (both CPU and Memory) it fails with:

Profiler Agent Error: Redefinition failed for classes:
test.Test
Profiler Agent Error: with message: Redefinition failed with error 62
Check JVMTI documentation for this error code.
Debug: writing class file: test.Test, into file: test.Test.class
Comment 1 Tomas Hurka 2011-06-13 12:12:23 UTC
Workaround:
Run profiled application with -Xverify:none
Comment 2 Tomas Hurka 2011-06-14 14:16:10 UTC
Fixed in main

changeset:   195776:38bdf2dd87c5                                                                                                                                                
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Jun 14 16:12:46 2011 +0200
summary:     bugfix #199380, StackMapTables.updateTable() needs to consider changeTypeIsInjectNewInstr and injectionBindsToFollowingInstruction
Comment 3 Tomas Hurka 2011-06-15 07:17:31 UTC
Fixed in release701

changeset:   200955:6171cf6571f7
branch:      release701
parent:      200922:09f8a756d359
user:        Tomas Hurka <thurka@netbeans.org>
date:        Tue Jun 14 16:12:46 2011 +0200
summary:     bugfix #199380, StackMapTables.updateTable() needs to consider changeTypeIsInjectNewInstr and injectionBindsToFollowingInstruction
Comment 4 Quality Engineering 2011-06-15 14:06:08 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/38bdf2dd87c5
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #199380, StackMapTables.updateTable() needs to consider changeTypeIsInjectNewInstr and injectionBindsToFollowingInstruction
Comment 5 Petr Cyhelsky 2011-07-25 13:45:45 UTC
Verified on:
Product Version: NetBeans IDE 7.0.1 (Build 201107211357)
Java: 1.7.0; Java HotSpot(TM) 64-Bit Server VM 21.0-b17
System: Linux version 2.6.38-10-generic running on amd64; UTF-8; en_US (nb)