root-project / root

The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
https://root.cern
Other
2.64k stars 1.26k forks source link

Windows debug builds of root fail. #12738

Open Neumann-A opened 1 year ago

Neumann-A commented 1 year ago

Describe the bug

Build fails due to one of these:

FAILED: io/xml/G__XMLIO.cxx bin/libXMLIO_rdict.pcm bin/libXMLIO.rootmap E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/io/xml/G__XMLIO.cxx E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/libXMLIO_rdict.pcm E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/libXMLIO.rootmap 
cmd.exe /C "cd /D E:\vcpkg_folders\new_master\buildtrees\root\x64-windows-dbg\io\xml && E:\vcpkg_cache\downloads\tools\cmake-3.25.1-windows\cmake-3.25.1-windows-i386\bin\cmake.exe -E env LD_LIBRARY_PATH=E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/lib: ROOTIGNOREPREFIX=1 E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/rootcling.exe -rootbuild -v2 -f G__XMLIO.cxx -s E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/libXMLIO.dll -m libRIO_rdict.pcm -excludePath E:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc -excludePath E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/ginclude -excludePath E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/externals -excludePath E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/builtins -rml libXMLIO.dll -rmf E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/libXMLIO.rootmap -IE:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/include -IE:/vcpkg_folders/new_master/installed/x64-windows/include -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/xml/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/winnt/inc -IE:/vcpkg_folders/new_master/installed/x64-windows/include -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/zstd/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/lz4/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/lzma/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/zip/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/thread/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/textinput/src -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/textinput/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/rint/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/meta/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/gui/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/foundation/res -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/foundation/v7/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/foundation/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/cont/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clingutils/res -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clingutils/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clib/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/base/v7/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/base/inc -IE:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/ginclude -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/io/v7/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/io/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clib/res TBufferXML.h TKeyXML.h TXMLEngine.h TXMLFile.h TXMLPlayer.h TXMLSetup.h E:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/xml/inc/LinkDef.h"

==========================================
=============== STACKTRACE ===============
==========================================

================ Thread 0 ================
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx(1773): TWinNTSystem::DispatchSignals()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx(456): `anonymous namespace'::SigHandler()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx(398): `anonymous namespace'::sighandler()
  ucrtbased!seh_filter_exe()
  D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(304): `__scrt_common_main_seh'::`1'::filt$0()
  VCRUNTIME140D!_C_specific_handler()
  ntdll!_chkstk()
  ntdll!RtlRaiseException()
  ntdll!KiUserExceptionDispatcher()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TStreamerInfoActions.cxx(1817): TStreamerInfoActions::VectorLooper::WriteBasicType<long>()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\inc\TStreamerInfoActions.h(132): TStreamerInfoActions::TConfiguredAction::operator()()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx(3646): TBufferFile::ApplySequence()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TStreamerInfoWriteBuffer.cxx(602): TStreamerInfo::WriteBufferAux<char * *>()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TStreamerInfoActions.cxx(203): TStreamerInfoActions::GenericWriteAction()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\inc\TStreamerInfoActions.h(124): TStreamerInfoActions::TConfiguredAction::operator()()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx(3580): TBufferFile::ApplySequence()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx(3552): TBufferFile::WriteClassBuffer()
  E:\vcpkg_folders\new_master\buildtrees\root\x64-windows-dbg\core\G__Core.cxx(26407): TProtoClass::Streamer()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\meta\src\TClass.cxx(6809): TClass::StreamerTObject()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\meta\src\TClass.cxx(6888): TClass::StreamerDefault()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\meta\inc\TClass.h(612): TClass::Streamer()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx(2557): TBufferFile::WriteObjectClass()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferIO.cxx(520): TBufferIO::WriteObjectAny()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\base\inc\TBuffer.h(403): operator<<<TObject>()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\cont\src\TObjArray.cxx(488): TObjArray::Streamer()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TKey.cxx(250): TKey::TKey()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TFile.cxx(1016): TFile::CreateKey()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TDirectoryFile.cxx(1964): TDirectoryFile::WriteTObject()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\base\src\TObject.cxx(863): TObject::Write()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\cont\src\TCollection.cxx(651): TCollection::Write()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\cont\src\TCollection.cxx(675): TCollection::Write()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\rootpcm\src\rootclingIO.cxx(280): CloseStreamerInfoROOTFile()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx(2625): FinalizeStreamerInfoWriting()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx(2777): GenerateFullDict()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx(4927): RootClingMain()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx(6171): ROOT_rootcling_Driver()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\main\src\rootcling.cxx(44): main()
  D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(79): invoke_main()
  D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288): __scrt_common_main_seh()
  D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(331): __scrt_common_main()
  D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp(17): mainCRTStartup()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 1 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 2 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 3 ================
  ntdll!ZwWaitForWorkViaWorkerFactory()
  ntdll!TpReleaseCleanupGroupMembers()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 4 ================
  ntdll!NtDelayExecution()
  KERNELBASE!SleepEx()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx(4380): TWinNTSystem::TimerThread()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\inc\TWinNTSystem.h(99): TWinNTSystem::ThreadStub()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

================ Thread 5 ================
  win32u!NtUserGetMessage()
  USER32!GetMessageA()
  E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx(500): `anonymous namespace'::GUIThreadMessageProcessingLoop()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlUserThreadStart()

==========================================
============= END STACKTRACE =============
==========================================

PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0.  Program arguments: E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/rootcling.exe -rootbuild -v2 -f G__XMLIO.cxx -s E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/libXMLIO.dll -m libRIO_rdict.pcm -excludePath E:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc -excludePath E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/ginclude -excludePath E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/externals -excludePath E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/builtins -rml libXMLIO.dll -rmf E:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/bin/libXMLIO.rootmap -IE:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/include -IE:/vcpkg_folders/new_master/installed/x64-windows/include -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/xml/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/winnt/inc -IE:/vcpkg_folders/new_master/installed/x64-windows/include -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/zstd/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/lz4/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/lzma/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/zip/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/thread/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/textinput/src -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/textinput/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/rint/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/meta/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/gui/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/foundation/res -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/foundation/v7/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/foundation/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/cont/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clingutils/res -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clingutils/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clib/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/base/v7/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/base/inc -IE:/vcpkg_folders/new_master/buildtrees/root/x64-windows-dbg/ginclude -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/io/v7/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/io/inc -IE:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/core/clib/res TBufferXML.h TKeyXML.h TXMLEngine.h TXMLFile.h TXMLPlayer.h TXMLSetup.h E:/vcpkg_folders/new_master/buildtrees/root/src/57b00fa7ea-10a10c16cc/io/xml/inc/LinkDef.h
 #0 0x00007ffefe214d7b HandleAbort E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\interpreter\llvm\src\lib\Support\Windows\Signals.inc:408:0
 #1 0x00007fff6c0690ed (C:\Windows\SYSTEM32\ucrtbased.dll+0xa90ed)
 #2 0x00007fff6c06ae49 (C:\Windows\SYSTEM32\ucrtbased.dll+0xaae49)
 #3 0x00007fff20c79818 TWinNTSystem::Abort(int) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx:3902:0
 #4 0x00007fff20c7897c TWinNTSystem::DispatchSignals(enum ESignals) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx:1781:0
 #5 0x00007fff20c81f52 `anonymous namespace'::SigHandler E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx:456:0
 #6 0x00007fff20c81d8e `anonymous namespace'::sighandler E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\winnt\src\TWinNTSystem.cxx:398:0
 #7 0x00007fff6c067ade (C:\Windows\SYSTEM32\ucrtbased.dll+0xa7ade)
 #8 0x00007ff6481b6f38 `__scrt_common_main_seh'::`1'::filt$0 D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:304:0
 #9 0x00007fffaa5bc96b (C:\Windows\SYSTEM32\VCRUNTIME140D.dll+0x1c96b)
#10 0x00007fffb6e323df (C:\Windows\SYSTEM32\ntdll.dll+0xa23df)
#11 0x00007fffb6de14a4 (C:\Windows\SYSTEM32\ntdll.dll+0x514a4)
#12 0x00007fffb6e30f0e (C:\Windows\SYSTEM32\ntdll.dll+0xa0f0e)
#13 0x00007fff1ea4c468 TStreamerInfoActions::VectorLooper::WriteBasicType<long>(class TBuffer &, void *, void const *, class TStreamerInfoActions::TLoopConfiguration const *, class TStreamerInfoActions::TConfiguration const *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TStreamerInfoActions.cxx:1817:0
#14 0x00007fff1e866b5c TStreamerInfoActions::TConfiguredAction::operator()(class TBuffer &, void *, void const *, class TStreamerInfoActions::TLoopConfiguration const *) const E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\inc\TStreamerInfoActions.h:132:0
#15 0x00007fff1e8627a1 TBufferFile::ApplySequence(class TStreamerInfoActions::TActionSequence const &, void *, void *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx:3646:0
#16 0x00007fff1eb80c00 TStreamerInfo::WriteBufferAux<char **>(class TBuffer &, char **const &, class TStreamerInfo::TCompInfo *const *const, int, int, int, int, int) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TStreamerInfoWriteBuffer.cxx:602:0
#17 0x00007fff1e9c3612 TStreamerInfoActions::GenericWriteAction(class TBuffer &, void *, class TStreamerInfoActions::TConfiguration const *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TStreamerInfoActions.cxx:203:0
#18 0x00007fff1e866a98 TStreamerInfoActions::TConfiguredAction::operator()(class TBuffer &, void *) const E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\inc\TStreamerInfoActions.h:124:0
#19 0x00007fff1e8622f4 TBufferFile::ApplySequence(class TStreamerInfoActions::TActionSequence const &, void *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx:3580:0
#20 0x00007fff1e862059 TBufferFile::WriteClassBuffer(class TClass const *, void *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx:3552:0
#21 0x00007fff20970626 TProtoClass::Streamer(class TBuffer &) E:\vcpkg_folders\new_master\buildtrees\root\x64-windows-dbg\core\G__Core.cxx:26407:0
#22 0x00007fff20bc0daa TClass::StreamerTObject(class TClass const *, void *, class TBuffer &, class TClass const *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\meta\src\TClass.cxx:6809:0
#23 0x00007fff20bc10bb TClass::StreamerDefault(class TClass const *, void *, class TBuffer &, class TClass const *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\meta\src\TClass.cxx:6888:0
#24 0x00007fff1e867bc2 TClass::Streamer(void *, class TBuffer &, class TClass const *) const E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\meta\inc\TClass.h:612:0
#25 0x00007fff1e858cae TBufferFile::WriteObjectClass(void const *, class TClass const *, bool) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferFile.cxx:2557:0
#26 0x00007fff1e8710c8 TBufferIO::WriteObjectAny(void const *, class TClass const *, bool) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TBufferIO.cxx:520:0
#27 0x00007fff20a770f3 operator<<<class TObject>(class TBuffer &, class TObject const *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\base\inc\TBuffer.h:403:0
#28 0x00007fff20b6766b TObjArray::Streamer(class TBuffer &) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\cont\src\TObjArray.cxx:488:0
#29 0x00007fff1e9771e2 TKey::TKey(class TObject const *, char const *, int, class TDirectory *) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TKey.cxx:250:0
#30 0x00007fff1e924f95 TFile::CreateKey(class TDirectory *, class TObject const *, char const *, int) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TFile.cxx:1016:0
#31 0x00007fff1e90174d TDirectoryFile::WriteTObject(class TObject const *, char const *, char const *, int) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\io\src\TDirectoryFile.cxx:1964:0
#32 0x00007fff20a9f6e1 TObject::Write(char const *, int, int) const E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\base\src\TObject.cxx:863:0
#33 0x00007fff20b5202c TCollection::Write(char const *, int, int) const E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\cont\src\TCollection.cxx:651:0
#34 0x00007fff20b51fe4 TCollection::Write(char const *, int, int) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\cont\src\TCollection.cxx:675:0
#35 0x00007fff1e833985 CloseStreamerInfoROOTFile E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\io\rootpcm\src\rootclingIO.cxx:280:0
#36 0x00007ffef58854c4 FinalizeStreamerInfoWriting(class cling::Interpreter &, bool) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx:2625:0
#37 0x00007ffef5885fc6 GenerateFullDict(class std::basic_ostream<char, struct std::char_traits<char>> &, class cling::Interpreter &, class RScanner &, class std::list<class ROOT::TMetaUtils::RConstructorType, class std::allocator<class ROOT::TMetaUtils::RConstructorType>> const &, bool, bool, bool) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx:2777:0
#38 0x00007ffef5895255 RootClingMain(int, char **, bool) E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx:4927:0
#39 0x00007ffef58759d9 ROOT_rootcling_Driver E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\core\dictgen\src\rootcling_impl.cxx:6171:0
#40 0x00007ff6481b2635 main E:\vcpkg_folders\new_master\buildtrees\root\src\57b00fa7ea-10a10c16cc\main\src\rootcling.cxx:44:0
#41 0x00007ff6481b2ae9 invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:79:0
#42 0x00007ff6481b298e __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
#43 0x00007ff6481b284e __scrt_common_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331:0
#44 0x00007ff6481b2b7e mainCRTStartup D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_main.cpp:17:0
#45 0x00007fffb4f47604 (C:\Windows\System32\KERNEL32.DLL+0x17604)
#46 0x00007fffb6de26a1 (C:\Windows\SYSTEM32\ntdll.dll+0x526a1)

Expected behavior

Build succeeds

To Reproduce

(if you know how to use vcpkg & git) checkout https://github.com/microsoft/vcpkg/pull/31161 bootstrap vcpkg vcpkg install root

Setup

  1. Ref: 6438fdb78a7d0cc06e2f3dd2dd5bf057b00fa7ea
  2. Windows 10; VS 17.5.4

Additional context

I tried debugging the problem and the only thing I found is that in io\io\src\TStreamerInfoWriteBuffer.cxx: the call proxy->GetFunctionCreateIterators(/*read = */ kFALSE)(obj, &begin, &end, proxy); returns a start iterator which is higher then the end iterator leading later to a read access violation when trying to (infinitely) iterate over it. So I assume obj is somehow bogus but without knowing what that actually should be further steps back are not possible., The error is reproducible but seems to occur at different times of execution if retried (number of breakpoint hits vary). The release build however seems fine. If you need a full configure/build log I can provide it.

bellenot commented 1 year ago

I will try to reproduce the issue. In the meantime, if you want to try something on your side, and if you need a full Debug build (i.e. with all external dependencies also built in Debug mode), make sure to enable the winrtdebug option (-Dwinrtdebug=ON) to link everything with the Debug runtime libraries, or build everything in RelWithDebInfo mode.

Neumann-A commented 1 year ago

The portfile has

    OPTIONS_RELEASE
        "-Dwinrtdebug=off"
    OPTIONS_DEBUG
        "-Dwinrtdebug=on"

according to the debug configure log that setting is working:

System          Windows-10.0.20348
Processor       16 core AMD EPYC 7763 64-Core Processor  (AMD64)
Build type      Debug
Install path    D:/packages/root_x64-windows/debug
Compiler        MSVC 19.35.32217.1
Compiler flags:
C               -nologo -ID:/buildtrees/root/src/4777595a60-bb02050ae7.clean/build/win -FIw32pragma.h -FIsehmap.h -MDd -EHsc- -W3 -D_WIN32 -wd4267 -D_WIN64 -DNOMINMAX  -Od -Z7
C++             -nologo -ID:/buildtrees/root/src/4777595a60-bb02050ae7.clean/build/win -FIw32pragma.h -FIsehmap.h -Zc:__cplusplus -std:c++17 -MDd -GR -EHsc- -W3 -wd4141 -wd4291 -wd4244 -wd4049 -wd4146 -wd4250 -wd4624 -D_WIN32 -wd4267 -D_WIN64 -D_XKEYCHECK_H -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING -D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING  -Od -Z7
Linker flags:
Executable      /machine:x64
Module          /machine:x64 -ignore:4049,4206,4217,4221 -incremental:no
Shared          /machine:x64 -ignore:4049,4206,4217,4221 -incremental:no

-- Enabled support for:  asimage builtin_clang builtin_cling builtin_llvm builtin_openui5 builtin_unuran clad dataframe exceptions fftw3 fitsio gdml http imt mathmore mlp minuit2 odbc opengl roofit webgui root7 rpath shared tmva tmva-cpu spectrum unuran winrtdebug

(I am a bit salty that root nukes CMAKE_<LANG>_FLAGS but that is another issue, first solve the build itself) Checking the build log only shows path to external libs which start with installed\x64-windows\debug\lib so linking with the wrong CRT is not the case. vcpkg also enforces consistent CRT linkage.

bellenot commented 1 year ago

OK, thanks, I'll investigate

bellenot commented 1 year ago

Out of curiosity, can you try with -DLLVM_BUILD_TYPE=Debug ?

Neumann-A commented 1 year ago

Out of curiosity, can you try with -DLLVM_BUILD_TYPE=Debug ?

Doesn't change anything. Same Error.

bellenot commented 1 year ago

OK, thanks

bellenot commented 1 year ago

OK, so I can reproduce the problem with the Debug runtime libraries. Investigating...

bellenot commented 1 year ago

So for information, it fails in Debug mode with Debug runtime libraries on x64, even bare ROOT with -Dminimal=ON, but works fine on x86 in Debug mode with Debug runtime libraries. Investigating

bellenot commented 1 year ago

Let's see if @pcanal can take a look...

bellenot commented 1 year ago

So I was hoping that the upgrade to LLVM16 would fix the issue, but this is unfortunately not the case. Then I'll need to debug this with @pcanal