From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1E3DA38425B0; Wed, 18 May 2022 19:47:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1E3DA38425B0 From: "reiter.christoph at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/105507] Ada build fails for 32bit Windows Date: Wed, 18 May 2022 19:47:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 12.1.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: reiter.christoph at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2022 19:47:44 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105507 --- Comment #2 from Christoph Reiter --- Stack trace (I rebuilt the host gcc 11.3.0 with debug symbols and re-ran the failing command with "-wrapper gdb,--args"): Thread 1 received signal SIGSEGV, Segmentation fault. 0x7563bd90 in strlen () from C:\WINDOWS\SysWOW64\msvcrt.dll (gdb) bt #0 0x7563bd90 in strlen () from C:\WINDOWS\SysWOW64\msvcrt.dll #1 0x01731831 in libiberty_vprintf_buffer_size ( format=3Dformat@entry=3D0x1a3f865 "%s:%d", args=3D, args@entry=3D0x1367df64 "") at ../../gcc-11.3.0/libiberty/vprintf-support.c:105 #2 0x0173160a in xvasprintf ( format=3Dformat@entry=3D0x1a3f865 "%s:%d", args=3Dargs@entry=3D0x1367df64 "") at ../../gcc-11.3.0/libiberty/xvasprintf.c:57 #3 0x017312f7 in xasprintf ( fmt=3D0x1a3f865 "%s:%d") at ../../gcc-11.3.0/libiberty/xasprintf.c:47 #4 0x0041f315 in internal_error_function ( context=3D0x29d40c0 , msgid=3D0x1b2aebd "%s", ap=3D0x1367e0a0) at ../../gcc-11.3.0/gcc/ada/gcc-interface/misc.c:343 #5 0x016ab28d in diagnostic_report_diagnostic ( context=3D0x29d40c0 , diagnostic=3D, diagnostic@entry=3D0x1367e048) at ../../gcc-11.3.0/gcc/diagnostic.c:1225 #6 0x016ab7b7 in diagnostic_impl (richloc=3D0x1367e0a4, metadata=3D0x0, op= t=3D-1, gmsgid=3D0x1b2aebd "%s", ap=3D0x1367e0a0, kind=3DDK_ICE) at ../../gcc-11.3.0/gcc/diagnostic.c:1406 #7 0x016abd98 in internal_error ( gmsgid=3Dgmsgid@entry=3D0x1b2aebd "%s") at ../../gcc-11.3.0/gcc/diagnostic.c:1808 #8 0x00c53db1 in crash_signal (signo=3D22) at ../../gcc-11.3.0/gcc/toplev.= c:327 #9 0x75608081 in raise () from C:\WINDOWS\SysWOW64\msvcrt.dll #10 0x00000016 in ?? () #11 0x4925a812 in ?? () #12 0x1367e7b0 in ?? () #13 0x7560c5ab in msvcrt!abort () from C:\WINDOWS\SysWOW64\msvcrt.dll #14 0x0192e3d3 in uw_init_context_1 (context=3D0x0, context@entry=3D0x1367e= 730, outer_cfa=3Douter_cfa@entry=3D0x1367e7d0, outer_ra=3D0x16) at ../../../gcc-11.3.0/libgcc/unwind-dw2.c:1593 #15 0x0192e77f in _Unwind_RaiseException (exc=3D0x1619f880) at ../../../gcc-11.3.0/libgcc/unwind.inc:93 #16 0x00473f47 in ada.exceptions.exception_propagation.propagate_gcc_except= ion (gcc_exception=3D0x1619f880) at ../../gcc-11.3.0/gcc/ada/libgnat/a-exexpr.adb:597 #17 0x00473f96 in ada.exceptions.exception_propagation.propagate_exception ( excep=3D...) at ../../gcc-11.3.0/gcc/ada/libgnat/a-exexpr.adb:628 #18 0x00474414 in ada.exceptions.complete_and_propagate_occurrence ( x=3Dx@entry=3D0x1619f8b0) at ../../gcc-11.3.0/gcc/ada/libgnat/a-except.= adb:924 #19 0x00474447 in <__gnat_raise_exception> ( e=3De@entry=3D0x1a31698 , message=3D...) at ../../gcc-11.3.0/gcc/ada/libgnat/a-except.adb:960 #20 0x0068e352 in sem_ch13.build_discrete_static_predicate.stat_pred ( typ=3D32975) at ../../gcc-11.3.0/gcc/ada/sem_ch13.adb:9368 #21 0x0068fa75 in sem_ch13.build_discrete_static_predicate.get_rlist ( exp=3D) at ../../gcc-11.3.0/gcc/ada/sem_ch13.adb:9129 #22 0x0068f922 in sem_ch13.build_discrete_static_predicate.get_rlist ( exp=3D203158) at ../../gcc-11.3.0/gcc/ada/sem_ch13.adb:9015 #23 0x00693b59 in sem_ch13.build_discrete_static_predicate (typ=3D33050, expr=3D203158, nam=3D-399989278) at ../../gcc-11.3.0/gcc/ada/sem_ch13.a= db:9409 #24 0x00696f66 in sem_ch13.build_predicate_functions (typ=3Dtyp@entry=3D330= 50, n=3Dn@entry=3D203112) at ../../gcc-11.3.0/gcc/ada/sem_ch13.adb:10370 #25 0x006a59b2 in sem_ch13.freeze_entity_checks (n=3D203112) at ../../gcc-11.3.0/gcc/ada/sem_ch13.adb:12728 #26 0x006a5ab5 in sem_ch13.analyze_freeze_entity (n=3Dn@entry=3D203112) at ../../gcc-11.3.0/gcc/ada/sem_ch13.adb:8155 #27 0x0064416a in sem.analyze (n=3Dn@entry=3D203112) at ../../gcc-11.3.0/gcc/ada/sem.adb:264 #28 0x00644d68 in sem.insert_list_after_and_analyze (n=3D203068, l=3D-99976= 824) at ../../gcc-11.3.0/gcc/ada/sem.adb:1254 #29 0x005b490f in freeze.freeze_all.freeze_all_ent.process_flist () at ../../gcc-11.3.0/gcc/ada/freeze.adb:1852 #30 0x005bf0f5 in freeze.freeze_all.freeze_all_ent (after=3D36978, from=3D3= 2525) at ../../gcc-11.3.0/gcc/ada/freeze.adb:1940 #31 freeze.freeze_all (from=3D32525, after=3D36978) at ../../gcc-11.3.0/gcc/ada/freeze.adb:2020 #32 0x006ad855 in sem_ch3.analyze_declarations (l=3D, l@entry=3D-99996744) at ../../gcc-11.3.0/gcc/ada/sem_ch3.adb:2837 #33 0x006fa1d7 in sem_ch7.analyze_package_specification (n=3Dn@entry=3D3252= 4) at ../../gcc-11.3.0/gcc/ada/sem_ch7.adb:1738 #34 0x006442f7 in sem.analyze (n=3D32524) at ../../gcc-11.3.0/gcc/ada/sem.adb:459 #35 0x006f978c in sem_ch7.analyze_package_declaration (n=3Dn@entry=3D37004) at ../../gcc-11.3.0/gcc/ada/sem_ch7.adb:1210 #36 0x00643e5e in sem.analyze (n=3Dn@entry=3D37004) at ../../gcc-11.3.0/gcc/ada/sem.adb:450 #37 0x0066c17a in sem_ch10.analyze_compilation_unit (n=3D32501) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:913 #38 0x00644102 in sem.analyze (n=3Dn@entry=3D32501) at ../../gcc-11.3.0/gcc/ada/sem.adb:180 #39 0x006454b1 in sem.semantics.do_analyze () at ../../gcc-11.3.0/gcc/ada/sem.adb:1421 #40 sem.semantics (comp_unit=3D32501) at ../../gcc-11.3.0/gcc/ada/sem.adb:1= 615 #41 0x00668e97 in sem_ch10.analyze_with_clause (n=3Dn@entry=3D95876) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:2634 #42 0x00644258 in sem.analyze (n=3Dn@entry=3D95876) at ../../gcc-11.3.0/gcc/ada/sem.adb:613 #43 0x006679a7 in sem_ch10.analyze_context (n=3Dn@entry=3D95866) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:1433 #44 0x0066c0d9 in sem_ch10.analyze_compilation_unit (n=3D95866) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:700 #45 0x00644102 in sem.analyze (n=3Dn@entry=3D95866) at ../../gcc-11.3.0/gcc/ada/sem.adb:180 #46 0x006454b1 in sem.semantics.do_analyze () at ../../gcc-11.3.0/gcc/ada/sem.adb:1421 #47 sem.semantics (comp_unit=3D95866) at ../../gcc-11.3.0/gcc/ada/sem.adb:1= 615 #48 0x0066c138 in sem_ch10.analyze_compilation_unit (n=3D95901) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:878 #49 0x00644102 in sem.analyze (n=3Dn@entry=3D95901) at ../../gcc-11.3.0/gcc/ada/sem.adb:180 #50 0x006454b1 in sem.semantics.do_analyze () at ../../gcc-11.3.0/gcc/ada/sem.adb:1421 #51 sem.semantics (comp_unit=3D95901) at ../../gcc-11.3.0/gcc/ada/sem.adb:1= 615 #52 0x00668e97 in sem_ch10.analyze_with_clause (n=3Dn@entry=3D38956) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:2634 #53 0x00644258 in sem.analyze (n=3Dn@entry=3D38956) at ../../gcc-11.3.0/gcc/ada/sem.adb:613 #54 0x006679a7 in sem_ch10.analyze_context (n=3Dn@entry=3D38954) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:1433 #55 0x0066c0d9 in sem_ch10.analyze_compilation_unit (n=3D38954) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:700 #56 0x00644102 in sem.analyze (n=3Dn@entry=3D38954) at ../../gcc-11.3.0/gcc/ada/sem.adb:180 #57 0x006454b1 in sem.semantics.do_analyze () at ../../gcc-11.3.0/gcc/ada/sem.adb:1421 #58 sem.semantics (comp_unit=3D38954) at ../../gcc-11.3.0/gcc/ada/sem.adb:1= 615 #59 0x00668e97 in sem_ch10.analyze_with_clause (n=3Dn@entry=3D13454) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:2634 #60 0x00644258 in sem.analyze (n=3Dn@entry=3D13454) at ../../gcc-11.3.0/gcc/ada/sem.adb:613 #61 0x006679a7 in sem_ch10.analyze_context (n=3Dn@entry=3D13452) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:1433 #62 0x0066c0d9 in sem_ch10.analyze_compilation_unit (n=3D13452) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:700 #63 0x00644102 in sem.analyze (n=3Dn@entry=3D13452) at ../../gcc-11.3.0/gcc/ada/sem.adb:180 #64 0x006454b1 in sem.semantics.do_analyze () at ../../gcc-11.3.0/gcc/ada/sem.adb:1421 #65 sem.semantics (comp_unit=3D13452) at ../../gcc-11.3.0/gcc/ada/sem.adb:1= 615 #66 0x00668e97 in sem_ch10.analyze_with_clause (n=3Dn@entry=3D2328) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:2634 #67 0x00644258 in sem.analyze (n=3Dn@entry=3D2328) at ../../gcc-11.3.0/gcc/ada/sem.adb:613 #68 0x006679a7 in sem_ch10.analyze_context (n=3Dn@entry=3D2326) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:1433 #69 0x0066c0d9 in sem_ch10.analyze_compilation_unit (n=3D2326) at ../../gcc-11.3.0/gcc/ada/sem_ch10.adb:700 #70 0x00644102 in sem.analyze (n=3Dn@entry=3D2326) at ../../gcc-11.3.0/gcc/ada/sem.adb:180 #71 0x006454b1 in sem.semantics.do_analyze () at ../../gcc-11.3.0/gcc/ada/sem.adb:1421 #72 sem.semantics (comp_unit=3D2326) at ../../gcc-11.3.0/gcc/ada/sem.adb:16= 15 #73 0x005c3a46 in frontend () at ../../gcc-11.3.0/gcc/ada/frontend.adb:422 #74 0x007f0e2d in gnat1drv () at ../../gcc-11.3.0/gcc/ada/gnat1drv.adb:1237 #75 0x0041f065 in gnat_parse_file () at ../../gcc-11.3.0/gcc/ada/gcc-interface/misc.c:118 #76 0x00c53ea3 in compile_file () at ../../gcc-11.3.0/gcc/toplev.c:457 #77 0x019efeba in do_compile () at ../../gcc-11.3.0/gcc/toplev.c:2201 #78 toplev::main (this=3Dthis@entry=3D0x1367feae, argc=3D, argc@entry=3D32, argv=3D) at ../../gcc-11.3.0/gcc/toplev= .c:2340 #79 0x01a1e1a6 in main (argc=3D32, argv=3D0x138a1a48) at ../../gcc-11.3.0/gcc/main.c:39=