You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I open the issue here because this occurs on my Windows machine, but not on the Ubuntu WSL. As they don't provide a precompiled Windows binary, I think the problem is from the building system of conda-forge.
Reproduction:
Install cling from conda-forge
Open a cmd and start cling
int a = 1 (no semicolon)
Expected Behavior:
It prints (int) 1.
Actual Behavior:
It crashes with errors as below.
In file included from input_line_4:1:
In file included from C:\ProgramData\Miniconda3\Library\include\cling/Interpreter/RuntimePrintValue.h:17:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\memory:15:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xmemory:16:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xutility:15:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:138:9: error: expected member name or ';' after declaration specifiers
!conjunction_v<_Is_implicitly_default_constructible<_Uty1>, _Is_implicitly_default_constructible<_Uty2>>)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:138:9: error: expected ')'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:137:23: note: to match this '('
constexpr explicit(
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:219:24: error: expected member name or ';' after declaration specifiers
constexpr explicit(!conjunction_v<is_convertible<const _Other1&, _Ty1>, is_convertible<const _Other2&, _Ty2>>)
~~~~~~~~~~~~~~~~~~ ^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:219:24: error: expected ')'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\utility:219:23: note: to match this '('
constexpr explicit(!conjunction_v<is_convertible<const _Other1&, _Ty1>, is_convertible<const _Other2&, _Ty2>>)
^
In file included from input_line_4:1:
In file included from C:\ProgramData\Miniconda3\Library\include\cling/Interpreter/RuntimePrintValue.h:17:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\memory:15:
In file included from C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xmemory:16:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xutility:73:31: error: '_To' does not refer to a value
return __builtin_bit_cast(_To, _Val);
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\xutility:63:17: note: declared here
template <class _To, class _From,
^
In file included from input_line_4:1:
In file included from C:\ProgramData\Miniconda3\Library\include\cling/Interpreter/RuntimePrintValue.h:19:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:288:9: error: expected member name or ';' after declaration specifiers
!conjunction_v<_Is_implicitly_default_constructible<_This2>, _Is_implicitly_default_constructible<_Rest>...>)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:288:9: error: expected ')'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:287:23: note: to match this '('
constexpr explicit(
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:366:5: error: non-static data member cannot be constexpr; did you intend to make it const?
constexpr explicit(_Tuple_conditional_explicit_v<tuple, const _Other&...>)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:366:24: error: member '_Tuple_conditional_explicit_v' declared as a template
constexpr explicit(_Tuple_conditional_explicit_v<tuple, const _Other&...>)
^
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30037\include\tuple:366:79: error: expected ';' at end of declaration list
constexpr explicit(_Tuple_conditional_explicit_v<tuple, const _Other&...>)
^
Wrote crash dump file "C:\Users\liurui\AppData\Local\Temp\cling.exe-1efcda.dmp"
0x00007FF6CAB05D2E (0x00000160612FB1C3 0x0000000000000000 0x000000022D58ED00 0x0000016063DE3B20), ?getQualifiedNameAsString@NamedDecl@clang@@QEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ() + 0x21CBE bytes(s)
0x00007FF6C9C1EEC6 (0x0000000000000008 0x000000022D58EE00 0x000000022D58EDA8 0x0000016063B14FA0), ?MaybeRemoveDeclFromModule@DeclUnloader@cling@@QEBAXAEAVGlobalDecl@clang@@@Z() + 0x5706 bytes(s)
0x00007FF6C9C219BE (0x0000000000000000 0x0000016063D702A0 0x0000016063D702A0 0x000000022D58EEF0), ?MaybeRemoveDeclFromModule@DeclUnloader@cling@@QEBAXAEAVGlobalDecl@clang@@@Z() + 0x81FE bytes(s)
0x00007FF6C9C24C66 (0x0000016063D702A0 0x000001600038C719 0x0000016063D702A0 0x0000000000000000), ?VisitFunctionDecl@DeclUnloader@cling@@QEAA_NPEAVFunctionDecl@clang@@@Z() + 0x96 bytes(s)
0x00007FF6C9C7F517 (0x000000022D58EFA8 0x0000000000000000 0x0000000000000001 0x00000000FFFFFFFF), ?unloadDeclarations@TransactionUnloader@cling@@AEAA_NPEAVTransaction@2@AEAVDeclUnloader@2@@Z() + 0x127 bytes(s)
0x00007FF6C9C7F0DE (0x000000022D58EFA8 0x0000016063262A90 0x0000000200000004 0x0000000000000000), ?RevertTransaction@TransactionUnloader@cling@@QEAA_NPEAVTransaction@2@@Z() + 0x2BE bytes(s)
0x00007FF6C9C646A9 (0x0000000000000000 0x000001606127C320 0x0000016061233B90 0x0000016063262A90), ?unload@Interpreter@cling@@QEAAXAEAVTransaction@2@@Z() + 0x279 bytes(s)
0x00007FF6C9C57607 (0x000000022D58F0C0 0x0000000000000000 0x0000016061233B90 0x0000000000000000), ?commitTransaction@IncrementalParser@cling@@QEAAXAEAV?$PointerIntPair@PEAVTransaction@cling@@$01W4EParseResult@IncrementalParser@2@V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@U?$PointerIntPairInfo@PEAVTransaction@cling@@$01V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@@6@@llvm@@_N@Z() + 0x157 bytes(s)
0x00007FF6C9C55312 (0x000000022D58F158 0x000000022D58F120 0x000000022D58FC10 0x00007FF6CC00F8BF), ?Compile@IncrementalParser@cling@@QEAA?AV?$PointerIntPair@PEAVTransaction@cling@@$01W4EParseResult@IncrementalParser@2@V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@U?$PointerIntPairInfo@PEAVTransaction@cling@@$01V?$PointerLikeTypeTraits@PEAVTransaction@cling@@@llvm@@@6@@llvm@@VStringRef@4@AEBVCompilationOptions@2@@Z() + 0xC2 bytes(s)
0x00007FF6C9C5BF77 (0x0000000000000004 0x000000022D58FC10 0x000000022D58F400 0x0000000000000000), ?DeclareInternal@Interpreter@cling@@AEBA?AW4CompilationResult@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBVCompilationOptions@2@PEAPEAVTransaction@2@@Z() + 0x77 bytes(s)
0x00007FF6C9C608B7 (0xFFFFFFFF2D58E280 0x0000016062E17FF0 0x0000000000000000 0x00000160633B1000), ?declare@Interpreter@cling@@QEAA?AW4CompilationResult@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEAPEAVTransaction@2@@Z() + 0xD7 bytes(s)
0x00007FF6C9C896AB (0x00000160612FB2F0 0x000000022D58F400 0x000000022D58F400 0x000000022D58F1E9), ?printValueInternal@valuePrinterInternal@cling@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBVValue@2@@Z() + 0xAB bytes(s)
0x00007FF6C9C81EF1 (0x0000000000000001 0x000000022D58F380 0x0000000000000001 0x00000160633B1000), ?print@Value@cling@@QEBAXAEAVraw_ostream@llvm@@_N@Z() + 0x51 bytes(s)
0x00007FF6C9C815C0 (0x0000016062E17FF0 0x0000000000000000 0x000000022D58FC10 0x00007FF6C9C5C14C), ?setValueNoAlloc@internal@runtime@cling@@YAXPEAX00D_K@Z() + 0x60 bytes(s)
0x00000160633B107A (0x0000000000000000 0x000000022D58FC10 0x00007FF6C9C5C14C 0x0000000000000001) <unknown module>
0x0000016062E17FF0 (0x000000022D58FC10 0x00007FF6C9C5C14C 0x0000000000000001 0x00000160612FB2F0) <unknown module>
Note:
If the statement does not print a value, like int a = 1;, then there's no problem.
If the value is printed using C++ functions, like printf, then it can print without any issue.
Issue:
cling
crashes when it tries to print a value.I open the issue here because this occurs on my Windows machine, but not on the Ubuntu WSL. As they don't provide a precompiled Windows binary, I think the problem is from the building system of conda-forge.
Reproduction:
cling
fromconda-forge
cling
int a = 1
(no semicolon)Expected Behavior:
It prints
(int) 1
.Actual Behavior:
It crashes with errors as below.
Note:
If the statement does not print a value, like
int a = 1;
, then there's no problem.If the value is printed using C++ functions, like
printf
, then it can print without any issue.Environment (
conda list
):Windows:
Ubuntu WSL:
Details about
conda
and system (conda info
):Windows:
Ubuntu WSL:
The text was updated successfully, but these errors were encountered: