Linux-i586 Java(fastdebug) hit assertion when executed with following options on Linux-x64 platform:
java -client -XX:StackShadowPages=32
java -client -XX:StackShadowPages=33
...
java -client -XX:StackShadowPages=49
java -client -XX:StackShadowPages=50
Valid interval for StackShadowPages is [1...50].
Here is output for Java 9 b62 debug build(hs_err_pid2695.log is attached):
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/codeBuffer.hpp:176
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/HUDSON/workspace/9-2-build-linux-i586/jdk9/2592/hotspot/src/share/vm/asm/codeBuffer.hpp:176), pid=2695, tid=4130257728
# assert(allocates2(pc)) failed: not in CodeBuffer memory: 0xf41c5a00 <= 0xf41c5e81 <= 0xf41c5e80
#
# JRE version: (9.0-b62) (build )
# Java VM: Java HotSpot(TM) Client VM (1.9.0-ea-fastdebug-b62 mixed mode linux-x86 )
# Core dump written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c" (or dumping to /home/dmitry/bundles/jdk9/b61/i586/fastdebug/bin/core.2695)
#
...
Linux-i586 Java 8u45 version is also affected.