Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread David M. Lloyd
On 11/14/2016 11:07 AM, David M. Lloyd wrote: On 11/14/2016 11:02 AM, David M. Lloyd wrote: On 11/14/2016 09:54 AM, David M. Lloyd wrote: On 11/14/2016 09:39 AM, Chris Hegarty wrote: On 14/11/16 15:29, Andrew Haley wrote: On 14/11/16 14:47, David M. Lloyd wrote: Since this method is called

Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread David M. Lloyd
On 11/14/2016 11:02 AM, David M. Lloyd wrote: On 11/14/2016 09:54 AM, David M. Lloyd wrote: On 11/14/2016 09:39 AM, Chris Hegarty wrote: On 14/11/16 15:29, Andrew Haley wrote: On 14/11/16 14:47, David M. Lloyd wrote: Since this method is called from a native method, is it possible that some

Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread David M. Lloyd
On 11/14/2016 09:54 AM, David M. Lloyd wrote: On 11/14/2016 09:39 AM, Chris Hegarty wrote: On 14/11/16 15:29, Andrew Haley wrote: On 14/11/16 14:47, David M. Lloyd wrote: Since this method is called from a native method, is it possible that somehow the native method is generating an NPE, but

Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread David M. Lloyd
On 11/14/2016 09:39 AM, Chris Hegarty wrote: On 14/11/16 15:29, Andrew Haley wrote: On 14/11/16 14:47, David M. Lloyd wrote: Since this method is called from a native method, is it possible that somehow the native method is generating an NPE, but the Java method is still in the stack context?

Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread David M. Lloyd
On 11/14/2016 09:29 AM, Langer, Christoph wrote: Hi David, can this be reproduced? It's part of the test suite of our application server, so, probably, but probably not easily. What platform is it about? There have been fixes for some Windows native coding lately: http://hg.openjdk.java.n

Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread David M. Lloyd
On 11/14/2016 09:29 AM, Andrew Haley wrote: On 14/11/16 14:47, David M. Lloyd wrote: Since this method is called from a native method, is it possible that somehow the native method is generating an NPE, but the Java method is still in the stack context? I assume that what is happening here is

Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread Chris Hegarty
On 14/11/16 15:29, Andrew Haley wrote: On 14/11/16 14:47, David M. Lloyd wrote: Since this method is called from a native method, is it possible that somehow the native method is generating an NPE, but the Java method is still in the stack context? I assume that what is happening here is some

Re: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread Andrew Haley
On 14/11/16 14:47, David M. Lloyd wrote: > Since this method is called from a native method, is it possible > that somehow the native method is generating an NPE, but the Java > method is still in the stack context? I assume that what is > happening here is some kind of class init order snafu, bu

RE: NPE on "return" bytecode of java.net.NetworkInterface

2016-11-14 Thread Langer, Christoph
Hi David, can this be reproduced? What platform is it about? There have been fixes for some Windows native coding lately: http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/ef9b2921bfa5 It really looks like some issues in the native code with a misleading callstack. Best regards Christoph >