[jira] [Comment Edited] (NETBEANS-1428) Fatal error when profiling
[ https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17239885#comment-17239885 ] Lisa Ruby edited comment on NETBEANS-1428 at 11/28/20, 5:01 AM: I am having this problem with AdoptOpenJDK 11.0.9 and Netbeans 12.0 LTS. Only happens when I try to profile Methods. It happens with even the simplest Java program/Netbeans Project. I reported it to AdoptOpenJDK, and they pointed me to this JIRA report. This is what I see: {{Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 18) Profiler Agent: Established connection with the tool WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.lib.profiler.server.ClassLoaderManager to method java.lang.ClassLoader.findLoadedClass(java.lang.String) WARNING: Please consider reporting this to the maintainers of org.netbeans.lib.profiler.server.ClassLoaderManager WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Profiler Agent: Local accelerated session Starting main In TestClass Constructor In RunTestClass Type something: 48484848484848484848 # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff893055fab, pid=11300, tid=18484 # # JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.9+11) (build 11.0.9+11) # Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.9+11, mixed mode, tiered, compressed oops, g1 gc, windows-amd64) # Problematic frame: # V [jvm.dll+0x5a5fab] # # No core dump will be written. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # D:\mysoftware\NB12.0_TestProjects\TestProfilerNoFX\hs_err_pid11300.log # # If you would like to submit a bug report, please visit: # https://github.com/AdoptOpenJDK/openjdk-support/issues # Profiler Agent: Initializing... Profiler Agent: Options: >C:\Program Files\NetBeans-12.0\netbeans\profiler\lib,5140,10< Profiler Agent: Initialized successfully Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. Profiler Agent: 250 classes cached. D:\mysoftware\NB12.0_TestProjects\TestProfilerNoFX\nbproject\build-impl.xml:1460: The following error occurred while executing this line: D:\mysoftware\NB12.0_TestProjects\TestProfilerNoFX\nbproject\build-impl.xml:1330: The following error occurred while executing this line: D:\mysoftware\NB12.0_TestProjects\TestProfilerNoFX\nbproject\build-impl.xml:936: Java returned: 1 BUILD FAILED (total time: 2 seconds)}} was (Author: lbruby): I am having this problem with this with AdoptOpenJDK 11.0.9 and Netbeans 12.0 LTS. Only happens when I try to profile Methods. It happens with even the simplest Java program/Netbeans Project. I reported it to AdoptOpenJDK, and they pointed me to this JIRA report. This is what I see: {{Profiler Agent: Waiting for connection on port 5140, timeout 10 seconds (Protocol version: 18) Profiler Agent: Established connection with the tool WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.netbeans.lib.profiler.server.ClassLoaderManager to method java.lang.ClassLoader.findLoadedClass(java.lang.String) WARNING: Please consider reporting this to the maintainers of org.netbeans.lib.profiler.server.ClassLoaderManager WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release Profiler Agent: Local accelerated session Starting main In TestClass Constructor In RunTestClass Type something: 48484848484848484848 # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff893055fab, pid=11300, tid=18484 # # JRE version: OpenJDK Runtime Environment AdoptOpenJDK (11.0.9+11) (build 11.0.9+11) # Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK (11.0.9+11, mixed mode, tiered, compressed oops, g1 gc, windows-amd64) # Problematic frame: # V [jvm.dll+0x5a5fab] # # No core dump will be written. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # D:\mysoftware\NB12.0_TestProjects\TestProfilerNoFX\hs_err_pid11300.log # # If you would like to submit a bug report, please visit: # https://github.com/AdoptOpenJDK/openjdk-support/issues # Profiler Agent: Initializing... Profiler Agent: Options: >C:\Program Files\NetBeans-12.0\netbeans\profiler\lib,5140,10< Profiler Agent: Initialized successfully Profiler Agent: 250 classes cached. Profiler Agent:
[jira] [Comment Edited] (NETBEANS-1428) Fatal error when profiling
[ https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17027306#comment-17027306 ] Peter Hull edited comment on NETBEANS-1428 at 1/31/20 9:21 AM: --- It's been quite a while since this was first noted so I have gone back over the old information. # The crash is caused by some incorrect casts in the C code on Windows (32bit vs 64bit issues were not considered) and this is fixed by the changes mentioned in the comment above (24/Nov/18 13:22) # However, even after bug-fixing, the way it works is based on an assumption about the JVM which is not correct and therefore the solution is fragile and could break. See discussion on [OpenJDK discuss|http://mail.openjdk.java.net/pipermail/discuss/2018-November/004916.html] # I had some working code which I believed would fix it 'properly', but I got stuck on understanding how the Netbeans infrastructure builds and deploys the native code across all supported platforms. So might be worth re-opening a discussion on NB dev list to decide a plan of action on how to build and test this? was (Author: peterhull90): It's been quite a while since this was first noted so I have gone back over the old information. # The crash is caused by some incorrect casts in the C code on Windows (32bit vs 64bit issues were not considered) and this is fixed by the changes mentioned in the comment above # However, even after bug-fixing, the way it works is based on an assumption about the JVM which is not correct and therefore the solution is fragile and could break. See discussion on [OpenJDK discuss|http://mail.openjdk.java.net/pipermail/discuss/2018-November/004916.html] # I had some working code which I believed would fix it 'properly', but I got stuck on understanding how the Netbeans infrastructure builds and deploys the native code across all supported platforms. So might be worth re-opening a discussion on NB dev list to decide a plan of action on how to build and test this? > Fatal error when profiling > -- > > Key: NETBEANS-1428 > URL: https://issues.apache.org/jira/browse/NETBEANS-1428 > Project: NetBeans > Issue Type: Bug > Components: profiler - Base >Affects Versions: 9.0, 10.0, 11.0 > Environment: Windows 10, JDK11 (OpenJDK 11.0+28) >Reporter: Peter Hull >Priority: Major > Labels: netcat > Attachments: hs_err_pid38528.log > > > Attempting to profile a Java freeform project (Netcat 10, Profiling FreeForm, > Step 2) > I get the following error > {{#}} > {{# A fatal error has been detected by the Java Runtime Environment:}} > {{#}} > {{# EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff8e831c775, > pid=38528, tid=38596}} > {{#}} > {{# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)}} > {{# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed > oops, g1 gc, windows-amd64)}} > {{# Problematic frame:}} > {{# V [jvm.dll+0x5ec775]}} > {{#}} > {{# No core dump will be written. Minidumps are not enabled by default on > client versions of Windows}} > {{#}} > {{# An error report file with more information is saved as:}} > {{# D:\Libraries\Downloads\TS_Profiler_freeform\freeform\hs_err_pid38528.log}} > {{#}} > {{# If you would like to submit a bug report, please visit:}} > {{# http://bugreport.java.com/bugreport/crash.jsp}} > {{#}} > Seems reproducible, I have attached the crash log. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-1428) Fatal error when profiling
[ https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16857417#comment-16857417 ] Yaytay edited comment on NETBEANS-1428 at 6/6/19 8:24 AM: -- Also tested with DLL from [https://github.com/pedro-w/incubator-netbeans/releases/tag/v0.1-alpha] and it works for: * Oracle JDK 12 * Azul Zulu JDK 12 Please get this fixed in the next netbeans release. And thank you [~peterhull90] was (Author: yaytay): Also tested with DLL from [https://github.com/pedro-w/incubator-netbeans/releases/tag/v0.1-alpha] and it works for: * Oracle JDK 12 * Azul Zulu JDK 12 Please get this fixed in the next netbeans release. > Fatal error when profiling > -- > > Key: NETBEANS-1428 > URL: https://issues.apache.org/jira/browse/NETBEANS-1428 > Project: NetBeans > Issue Type: Bug > Components: profiler - Base >Affects Versions: 9.0, 10.0 > Environment: Windows 10, JDK11 (OpenJDK 11.0+28) >Reporter: Peter Hull >Priority: Major > Labels: netcat > Attachments: hs_err_pid38528.log > > > Attempting to profile a Java freeform project (Netcat 10, Profiling FreeForm, > Step 2) > I get the following error > {{#}} > {{# A fatal error has been detected by the Java Runtime Environment:}} > {{#}} > {{# EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff8e831c775, > pid=38528, tid=38596}} > {{#}} > {{# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)}} > {{# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed > oops, g1 gc, windows-amd64)}} > {{# Problematic frame:}} > {{# V [jvm.dll+0x5ec775]}} > {{#}} > {{# No core dump will be written. Minidumps are not enabled by default on > client versions of Windows}} > {{#}} > {{# An error report file with more information is saved as:}} > {{# D:\Libraries\Downloads\TS_Profiler_freeform\freeform\hs_err_pid38528.log}} > {{#}} > {{# If you would like to submit a bug report, please visit:}} > {{# http://bugreport.java.com/bugreport/crash.jsp}} > {{#}} > Seems reproducible, I have attached the crash log. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-1428) Fatal error when profiling
[ https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16699169#comment-16699169 ] Eirik Bakke edited comment on NETBEANS-1428 at 11/26/18 3:44 PM: - (Also sent this comment as a reply to the mailing list; including here for those looking at the JIRA issue: ) I tested the new DLL--it works!! Here's what I did: 1) Start a Java profiling session via the "-agentpath" JVM argument and invoking "Attach to External Process". Shortly thereafter the JVM crashes with the "SUREFIRE-859: # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x5f131f25, pid=10112, tid=23396" error (and a long JVM dump). 2) Download Peter Hull's recompiled profiler binaries from https://github.com/pedro-w/incubator-netbeans/releases/tag/v0.1-alpha , and paste the two files (profilerinterface.dll and profilerinterface.map) into NetBeans\profiler\lib\deployed\jdk16\windows-amd64 (overwriting the two existing files). 3) Repeat (1) again. No crash this time, everything works fine! This is great. Very happy that the profiler functionality will be working again, for newer JDKs. Thanks, Peter! was (Author: ebakke): (Also sent this comment as a reply to the mailing list; including here for those looking at the JIRA issue:) I tested the new DLL--it works!! Here's what I did: 1) Start a Java profiling session via the "-agentpath" JVM argument and invoking "Attach to External Process". Shortly thereafter the JVM crashes with the "SUREFIRE-859: # EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x5f131f25, pid=10112, tid=23396" error (and a long JVM dump). 2) Download Peter Hull's recompiled profiler binaries from https://github.com/pedro-w/incubator-netbeans/releases/tag/v0.1-alpha , and paste the two files (profilerinterface.dll and profilerinterface.map) into NetBeans\profiler\lib\deployed\jdk16\windows-amd64 (overwriting the two existing files). 3) Repeat (1) again. No crash this time, everything works fine! This is great. Very happy that the profiler functionality will be working again, for newer JDKs. Thanks, Peter! > Fatal error when profiling > -- > > Key: NETBEANS-1428 > URL: https://issues.apache.org/jira/browse/NETBEANS-1428 > Project: NetBeans > Issue Type: Bug > Components: profiler - Base >Affects Versions: 9.0, 10.0 > Environment: Windows 10, JDK11 (OpenJDK 11.0+28) >Reporter: Peter Hull >Priority: Major > Labels: netcat > Attachments: hs_err_pid38528.log > > > Attempting to profile a Java freeform project (Netcat 10, Profiling FreeForm, > Step 2) > I get the following error > {{#}} > {{# A fatal error has been detected by the Java Runtime Environment:}} > {{#}} > {{# EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff8e831c775, > pid=38528, tid=38596}} > {{#}} > {{# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)}} > {{# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed > oops, g1 gc, windows-amd64)}} > {{# Problematic frame:}} > {{# V [jvm.dll+0x5ec775]}} > {{#}} > {{# No core dump will be written. Minidumps are not enabled by default on > client versions of Windows}} > {{#}} > {{# An error report file with more information is saved as:}} > {{# D:\Libraries\Downloads\TS_Profiler_freeform\freeform\hs_err_pid38528.log}} > {{#}} > {{# If you would like to submit a bug report, please visit:}} > {{# http://bugreport.java.com/bugreport/crash.jsp}} > {{#}} > Seems reproducible, I have attached the crash log. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-1428) Fatal error when profiling
[ https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16697828#comment-16697828 ] Geertjan Wielenga edited comment on NETBEANS-1428 at 11/24/18 1:59 PM: --- You're going to continue to get zero replies forever until you start a new thread, Announcing something big like this at the end of the thread means it will remain hidden. was (Author: geertjanwielenga): You're going to continue to get zero replies forever until you start a new thread, Tagging on to someone else's thread is not the way to do it. > Fatal error when profiling > -- > > Key: NETBEANS-1428 > URL: https://issues.apache.org/jira/browse/NETBEANS-1428 > Project: NetBeans > Issue Type: Bug > Components: profiler - Base >Affects Versions: 9.0, 10.0 > Environment: Windows 10, JDK11 (OpenJDK 11.0+28) >Reporter: Peter Hull >Priority: Major > Labels: netcat > Attachments: hs_err_pid38528.log > > > Attempting to profile a Java freeform project (Netcat 10, Profiling FreeForm, > Step 2) > I get the following error > {{#}} > {{# A fatal error has been detected by the Java Runtime Environment:}} > {{#}} > {{# EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff8e831c775, > pid=38528, tid=38596}} > {{#}} > {{# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)}} > {{# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed > oops, g1 gc, windows-amd64)}} > {{# Problematic frame:}} > {{# V [jvm.dll+0x5ec775]}} > {{#}} > {{# No core dump will be written. Minidumps are not enabled by default on > client versions of Windows}} > {{#}} > {{# An error report file with more information is saved as:}} > {{# D:\Libraries\Downloads\TS_Profiler_freeform\freeform\hs_err_pid38528.log}} > {{#}} > {{# If you would like to submit a bug report, please visit:}} > {{# http://bugreport.java.com/bugreport/crash.jsp}} > {{#}} > Seems reproducible, I have attached the crash log. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-1428) Fatal error when profiling
[ https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16685076#comment-16685076 ] Peter Hull edited comment on NETBEANS-1428 at 11/24/18 1:22 PM: Geertjan, should I also file a JDK bug ? You know better than anyone how they (Oracle) work. was (Author: peterhull90): Geertjan, should I also file a JDK bug ? (you know better than anyone how they work) > Fatal error when profiling > -- > > Key: NETBEANS-1428 > URL: https://issues.apache.org/jira/browse/NETBEANS-1428 > Project: NetBeans > Issue Type: Bug > Components: profiler - Base >Affects Versions: 9.0, 10.0 > Environment: Windows 10, JDK11 (OpenJDK 11.0+28) >Reporter: Peter Hull >Priority: Major > Labels: netcat > Attachments: hs_err_pid38528.log > > > Attempting to profile a Java freeform project (Netcat 10, Profiling FreeForm, > Step 2) > I get the following error > {{#}} > {{# A fatal error has been detected by the Java Runtime Environment:}} > {{#}} > {{# EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff8e831c775, > pid=38528, tid=38596}} > {{#}} > {{# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)}} > {{# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed > oops, g1 gc, windows-amd64)}} > {{# Problematic frame:}} > {{# V [jvm.dll+0x5ec775]}} > {{#}} > {{# No core dump will be written. Minidumps are not enabled by default on > client versions of Windows}} > {{#}} > {{# An error report file with more information is saved as:}} > {{# D:\Libraries\Downloads\TS_Profiler_freeform\freeform\hs_err_pid38528.log}} > {{#}} > {{# If you would like to submit a bug report, please visit:}} > {{# http://bugreport.java.com/bugreport/crash.jsp}} > {{#}} > Seems reproducible, I have attached the crash log. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
[jira] [Comment Edited] (NETBEANS-1428) Fatal error when profiling
[ https://issues.apache.org/jira/browse/NETBEANS-1428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16685076#comment-16685076 ] Peter Hull edited comment on NETBEANS-1428 at 11/13/18 11:47 AM: - Geertjan, should I also file a JDK bug ? (you know better than anyone how they work) was (Author: peterhull90): Geetjan, should I also file a JDK bug ? (you know better than anyone how they work) > Fatal error when profiling > -- > > Key: NETBEANS-1428 > URL: https://issues.apache.org/jira/browse/NETBEANS-1428 > Project: NetBeans > Issue Type: Bug > Components: profiler - Base >Affects Versions: 9.0, 10.0 > Environment: Windows 10, JDK11 (OpenJDK 11.0+28) >Reporter: Peter Hull >Priority: Major > Labels: netcat > Attachments: hs_err_pid38528.log > > > Attempting to profile a Java freeform project (Netcat 10, Profiling FreeForm, > Step 2) > I get the following error > {{#}} > {{# A fatal error has been detected by the Java Runtime Environment:}} > {{#}} > {{# EXCEPTION_ACCESS_VIOLATION (0xc005) at pc=0x7ff8e831c775, > pid=38528, tid=38596}} > {{#}} > {{# JRE version: OpenJDK Runtime Environment (11.0+28) (build 11+28)}} > {{# Java VM: OpenJDK 64-Bit Server VM (11+28, mixed mode, tiered, compressed > oops, g1 gc, windows-amd64)}} > {{# Problematic frame:}} > {{# V [jvm.dll+0x5ec775]}} > {{#}} > {{# No core dump will be written. Minidumps are not enabled by default on > client versions of Windows}} > {{#}} > {{# An error report file with more information is saved as:}} > {{# D:\Libraries\Downloads\TS_Profiler_freeform\freeform\hs_err_pid38528.log}} > {{#}} > {{# If you would like to submit a bug report, please visit:}} > {{# http://bugreport.java.com/bugreport/crash.jsp}} > {{#}} > Seems reproducible, I have attached the crash log. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists