JDK-7160624 : builds of sawindbg.dll missing /SAFESEH option
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: hs24
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows
  • CPU: generic
  • Submitted: 2012-04-11
  • Updated: 2020-03-17
  • Resolved: 2020-03-17
Description
E-mail from Kelly:

FYI...

All dlls in the jdk build should be using /SAFESEH  is there some reason that this dll does not?

-kto

...   latest jdk8/build forest build on windows

Checking for /SAFESEH usage in: C:/jprt/T/P1/160106~1.KOH/s/build/windows-i586/../windows-i586-fastdebug/j2sdk-image/jre/bin/sawindbg.dll
ERROR: Did not find 'Safe Exception Handler Table' in loadconfig: C:/jprt/T/P1/160106~1.KOH/s/build/windows-i586/../windows-i586-fastdebug/j2sdk-image/jre/bin/sawindbg.dll
Microsoft (R) COFF/PE Dumper Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file C:/jprt/T/P1/160106~1.KOH/s/build/windows-i586/../windows-i586-fastdebug/j2sdk-image/jre/bin/sawindbg.dll

File Type: DLL

  Summary

        1000 .data
        1000 .idata
        3000 .rdata
        1000 .reloc
        1000 .rsrc
        9000 .text
       10000 .textbss

Comments
This has been fixed by JDK-8142336 in JDK 9. $ ./java -version java version "1.9.0-ea" Java(TM) SE Runtime Environment (build 1.9.0-ea-b94) Java HotSpot(TM) Client VM (build 1.9.0-ea-b94, mixed mode) $ VC/bin/link.exe /dump /all sawindbg.dll .... 1000CE60 Safe Exception Handler Table 6 Safe Exception Handler Count Safe Exception Handler Table Address -------- 10007A89 10009668 100096B0 100096FE 10009738 10009770 ...
09-03-2017

Deferring to hs25 as this is a low priority issue.
03-07-2013

EVALUATION The SA_LFLAGS variable in make/windows/makefiles/sa.make needs to updated with something like: !if "$(COMPILER_NAME)" == "VS2010" SL_LFLAGS = $(SA_LFLAGS) /SAFESEH !endif
12-04-2012