However, that bug has FixReleased (at least for 64-bit JVMs). I guess it should be also fixed for 32-bit JVMs launched from C on 64-bit kernel.
I'm not sure, whether it would be better adding this comment just to Bug 1699772, or just to this ("duplicate") Bug 1700270, or creating just another bug ID.
I have chosen adding it to Bug 1699772 and also here, since my code example is based on previously-provided test.c which I downloaded from Bug 1700270.
ORIGINAL COMMENT:
Rostislav Stříbrný (rstribrn) wrote 2 hours ago:
Hi,
problem still present on linux-image-4.8.0-58-generic with these conditions:
- while executing JVM launched from >>32-bit<< C (on 64-bit kernel)
- defining "higher" JVM stack size (eg. -Xss2048k JVM argument)
=> causes JVM segmentation fault
Attached test case (sources + binary + output logs): Bug1699772_i386_jvm_segfault_problem.tgz
test_case1.c (32-bit) => using -Xss1024k => RUNS OK.
test_case2.c (32-bit) => using -Xss2048k => Segmentation fault.
test_case1.c (64-bit) => using -Xss1024k => RUNS OK.
test_case2.c (64-bit) => using -Xss2048k => RUNS OK.
My system:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
with linux-generic-hwe-16.04
uname -a
Linux L34001100621 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
THIS COMMENT ALSO ADDED TO (PARENT) BUG /bugs.launchpad .net/ubuntu/ +source/ linux/+ bug/1699772
https:/
However, that bug has FixReleased (at least for 64-bit JVMs). I guess it should be also fixed for 32-bit JVMs launched from C on 64-bit kernel.
I'm not sure, whether it would be better adding this comment just to Bug 1699772, or just to this ("duplicate") Bug 1700270, or creating just another bug ID.
I have chosen adding it to Bug 1699772 and also here, since my code example is based on previously-provided test.c which I downloaded from Bug 1700270.
ORIGINAL COMMENT:
Rostislav Stříbrný (rstribrn) wrote 2 hours ago: 4.8.0-58- generic with these conditions:
Hi,
problem still present on linux-image-
- while executing JVM launched from >>32-bit<< C (on 64-bit kernel)
- defining "higher" JVM stack size (eg. -Xss2048k JVM argument)
=> causes JVM segmentation fault
Attached test case (sources + binary + output logs): Bug1699772_i386_jvm_ segfault_ problem. tgz
test_case1.c (32-bit) => using -Xss1024k => RUNS OK.
test_case2.c (32-bit) => using -Xss2048k => Segmentation fault.
test_case1.c (64-bit) => using -Xss1024k => RUNS OK.
test_case2.c (64-bit) => using -Xss2048k => RUNS OK.
My system: RELEASE= 16.04 CODENAME= xenial DESCRIPTION= "Ubuntu 16.04.2 LTS"
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
with linux-generic- hwe-16. 04
uname -a
Linux L34001100621 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux