Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JBR-17.0.6+0-829.5-jcef - Segfault when compiling for aarch64-linux #224

Open
damien-biasotto opened this issue Mar 29, 2023 · 0 comments
Open

Comments

@damien-biasotto
Copy link

Good Morning,

I'm trying to package IntelliJ IDEA Ultimate for aarch64-linux platform on NixOS.

And when I'm running make images CONF=linux-aarch64-server-release
it segfaults when building BUILD_JVMTI_TOOLS.

Logs

You can see the full build log herehere

Relevant extract below:

+ make images CONF=linux-aarch64-server-release
Building target 'images' in configuration 'linux-aarch64-server-release'
Warning: No SCM configuration present and no .src-rev
Compiling 1 files for BUILD_TOOLS_HOTSPOT
Compiling 8 files for BUILD_TOOLS_LANGTOOLS
Parsing 2 properties into enum-like class for jdk.compiler
Compiling 16 properties into resource bundles for jdk.compiler
Compiling 13 properties into resource bundles for jdk.javadoc
Compiling 12 properties into resource bundles for jdk.jdeps
Compiling 7 properties into resource bundles for jdk.jshell
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s)
Compiling 2 files for BUILD_JVMTI_TOOLS
/build/source/src/hotspot/share/adlc/adlparse.cpp: In member function 'FormatRule* ADLParser::template_parse()':
/build/source/src/hotspot/share/adlc/adlparse.cpp:4027:56: warning: '%s' directive argument is null [-Wformat-overflow=]
 4027 |   if (_AD._adl_debug > 1) fprintf(stderr,"Format Rule: %s\n", desc);
      |                                                        ^~
/build/source/src/hotspot/share/adlc/adlparse.cpp: In member function 'FormatRule* ADLParser::format_parse()':
/build/source/src/hotspot/share/adlc/adlparse.cpp:3900:56: warning: '%s' directive argument is null [-Wformat-overflow=]
 3900 |   if (_AD._adl_debug > 1) fprintf(stderr,"Format Rule: %s\n", desc);
      |                                                        ^~
/build/source/src/hotspot/share/adlc/adlparse.cpp: In member function 'void ADLParser::effect_parse(InstructForm*)':
/build/source/src/hotspot/share/adlc/adlparse.cpp:4047:63: warning: '%s' directive argument is null [-Wformat-overflow=]
 4047 |   if (_AD._adl_debug > 1) fprintf(stderr,"Effect description: %s\n", desc);
      |                                                               ^~
/build/source/src/hotspot/share/adlc/adlparse.cpp: In member function 'void ADLParser::frame_parse()':
/build/source/src/hotspot/share/adlc/adlparse.cpp:1099:55: warning: '%s' directive argument is null [-Wformat-overflow=]
 1099 |   if (_AD._adl_debug > 1) fprintf(stderr,"Frame Form: %s\n", desc);
      |                                                       ^~
/build/source/src/hotspot/share/adlc/output_c.cpp: In member function 'void ArchDesc::definePeephole(FILE*, InstructForm*)':
/build/source/src/hotspot/share/adlc/output_c.cpp:1166:42: warning: '_idx' directive writing 4 bytes into a region of size between 2 and 12 [-Wformat-overflow=]
 1166 |           sprintf(left_reg_index,",inst%d_idx%d", (int)left_index, left_op_index);
      |                                          ^~~~
In function 'void check_peepconstraints(FILE*, FormDict&, PeepMatch*, PeepConstraint*)',
    inlined from 'void ArchDesc::definePeephole(FILE*, InstructForm*)' at /build/source/src/hotspot/share/adlc/output_c.cpp:1405:26:
/build/source/src/hotspot/share/adlc/output_c.cpp:1166:34: note: directive argument in the range [-2147483648, 9999]
 1166 |           sprintf(left_reg_index,",inst%d_idx%d", (int)left_index, left_op_index);
      |                                  ^~~~~~~~~~~~~~~
In file included from /nix/store/mkxbzqis17psznvhfqgz9159crg5314m-glibc-2.35-224-dev/include/stdio.h:906,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/cstdio:42,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/ext/string_conversions.h:43,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/bits/basic_string.h:3960,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/string:53,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/bits/locale_classes.h:40,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/bits/ios_base.h:41,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/ios:42,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/ostream:38,
                 from /nix/store/dnibkvsbrzs03av2ki2njly3svz7z3bj-gcc-12.2.0/include/c++/12.2.0/iostream:39,
                 from /build/source/src/hotspot/share/adlc/adlc.hpp:33,
                 from /build/source/src/hotspot/share/adlc/output_c.cpp:27:
In function 'int sprintf(char*, const char*, ...)',
    inlined from 'void check_peepconstraints(FILE*, FormDict&, PeepMatch*, PeepConstraint*)' at /build/source/src/hotspot/share/adlc/output_c.cpp:1166:18,
    inlined from 'void ArchDesc::definePeephole(FILE*, InstructForm*)' at /build/source/src/hotspot/share/adlc/output_c.cpp:1405:26:
/nix/store/mkxbzqis17psznvhfqgz9159crg5314m-glibc-2.35-224-dev/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 12 and 32 bytes into a destination of size 18
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
/build/source/src/hotspot/share/adlc/output_c.cpp: In member function 'void ArchDesc::definePeephole(FILE*, InstructForm*)':
/build/source/src/hotspot/share/adlc/output_c.cpp:1179:45: warning: '_idx' directive writing 4 bytes into a region of size between 2 and 12 [-Wformat-overflow=]
 1179 |             sprintf(right_reg_index,",inst%d_idx%d", (int)right_index, right_op_index);
      |                                             ^~~~
In function 'void check_peepconstraints(FILE*, FormDict&, PeepMatch*, PeepConstraint*)',
    inlined from 'void ArchDesc::definePeephole(FILE*, InstructForm*)' at /build/source/src/hotspot/share/adlc/output_c.cpp:1405:26:
/build/source/src/hotspot/share/adlc/output_c.cpp:1179:37: note: directive argument in the range [-2147483648, 9999]
 1179 |             sprintf(right_reg_index,",inst%d_idx%d", (int)right_index, right_op_index);
      |                                     ^~~~~~~~~~~~~~~
In function 'int sprintf(char*, const char*, ...)',
    inlined from 'void check_peepconstraints(FILE*, FormDict&, PeepMatch*, PeepConstraint*)' at /build/source/src/hotspot/share/adlc/output_c.cpp:1179:20,
    inlined from 'void ArchDesc::definePeephole(FILE*, InstructForm*)' at /build/source/src/hotspot/share/adlc/output_c.cpp:1405:26:
/nix/store/mkxbzqis17psznvhfqgz9159crg5314m-glibc-2.35-224-dev/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 12 and 32 bytes into a destination of size 18
   30 |   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
      |          ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   31 |                                   __glibc_objsize (__s), __fmt,
      |                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   32 |                                   __va_arg_pack ());
      |                                   ~~~~~~~~~~~~~~~~~
/nix/store/mh2ga0rzccp2749ar62gmsij8bfajykj-bash-5.2-p15/bin/bash: line 1:  4514 Segmentation fault      (core dumped) /build/source/build/linux-aarch64-server-release/hotspot/variant-server/tools/adlc/adlc -q -T -DLINUX=1 -D_GNU_SOURCE=1 -g -DAARCH64=1 -D_LP64=1 /build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/all-ad-src.ad -c/build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/ad_aarch64.cpp -h/build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/ad_aarch64.hpp -a/build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/dfa_aarch64.cpp -v/build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/adGlobals_aarch64.hpp > >(/nix/store/m3p9za90q4m78l1y5i1sgg7zlign1dqr-coreutils-9.1/bin/tee -a /build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/_adlc_run_exec.log) 2> >(/nix/store/m3p9za90q4m78l1y5i1sgg7zlign1dqr-coreutils-9.1/bin/tee -a /build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/_adlc_run_exec.log 1>&2)
make[3]: *** [gensrc/GensrcAdlc.gmk:186: /build/source/build/linux-aarch64-server-release/hotspot/variant-server/support/adlc/_adlc_run_exec.marker] Error 139
make[2]: *** [make/Main.gmk:245: hotspot-server-gensrc] Error 2
make[2]: *** Waiting for unfinished jobs....
Compiling 127 files for BUILD_java.compiler.interim
Compiling 402 files for BUILD_jdk.compiler.interim
Compiling 229 files for BUILD_jdk.javadoc.interim

ERROR: Build failed for target 'images' in configuration 'linux-aarch64-server-release' (exit code 2) 

=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_support_adlc__adlc_run_exec:

* All command lines available in /build/source/build/linux-aarch64-server-release/make-support/failure-logs.
=== End of repeated output ===

No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.

make[1]: *** [/build/source/make/Init.gmk:315: main] Error 2
make: *** [/build/source/make/Init.gmk:186: images] Error 2

System

 - system: `"aarch64-linux"`
 - host os: `Linux 6.2.0-asahi, NixOS, 23.05 (Stoat), 23.05.20230318.1603d11`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(root): `"home-manager, nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

It is worth noting that I didn't have this issue with same OS (Nixos Aarch64) but running in Parallels Desktop (VM).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant