RFR(XS): 8059868: JVM crashes on attach on Windows when compiled with /RTC1

Thomas Stüfe thomas.stuefe at gmail.com
Wed Oct 8 09:00:37 UTC 2014


Thank you all!

On Wed, Oct 8, 2014 at 9:51 AM, Volker Simonis <volker.simonis at gmail.com>
wrote:

> Thanks Alan, Staffan,
>
> I'll push the change with the spacing adjusted as suggested by Alan.
>
> Regards,
> Volker
>
>
> On Wed, Oct 8, 2014 at 9:33 AM, Staffan Larsen
> <staffan.larsen at oracle.com> wrote:
> > Looks good!
> >
> > Thanks,
> > /Staffan
> >
> > On 7 okt 2014, at 16:26, Thomas Stüfe <thomas.stuefe at gmail.com> wrote:
> >
> > Hi all,
> >
> > We saw crashes when connecting to a target VM using
> > com.sun.tools.attach.WindowsVirtualMachine when injecting VM was compiled
> > with /RTC1.
> >
> > The error turned out to be in VirtualMachineImpl.c: the function
> > "jvm_attach_thread_func" - the one which is injected into the target VM
> and
> > used as thread entry point for CreateRemoteThread() - must be compiled
> with
> > runtime checks disabled in order to keep the code-to-inject position
> > independent.
> >
> > Using /rtc1 will cause the Microsoft compiler to generate relative calls
> to
> > a check function ("_RTC_CheckEsp") which will not work if code is
> planted in
> > target process at a different address.
> >
> > This change adds a pragma to locally disable the runtime checks and
> > re-enable them below the function.
> >
> > http://cr.openjdk.java.net/~simonis/webrevs/8059868/
> >
> > Kind regards,
> >
> > Thomas Stuefe
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20141008/d66c150e/attachment-0001.html>


More information about the serviceability-dev mailing list