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 267888 - JNI tests: IDE hangs if user selected "Make Current" in Sessions tab
Summary: JNI tests: IDE hangs if user selected "Make Current" in Sessions tab
Status: RESOLVED DUPLICATE of bug 268802
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.2
Hardware: PC Other
: P2 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-05 18:34 UTC by soldatov
Modified: 2016-11-30 13:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack Dump (37.54 KB, text/plain)
2016-09-05 18:37 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2016-09-05 18:34:06 UTC
Automatic test hangs in javamixed suite. 

Prepare JNI projects: 
- Launch NetBeans Dev 201609050002 on Ubuntu 16.04
- Create Java project 
- Add simple JNI code. For example: 
package javaapplication2; 

public class JavaApplication2 { 

public static void main(String[] args) { 
System.loadLibrary("CppJNILibrary_2"); 
foo(); 
} 
public static native void foo(); 
} 

- Build Java project 
- Call context menu on Java file in Project tab 
- Select Tools|Mixed Development|Generate JNI Library Project 
- Press Finish button in New Project wizard 
- Add "puts("Hi!");" into JavaApplication2.c 
- Build native library 
- Lainch Java project 
==> I see "Hi" message in Output tab

Scenario: 
- Set line breakpoint in "foo();" line in JavaApplication2.java 
- Push "Debug Project" button in tool bar 
- Push "Step Into" button in tool bar 
==> after small delay Dbx stopped on "puts("Hi!");" line 
- Open Sessions tab 
- Call context menu on "javaapplication2.JavaApplication2" row 
- Select "Make Current" 
==> IDE hangs
Comment 1 soldatov 2016-09-05 18:37:44 UTC
Created attachment 161914 [details]
Stack Dump
Comment 2 soldatov 2016-09-05 18:41:51 UTC
Originally I created CR24594030, but I can reproduce this problem on Ubuntu+GDB too.
Comment 3 Maria Tishkova 2016-11-30 13:12:51 UTC

*** This bug has been marked as a duplicate of bug 268802 ***