From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 708DE3858C83; Thu, 1 Dec 2022 23:54:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 708DE3858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669938842; bh=2xK4mzhh7Fz0TBSRDzLv0HSK0pdENuNkk/swCm8V8Zc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MVxha24TP5J7d0vUX1RChbQ429TaZSMqx9+Ww0/WmLXdEdxYuul8Rkcz5EcasVz85 ecZPUYX/F7ddPD15qF/J2XEV7SHJlu92q6GgbcTd+39K8BKkZlT3NkAIkQbUtwu8cN 8QR1e+284EUgZVbjrA/zUdpLQdnbV6Q/q0cn1eyI= From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/107874] merge not using all its arguments Date: Thu, 01 Dec 2022 23:54:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: anlauf at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107874 --- Comment #13 from Jerry DeLisle --- A debug session gives: (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. futex_wait (private=3D0, expected=3D2, futex_word=3D0x405950) at ../sysdeps/nptl/futex-internal.h:146 146 int err =3D lll_futex_timed_wait (futex_word, expected, NULL, pri= vate); (gdb) bt #0 futex_wait (private=3D0, expected=3D2, futex_word=3D0x405950) at ../sysdeps/nptl/futex-internal.h:146 #1 __GI___lll_lock_wait (futex=3Dfutex@entry=3D0x405950, private=3D0) at lowlevellock.c:49 #2 0x00007ffff79d1432 in lll_mutex_lock_optimized (mutex=3D0x405950) at pthread_mutex_lock.c:48 #3 ___pthread_mutex_lock (mutex=3D0x405950) at pthread_mutex_lock.c:93 #4 0x00007ffff7e73503 in __gthread_mutex_lock (__mutex=3D0x405950) at ../libgcc/gthr-default.h:749 #5 get_gfc_unit (n=3D6, do_create=3D1) at ../../../trunk/libgfortran/io/un= it.c:395 #6 0x00007ffff7e71b85 in data_transfer_init (dtp=3D0x7fffffffd9d0, read_fl= ag=3D0) at ../../../trunk/libgfortran/io/transfer.c:3007 #7 0x00000000004017dd in testmerge9::tstuff () at merge_1.f90:39 #8 0x000000000040128c in testmerge9 () at merge_1.f90:14 #9 0x000000000040184f in main (argc=3D1, argv=3D0x7fffffffe2c4) at merge_1= .f90:36 #10 0x00007ffff796a510 in __libc_start_call_main ( main=3Dmain@entry=3D0x40181b
, argc=3Dargc@entry=3D1,=20 argv=3Dargv@entry=3D0x7fffffffdfa8) at ../sysdeps/nptl/libc_start_call_main.h:58 #11 0x00007ffff796a5c9 in __libc_start_main_impl (main=3D0x40181b
,=20 argc=3D1, argv=3D0x7fffffffdfa8, init=3D, fini=3D,=20 rtld_fini=3D, stack_end=3D0x7fffffffdf98) at ../csu/libc-start.c:381 I would speculate we are trashing some memory since there is no reason to h= ang in there.=