Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Repost: Verifier Related HotSwap Bug: Why is nobody intressted in this bug report?
Repost: Verifier Related HotSwap Bug: Why is nobody intressted in this bug report? [message #68543] Fri, 27 June 2003 07:27 Go to next message
markusle is currently offline markusleFriend
Messages: 12
Registered: July 2009
Junior Member
package de.neze.experiments;
/**
* class VerifierRelatedHotSwapBug
* <blockquote>
* Reason:
* Hot code replace failed - verifier detected internal inconsistency
* or security problem
* </blockquote>
*
* Reproduce the meassage with the above reason:
* <ol><li>
* Set an break point to the indecated line below
* </li><li>
* Start this class in the debugger of eclipse (2.1.1 perhap earlier) against
* Suns 1.4.2 beta.
* </li><li>
* edit the line above the break point (without compilation errors)
* </li><li>
* resume the suspended thread: this gives the message noted above.
* </li></ol>
*
* For IBM's JDK 1.4.1 the reason for problems is:
* <blockquote>
* Reason: The target VM does not support hot code replace
* </blockquote>
* Why has IBM's JDK 1,4,1 no hotswap (I believe it has hotswap)?
*
* I detected another hotswap related bug (with a workaround),
* let me know if someody is intressted.
*
* Kind regard
*
* mle
*/
public class VerifierRelatedHotSwapBug {
/**
* class InnerClass
*/
public static class InnerClass {
private InnerClass m_oInnerSubClass;
private final void setInnerSubClass(final InnerSubClass o) {
m_oInnerSubClass = o;
}
}
/**
* class InnerSubClass
*/
public static class InnerSubClass extends InnerClass {
}
/**
* some init
*/
static {
new InnerClass();
// Class oClass = InnerClass.class;
}
/**
* main()
*/
public static void main(String[] arguments) {
System.out.println("Edit this line and hotswap: 1 23456789123456789");
System.out.println("This is the place for your breakboint");
}
}
Re: Repost: Verifier Related HotSwap Bug: Why is nobody intressted in this bug report? [message #68593 is a reply to message #68543] Fri, 27 June 2003 09:36 Go to previous messageGo to next message
Jerome Lanneluc is currently offline Jerome LannelucFriend
Messages: 572
Registered: July 2009
Senior Member
You might want to enter the bug report in Bugzilla. This newsgroup is more
for questions about JDT, not to report bugs.

Jerome

"mle" <mle@neze.de> wrote in message news:bdgmc4$t5i$1@rogue.oti.com...
> package de.neze.experiments;
> /**
> * class VerifierRelatedHotSwapBug
> * <blockquote>
> * Reason:
> * Hot code replace failed - verifier detected internal inconsistency
> * or security problem
> * </blockquote>
> *
> * Reproduce the meassage with the above reason:
> * <ol><li>
> * Set an break point to the indecated line below
> * </li><li>
> * Start this class in the debugger of eclipse (2.1.1 perhap earlier)
against
> * Suns 1.4.2 beta.
> * </li><li>
> * edit the line above the break point (without compilation errors)
> * </li><li>
> * resume the suspended thread: this gives the message noted above.
> * </li></ol>
> *
> * For IBM's JDK 1.4.1 the reason for problems is:
> * <blockquote>
> * Reason: The target VM does not support hot code replace
> * </blockquote>
> * Why has IBM's JDK 1,4,1 no hotswap (I believe it has hotswap)?
> *
> * I detected another hotswap related bug (with a workaround),
> * let me know if someody is intressted.
> *
> * Kind regard
> *
> * mle
> */
> public class VerifierRelatedHotSwapBug {
> /**
> * class InnerClass
> */
> public static class InnerClass {
> private InnerClass m_oInnerSubClass;
> private final void setInnerSubClass(final InnerSubClass o) {
> m_oInnerSubClass = o;
> }
> }
> /**
> * class InnerSubClass
> */
> public static class InnerSubClass extends InnerClass {
> }
> /**
> * some init
> */
> static {
> new InnerClass();
> // Class oClass = InnerClass.class;
> }
> /**
> * main()
> */
> public static void main(String[] arguments) {
> System.out.println("Edit this line and hotswap: 1 23456789123456789");
> System.out.println("This is the place for your breakboint");
> }
> }
Re: Repost: Verifier Related HotSwap Bug: Why is nobody intressted in this bug report? [message #68832 is a reply to message #68543] Fri, 27 June 2003 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Olivier_Thomann.ca.ibm.comNOSPAM

Bug opened:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=39428

Please add yourself to CC.
--
Olivier
Re: Repost: Verifier Related HotSwap Bug: Why is nobody intressted in this bug report? [message #68845 is a reply to message #68832] Fri, 27 June 2003 14:46 Go to previous messageGo to next message
Darin Wright is currently offline Darin WrightFriend
Messages: 454
Registered: July 2009
Senior Member
This looks like a JDK bug. The problem occurrs on 1.4.1 and 1.4.2 (but not
on SC). The hotswap will fail in any event since the debugger cannot pop a
"main" method of the stack (i.e. we cannot pop the last method off the
stack, or we have nothing left to "re-enter" into the popped method).

I suggest that the reporter of this problem submit the bug to Sun.

Darin

"Olivier Thomann" <Olivier_Thomann@ca.ibm.comNOSPAM> wrote in message
news:qbjofv4p5dissgorkkv401rslr1m81j9m5@4ax.com...
> Bug opened:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=39428
>
> Please add yourself to CC.
> --
> Olivier
Re: Repost: Verifier Related HotSwap Bug: Why is nobody intressted in this bug report? [message #69390 is a reply to message #68845] Sat, 28 June 2003 07:51 Go to previous messageGo to next message
markusle is currently offline markusleFriend
Messages: 12
Registered: July 2009
Junior Member
Hello,

thank you very much for the detailed analysis of my bug report in

https://bugs.eclipse.org/bugs/show_bug.cgi?id=39428

I have the following to say:

[1] To Jermoe Lanneluc: I don't opened a bug report because I was not
sure whoes bug it is: SUN or Eclipse?
[2] To Darin Wright: Has somebody send a bug report to SUN, if not I
will do it in a few days.
[3] To the closed discussion: https://bugs.eclipse.org/bugs/show_bug.cgi?id=39428
I think it is still possible that the HCR (hot code replace?) error,
comes from eclipse because it possibly builds another classfile for
HCR then during noraml compilation. The discussion above makes not
clear that it is impossible.
Thanks again
mle
Another HCR Problem - with Eclipse 2.1.1 RC2 linux gtk [message #69587 is a reply to message #69390] Sun, 29 June 2003 10:38 Go to previous message
markusle is currently offline markusleFriend
Messages: 12
Registered: July 2009
Junior Member
Hello again,

Because I had success with my brutal bug-report offer ;-)
and because I'm too tiered for real work :-(
I make the announcement from my initial posting true;
of course I know there is still no intereset :-(

* I detected another hotswap related bug (with a workaround),
* let me know if someody is intressted.

If I start my application sometimes a thread stops in a blocking
native method (read() from multicast socket) and the thread view
shows this thread as suspended but without any stack trace. If I
now HCR in a class (not nessessary related to the suspended thread)
then I get the following HCR-problem message box:

Hot code replace failed
....
Reason:
com.sun.jdi.IncompatibleThreadStateException: \
Thread was not suspended occured retrieving stack frames.

This is perhaps a JVM bug (SUN J2SE 1.4.2 final), but I get this error
with some other JVMs too, and there exists a workaround:

Resume the Thread shown as suspended.

This workaround makes HCR work (even if it failed before in the same
debug session).
Another observation is that after the resume a "real" suspend shows the
correct call stack for the thread.

I can't offer a source code example because I believe there exist a
race condition, hard to debug ... :-(

Kind regards
mle
Previous Topic:PDE Runtime Workbench question
Next Topic:refresh files added in ant view
Goto Forum:
  


Current Time: Sun Jun 30 13:48:20 GMT 2024

Powered by FUDForum. Page generated in 0.03797 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top