From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C7063858D3C; Fri, 4 Feb 2022 16:42:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C7063858D3C From: "wacrenier at labri dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/104385] New: Segmentation fault when using nested dependent tasks Date: Fri, 04 Feb 2022 16:42:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wacrenier at labri dot fr 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone attachments.created Message-ID: 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: Fri, 04 Feb 2022 16:42:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104385 Bug ID: 104385 Summary: Segmentation fault when using nested dependent tasks Product: gcc Version: 11.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: wacrenier at labri dot fr CC: jakub at gcc dot gnu.org Target Milestone: --- Created attachment 52351 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D52351&action=3Dedit simple openmp code that leads to a segfault Hello, The attached code leads to SIGSEV when executing.=20 Best regards, P.A. Wacrenier -------- Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/opt/local/libexec/gcc/x86_64-apple-darwin21/11.2.0/l= to-wrapper Target: x86_64-apple-darwin21 Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_port= s_lang_gcc11/gcc11/work/gcc-11.2.0/configure --prefix=3D/opt/local --build=3Dx86_64-apple-darwin21 --enable-languages=3Dc,c++,objc,obj-c++,lto,fortran,jit --libdir=3D/opt/local/lib/gcc11 --includedir=3D/opt/local/include/gcc11 --infodir=3D/opt/local/share/info --mandir=3D/opt/local/share/man --datarootdir=3D/opt/local/share/gcc-11 --with-local-prefix=3D/opt/local --with-system-zlib --disable-nls --program-suffix=3D-mp-11 --with-gxx-include-dir=3D/opt/local/include/gcc11/c++/ --with-gmp=3D/opt/lo= cal --with-mpfr=3D/opt/local --with-mpc=3D/opt/local --with-isl=3D/opt/local --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=3Dbootstrap-debug --with-bugurl=3Dhttps://trac.macports.org/newticket --enable-host-shared --disable-tls --with-as=3D/opt/local/bin/as --with-ld=3D/opt/local/bin/ld --with-ar=3D/opt/local/bin/ar --with-pkgversion=3D'MacPorts gcc11 11.2.0_3' --with-sysroot=3D/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.2.0 (MacPorts gcc11 11.2.0_3)=20 COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-fopenmp' '-mmacosx-version-min= =3D12.1.0' '-asm_macosx_version_min=3D12.1' '-mtune=3Dcore2' '-dumpdir' 'a-' /opt/local/libexec/gcc/x86_64-apple-darwin21/11.2.0/cc1 -E -quiet -v -D__DYNAMIC__ ici.c -fPIC -mmacosx-version-min=3D12.1.0 -mtune=3Dcore2 -fop= enmp -fpch-preprocess -o a-ici.i ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/opt/local/include" ignoring nonexistent directory "/opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/../../../../../x86_6= 4-apple-darwin21/include" ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/Library/Frameworks" #include "..." search starts here: #include <...> search starts here: /opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/include /opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/include-fixed /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Framew= orks End of search list. COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-fopenmp' '-mmacosx-version-min= =3D12.1.0' '-asm_macosx_version_min=3D12.1' '-mtune=3Dcore2' '-dumpdir' 'a-' /opt/local/libexec/gcc/x86_64-apple-darwin21/11.2.0/cc1 -fpreprocessed a-i= ci.i -fPIC -quiet -dumpdir a- -dumpbase ici.c -dumpbase-ext .c -mmacosx-version-min=3D12.1.0 -mtune=3Dcore2 -version -fopenmp -o a-ici.s GNU C17 (MacPorts gcc11 11.2.0_3) version 11.2.0 (x86_64-apple-darwin21) compiled by GNU C version 11.2.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 GNU C17 (MacPorts gcc11 11.2.0_3) version 11.2.0 (x86_64-apple-darwin21) compiled by GNU C version 11.2.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP GGC heuristics: --param ggc-min-expand=3D100 --param ggc-min-heapsize=3D131= 072 Compiler executable checksum: f32d7bc7d3a774eacf5c9650a419dd5f COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-fopenmp' '-mmacosx-version-min= =3D12.1.0' '-mtune=3Dcore2' '-dumpdir' 'a-' /opt/local/bin/as -arch x86_64 -v -force_cpusubtype_ALL -mmacosx-version-min=3D12.1 -o a-ici.o a-ici.s Apple clang version 13.0.0 (clang-1300.0.29.30) Target: x86_64-apple-darwin21.2.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1as -triple x86_64-apple-macosx12.1.0 -filetype obj -main-file-name a-ici.s -target-cpu penryn -fdebug-compilation-dir /tmp -dwarf-debug-producer "Apple clang vers= ion 13.0.0 (clang-1300.0.29.30)" -dwarf-version=3D4 -mrelocation-model pic --mrelax-relocations -mllvm -disable-aligned-alloc-awareness=3D1 -mllvm -enable-dse-memoryssa=3D0 -o a-ici.o a-ici.s COMPILER_PATH=3D/opt/local/libexec/gcc/x86_64-apple-darwin21/11.2.0/:/opt/l= ocal/libexec/gcc/x86_64-apple-darwin21/11.2.0/:/opt/local/libexec/gcc/x86_6= 4-apple-darwin21/:/opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/:/o= pt/local/lib/gcc11/gcc/x86_64-apple-darwin21/ LIBRARY_PATH=3D/opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/:/opt/= local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/../../../ COLLECT_GCC_OPTIONS=3D'-v' '-save-temps' '-fopenmp' '-mmacosx-version-min= =3D12.1.0' '-mtune=3Dcore2' '-dumpdir' 'a.' /opt/local/libexec/gcc/x86_64-apple-darwin21/11.2.0/collect2 -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/ -dynamic -arch x86_64 -macosx_version_min 12.1.0 -weak_reference_mismatches non-weak -o a.out -L/opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0 -L/opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/../../.. a-ici.o -l= gomp -lSystem -lgcc_ext.10.5 -lgcc -lSystem -no_compact_unwind -v collect2 version 11.2.0 /opt/local/bin/ld -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/ -dynamic -arch x86_64 -macosx_version_min 12.1.0 -weak_reference_mismatches non-weak -o a.out -L/opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0 -L/opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0/../../.. a-ici.o -l= gomp -lSystem -lgcc_ext.10.5 -lgcc -lSystem -no_compact_unwind -v @(#)PROGRAM:ld PROJECT:ld64-711 BUILD 21:57:11 Nov 17 2021 configured to support archs: armv6 armv7 armv7s arm64 arm64e arm64_32 i386 x86_64 x86_64h armv6m armv7k armv7m armv7em Library search paths: /opt/local/lib/gcc11/gcc/x86_64-apple-darwin21/11.2.0 /opt/local/lib/gcc11 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/lib Framework search paths: =20=20=20=20=20=20=20 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/System/Library/Framew= orks/=