Debian Bug report logs - #1099046
openMM: internal compiler error: in vect_get_vec_defs_for_operand, at tree-vect-stmts.cc:1509

version graph

Package: g++-12; Maintainer for g++-12 is Debian GCC Maintainers <[email protected]>; Source for g++-12 is src:gcc-12 (PTS, buildd, popcon).

Reported by: Tru Huynh <[email protected]>

Date: Thu, 27 Feb 2025 16:03:03 UTC

Severity: normal

Found in version gcc-12/12.2.0-14

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#1099046: Acknowledgement (openMM: internal compiler error: in vect_get_vec_defs_for_operand, at tree-vect-stmts.cc:1509)
Reply-To: Tru Huynh <[email protected]>, [email protected]
Resent-From: Tru Huynh <[email protected]>
Resent-To: [email protected]
Resent-CC: Debian GCC Maintainers <[email protected]>
X-Loop: [email protected]
Resent-Date: Thu, 27 Feb 2025 17:33:02 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 1099046
X-Debian-PR-Package: g++-12
X-Debian-PR-Keywords: 
References: <174066969714.909091.15200325363996329330.reportbug@T7875-3mnvf64-10g.sillage> <[email protected]> <174066969714.909091.15200325363996329330.reportbug@T7875-3mnvf64-10g.sillage>
X-Debian-PR-Source: gcc-12
Received: via spool by [email protected] id=B1099046.17406774273767520
          (code B ref 1099046); Thu, 27 Feb 2025 17:33:02 +0000
Received: (at 1099046) by bugs.debian.org; 27 Feb 2025 17:30:27 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
	(2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-7.2 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HAS_BUG_NUMBER,
	RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,WEIRD_PORT
	autolearn=ham autolearn_force=no
	version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 90; hammy, 149; neutral, 82; spammy,
	1. spammytokens:0.987-1--roux hammytokens:0.000-+--fPIC,
	0.000-+--cmakefiles, 0.000-+--CMakeFiles, 0.000-+--H*u:1.5.21,
	0.000-+--H*UA:1.5.21
Received: from mx2.pasteur.fr ([157.99.45.70]:42072)
	by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_SECP256R1__RSA_SHA512__AES_256_GCM:256)
	(Exim 4.94.2)
	(envelope-from <[email protected]>)
	id 1tnhiL-00Fo62-Mz
	for [email protected]; Thu, 27 Feb 2025 17:30:27 +0000
Received: from pps.filterd (proofpoint01.pasteur.fr [127.0.0.1])
	by proofpoint01.pasteur.fr (8.18.1.2/8.18.1.2) with ESMTP id 51RFsaGt197267
	for <[email protected]>; Thu, 27 Feb 2025 18:05:56 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pasteur.fr;
 h=content-transfer-encoding : content-type : date : from : in-reply-to :
 message-id : mime-version : references : subject : to; s=DKIM2020;
 bh=2zgYjijJkg+z6NK+oRhSBvotF7jSrumFQPwVj7SzA4o=;
 b=WIQy4vDEY8UwbXprkKSHCgu4PYLUAf7XN7HZJWiSKCz9KOYseTChiDAapU6Wpku8nBNJ
 8E+MJg6PEiFMdFu8CHsO06wG8uqi9NXGdC7+axsyocEmxh4Ix1xQSq9g8zzAUl6zFibp
 LRv/6e1u8mlQ9kWUpR+95TdfU4jK9v5yl0eJ0rcsm+oSJRlPNIKVsDARWX8vIwY2iZRm
 IYGUo1ibBgFfSmLV7bH55mrUi8DT7zEx+eBqqxbuOK8cNXfvumGOHSjmvEdQzNwT9CX5
 A3WuMgNw2/haGEEzZQ2SodNW1pi8VyxfpCCRaOvJP16DcCApp6Shm5rszz5kb7nrhNPR WA== 
Received: from sillage.bis.pasteur.fr (adc-default-pool-117.it.pasteur.fr [157.99.101.117])
	by proofpoint01.pasteur.fr (PPS) with ESMTP id 452t0krp61-1
	for <[email protected]>; Thu, 27 Feb 2025 18:05:56 +0100
Received: by sillage.bis.pasteur.fr (Postfix, from userid 2765)
	id 1B94132585FE; Thu, 27 Feb 2025 18:05:56 +0100 (CET)
Date: Thu, 27 Feb 2025 18:05:56 +0100
From: Tru Huynh <[email protected]>
To: [email protected]
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Proofpoint-ORIG-GUID: vDUhrGsVIUeWXkT2xBu-V5GGpzl7jIg8
X-Proofpoint-GUID: vDUhrGsVIUeWXkT2xBu-V5GGpzl7jIg8
X-Proofpoint-Virus-Version: vendor=baseguard
 engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34
 definitions=2025-02-27_06,2025-02-27_01,2024-11-22_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0
 mlxlogscore=750 adultscore=0 malwarescore=0 lowpriorityscore=0 bulkscore=0
 clxscore=1011 impostorscore=0 phishscore=0 suspectscore=0 spamscore=0
 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2502100000
 definitions=main-2502270127
X-Greylist: delayed 1467 seconds by postgrey-1.36 at buxtehude; Thu, 27 Feb 2025 17:30:25 UTC
ccSEyJuT.out is attached generated after adding "-freport-bug"
to build/platforms/cuda/sharedTarget/CMakeFiles/OpenMMCUDA.dir/flags.make file

initial value:
CXX_FLAGS = -I/d12/shared/cuda/12.8.0_570.86.10/include -O2 -DNDEBUG -fPIC -msse2 -DLEPTON_USE_JIT -DOPENMM_COMMON_BUILDING_SHARED_LIBRARY -std=gnu++11 
changed into:
CXX_FLAGS = -I/d12/shared/cuda/12.8.0_570.86.10/include -O2 -DNDEBUG -fPIC -msse2 -DLEPTON_USE_JIT -DOPENMM_COMMON_BUILDING_SHARED_LIBRARY -std=gnu++11 -freport-bug

```
during GIMPLE pass: vect
/jade/home/tru/build/openmm/openmm-8.2.0/platforms/common/src/CommonKernels.cpp: In member function ‘void OpenMM::Common
CalcGayBerneForceKernel::sortAtoms()’:
/jade/home/tru/build/openmm/openmm-8.2.0/platforms/common/src/CommonKernels.cpp:5375:6: internal compiler error: in vect
_get_vec_defs_for_operand, at tree-vect-stmts.cc:1509
 5375 | void CommonCalcGayBerneForceKernel::sortAtoms() {
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x1afaeb6 internal_error(char const*, ...)
        ???:0
0x69ec5a fancy_abort(char const*, int, char const*)
        ???:0
0x1abda20 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*)
        ???:0
0xfa2dbd vect_transform_loop(_loop_vec_info*, gimple*)
        ???:0
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccSEyJuT.out file, please attach this to your bugreport.
```

Other data points:
1) lowering the optimisation from -O3 to -O2 avoids the internal compiler error
2) using gcc-11/g++-11 (with -O3) instead og gcc-12/g++-12 does not cause any issue.

Best regards

Tru

-- 
Tru Huynh (PhD) | mailto:[email protected] | tel +33 1 45 68 87 37
https://research.pasteur.fr/en/team/structural-bioinformatics/
https://research.pasteur.fr/en/team/computational-structural-biology/
Institut Pasteur, 25-28 rue du Docteur Roux, 75724 Paris CEDEX 15 France  

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 17:46:13 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.