Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Uncaught Windows exception (EXCEPTION_STACK_OVERFLOW) #15885

Open
eelbaz1 opened this issue Mar 12, 2024 · 7 comments
Open

ERROR: Uncaught Windows exception (EXCEPTION_STACK_OVERFLOW) #15885

eelbaz1 opened this issue Mar 12, 2024 · 7 comments
Labels
C++ question Further information is requested

Comments

@eelbaz1
Copy link

eelbaz1 commented Mar 12, 2024

fail during database create command

codeql database create -l=cpp -s=X:\MyProject -c=X:\MyProject\Build.cmd X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4

observed in versions: 2.15.4, 2.16.3

despite the error, the command exit with code 0

what could be the cause of this issue? the error repeat itself 3 times on different files

build-tracer.log

[E 14:25:56 50512] Command: C:\Users\Admin\Downloads\2.15.4\codeql\cpp\tools\win64\extractor.exe --mimic @-

[E 14:25:56 50512] Processed command line: C:\Users\Admin\Downloads\2.15.4\codeql\cpp\tools\win64\extractor.exe --trapfolder X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\trap\cpp --src_archive X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\src --mimic_config X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\working/compiler_mimic_cache/064b825a4b18 --object_filename Win2022Release\x64\ --import_dir Win2022Release\x64 -w --error_limit 1000 --disable_system_macros --variadic_macros --microsoft --c++ --diag_warning narrowing_conversion --microsoft_version 1938 --target win64 -D_MSC_FULL_VER=193833130 -D_MSC_BUILD=0 -D_M_AMD64=100 -D_M_X64=100 -D_WIN64 -D_MT -IWin2022Release\x64\ -IX:\MyProject\\core\common\user\MpCommon -IX:\MyProject\core\common\kernel\KmCommon\KmCommon\\inc -IX:\MyProject\\inc -D_WIN64 -D_AMD64_ -DAMD64 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DWINNT=1 -DNTDDI_VERSION=0xA000010 -DDRIVER -DDEPRECATE_DDK_FUNCTIONS -DUNICODE -D_UNICODE -DNDEBUG -DEVENT_TRACING "-DIB_COMPANYNAME=\"\"\"MY_COMPANY\"\"\"" "-DIB_PRODUCTNAME=\"\"\"OpenFabrics\x20Windows\"\"\"" -DVER_FILEMAJORVERSION=24 -DVER_FILEMINORVERSION=4 -DVER_FILEREV=11111 "-DVER_PROVIDER=\"\"\"MY_COMPANY\"\"\"" -DRECOMMENDED_FW_VERSION_MINOR=0 -DRECOMMENDED_FW_VERSION_REVISION=0 -DWINIB -DKMDF_VERSION_MAJOR=1 -DKMDF_VERSION_MINOR=13 --pack_alignment 8 --default_calling_convention __stdcall --preinclude X:\MyProject\core\common\kernel\KmCommon\KmCommon\\inc\KmWarning.h -D_KERNEL_MODE=1 --microsoft_pch_semantics --use_pch Win2022Release\x64\\stdafx.pch.semmle --microsoft_pch_filename stdafx.h --no_wchar_t_keyword --new_for_init --no_rtti "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\km\crt" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\km" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\shared" "-IJ:\Program Files\Windows Kits\10\Include\wdf\kmdf\1.13" "-IJ:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IJ:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\atlmfc\include" -IVCInstallDir_170_is_not_definedAuxiliary\VS\include "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\ucrt" -IVCInstallDir_170_is_not_definedAuxiliary\VS\UnitTest\include "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\um" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\winrt" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\cppwinrt" "-IJ:\Program Files\Windows Kits\NETFXSDK\4.8.1\Include\um" -- MarshimDatapath.cpp
[E 14:25:56 50512] Not using TRAP cache
[E 14:25:56 50512] TRAP cache miss
[E 14:25:56 50512] Starting compilation TRAP X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\trap\cpp/compilations/14/18040720_0.trap.br
[E 14:25:56 50512] Archiving X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\src/X_/MyProject/Marshim/MarshimBus/MarshimDatapath.cpp
"MarshimDatapath.cpp": using precompiled header file "Win2022Release\x64\\stdafx.pch.semmle"
[E 14:25:56 50512] Already archived X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\src/X_/MyProject/Marshim/MarshimBus/MarshimDatapath.cpp
[E 14:25:56 50512] Archiving X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\src/X_/MyProject/Marshim/MarshimBus/Win2022Release/x64/MarshimDatapath.tmh
[E 14:25:56 50512] Already archived X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/evntrace.h
[E 14:25:56 50512] Already archived X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/guiddef.h
[E 14:25:56 50512] Already archived X:\MyProject\codeqlDB\01aef961-9707-40cb-b5ea-111d8acfb7b4\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/wmistr.h
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c4eb38 in find_source_start_pos with kind 79 (ms-if-exists).
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c4f068 in find_source_start_pos with kind 79 (ms-if-exists).
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c4f138 in find_source_start_pos with kind 79 (ms-if-exists).
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c4f780 in find_source_start_pos with kind 79 (ms-if-exists).
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c4f9f8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c50158 in find_source_start_pos with kind 79 (ms-if-exists).
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c50228 in find_source_start_pos with kind 79 (ms-if-exists).
[E 14:25:56 50512] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c50988 in find_source_start_pos with kind 79 (ms-if-exists).
ERROR: Uncaught Windows exception (EXCEPTION_STACK_OVERFLOW). Exception code: 0xc00000fd
CodeQL C++ extractor: Backtrace:
[0x00007FF762B6FC03] [E 14:26:06 17004] CodeQL C/C++ Extractor 2.15.4

dataset-import.log

[2024-03-12 14:27:52] [ERROR] 18040720_0.trap.br, 1: java.io.IOException: Brotli stream decoding failed
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:167)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:489)
                              com.semmle.inmemory.trap.TRAPLinker$TrapLinkDirectiveScanner.scanTuplesAndLabels(TRAPLinker.java:336)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:410)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:396)
                              com.semmle.inmemory.trap.TRAPLinker.lambda$getTasks$4(TRAPLinker.java:234)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              
                               ... caused by:
                              
                              org.brotli.dec.BrotliRuntimeException: Corrupted Huffman code histogram
                              org.brotli.dec.Decode.readComplexHuffmanCode(Decode.java:591)
                              org.brotli.dec.Decode.readHuffmanCode(Decode.java:613)
                              org.brotli.dec.Decode.decodeHuffmanTreeGroup(Decode.java:945)
                              org.brotli.dec.Decode.readMetablockHuffmanCodesAndContextMaps(Decode.java:864)
                              org.brotli.dec.Decode.decompress(Decode.java:1110)
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:162)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:489)
                              com.semmle.inmemory.trap.TRAPLinker$TrapLinkDirectiveScanner.scanTuplesAndLabels(TRAPLinker.java:336)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:410)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:396)
                              com.semmle.inmemory.trap.TRAPLinker.lambda$getTasks$4(TRAPLinker.java:234)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              at (start of line)

...

[2024-03-12 14:29:41] Importing 18040720_0.trap.br for no link target (45779 of 46244)
[2024-03-12 14:29:41] [ERROR] dataset import> 18040720_0.trap.br for no link target, 1: java.io.IOException: Brotli stream decoding failed
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:167)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:489)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:410)
                              com.semmle.inmemory.trap.ImportTasksProcessor.process(ImportTasksProcessor.java:234)
                              com.semmle.inmemory.trap.ImportTasksProcessor.lambda$importTrap$1(ImportTasksProcessor.java:154)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              
                               ... caused by:
                              
                              org.brotli.dec.BrotliRuntimeException: Corrupted Huffman code histogram
                              org.brotli.dec.Decode.readComplexHuffmanCode(Decode.java:591)
                              org.brotli.dec.Decode.readHuffmanCode(Decode.java:613)
                              org.brotli.dec.Decode.decodeHuffmanTreeGroup(Decode.java:945)
                              org.brotli.dec.Decode.readMetablockHuffmanCodesAndContextMaps(Decode.java:864)
                              org.brotli.dec.Decode.decompress(Decode.java:1110)
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:162)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:489)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:410)
                              com.semmle.inmemory.trap.ImportTasksProcessor.process(ImportTasksProcessor.java:234)
                              com.semmle.inmemory.trap.ImportTasksProcessor.lambda$importTrap$1(ImportTasksProcessor.java:154)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              at (start of line)
@eelbaz1 eelbaz1 added the question Further information is requested label Mar 12, 2024
@jketema jketema added the C++ label Mar 12, 2024
@jketema
Copy link
Contributor

jketema commented Mar 12, 2024

Hi @eelbaz1,

despite the error, the command exit with code 0

That's correct, because it's failing on a single file, and not on the complete project, we consider this non-fatal.

what could be the cause of this issue? the error repeat itself 3 times on different files

Either the source file is very big, makes very heavy use of templates, or it's a bug in the C/C++ extractor. Would you be able to try with CodeQL 2.16.4 to see if the problem persists? That version contains a number of improvements/bug fixes in the C/C++ extractor code.

@eelbaz1
Copy link
Author

eelbaz1 commented Mar 12, 2024

Hi @jketema,

Thanks for the response!
the source files can be considered exceptionally big (40KB+), is there anything we can do about it? (beside editing them)
i tested on CodeQL 2.16.4 as well and the results looks about the same: (same files - same error)

build-tracer.log

[E 17:27:16 37060] Processed command line: C:\Users\Admin\Downloads\2.16.4\codeql\cpp\tools\win64\extractor.exe --trapfolder X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\trap\cpp --src_archive X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src --object_filename Win2022Release\x64\ --import_dir Win2022Release\x64 -w --error_limit 1000 --disable_system_macros --variadic_macros --incognito --microsoft --c++ --diag_warning narrowing_conversion --microsoft_version 1938 --target win64 -D_MSC_FULL_VER=193833130 -D_MSC_BUILD=0 -D_M_AMD64=100 -D_M_X64=100 -D_WIN64 -D_MT -IWin2022Release\x64\ -IX:\MyProject\\core\common\user\MpCommon -IX:\MyProject\core\common\kernel\KmCommon\KmCommon\\inc -IX:\MyProject\\inc -D_WIN64 -D_AMD64_ -DAMD64 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DWINNT=1 -DNTDDI_VERSION=0xA000010 -DDRIVER -DDEPRECATE_DDK_FUNCTIONS -DUNICODE -D_UNICODE -DNDEBUG -DEVENT_TRACING "-DIB_COMPANYNAME=\"\"\"MY_COMPANY\"\"\"" "-DIB_PRODUCTNAME=\"\"\"OpenFabrics\x20Windows\"\"\"" -DVER_FILEMAJORVERSION=24 -DVER_FILEMINORVERSION=4 -DVER_FILEREV=11111 "-DVER_PROVIDER=\"\"\"MY_COMPANY\"\"\"" -DRECOMMENDED_FW_VERSION_MINOR=0 -DRECOMMENDED_FW_VERSION_REVISION=0 -DWINIB -DKMDF_VERSION_MAJOR=1 -DKMDF_VERSION_MINOR=13 --pack_alignment 8 --default_calling_convention __stdcall --preinclude X:\MyProject\core\common\kernel\KmCommon\KmCommon\\inc\KmWarning.h -D_KERNEL_MODE=1 --microsoft_pch_semantics --use_pch Win2022Release\x64\\stdafx.pch.semmle --microsoft_pch_filename stdafx.h --no_wchar_t_keyword --new_for_init --no_rtti "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\km\crt" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\km" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\shared" "-IJ:\Program Files\Windows Kits\10\Include\wdf\kmdf\1.13" "-IJ:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IJ:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\atlmfc\include" -IVCInstallDir_170_is_not_definedAuxiliary\VS\include "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\ucrt" -IVCInstallDir_170_is_not_definedAuxiliary\VS\UnitTest\include "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\um" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\winrt" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\cppwinrt" "-IJ:\Program Files\Windows Kits\NETFXSDK\4.8.1\Include\um" -- MarshimDatapath.cpp
[E 17:27:16 37060] Not using TRAP cache
[E 17:27:16 37060] TRAP cache miss
[E 17:27:16 37060] Starting compilation TRAP X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\trap\cpp/compilations/46/7815111_0.trap.br
[E 17:27:16 37060] Archiving X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/X_/MyProject/Marshim/MarshimBus/MarshimDatapath.cpp
"MarshimDatapath.cpp": using precompiled header file "Win2022Release\x64\\stdafx.pch.semmle"
[E 17:27:16 37060] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/X_/MyProject/Marshim/MarshimBus/MarshimDatapath.cpp
[E 17:27:16 37060] Archiving X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/X_/MyProject/Marshim/MarshimBus/Win2022Release/x64/MarshimDatapath.tmh
[E 17:27:16 37060] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/evntrace.h
[E 17:27:16 37060] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/guiddef.h
[E 17:27:16 37060] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/wmistr.h
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c255e8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c25b18 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c25be8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c26230 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c264a8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c26c08 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c26cd8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:17 37060] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c27438 in find_source_start_pos with kind 79 (ms-if-exists).
ERROR: Uncaught Windows exception (EXCEPTION_STACK_OVERFLOW). Exception code: 0xc00000fd
CodeQL C++ extractor: Backtrace:
[0x00007FF6BEB54703] [E 17:27:26 34592] CodeQL C/C++ Extractor 2.16.4

database-create.log

[2024-03-12 17:29:43] Scanning 7815111_0.trap.br (46372 of 46545)
[2024-03-12 17:29:43] [ERROR] 7815111_0.trap.br, 1: java.io.IOException: Brotli stream decoding failed
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:167)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:493)
                              com.semmle.inmemory.trap.TRAPLinker$TrapLinkDirectiveScanner.scanTuplesAndLabels(TRAPLinker.java:311)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:414)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:400)
                              com.semmle.inmemory.trap.TRAPLinker.lambda$getTasks$2(TRAPLinker.java:215)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              
                               ... caused by:
                              
                              org.brotli.dec.BrotliRuntimeException: Corrupted Huffman code histogram
                              org.brotli.dec.Decode.readComplexHuffmanCode(Decode.java:591)
                              org.brotli.dec.Decode.readHuffmanCode(Decode.java:613)
                              org.brotli.dec.Decode.decodeHuffmanTreeGroup(Decode.java:945)
                              org.brotli.dec.Decode.readMetablockHuffmanCodesAndContextMaps(Decode.java:864)
                              org.brotli.dec.Decode.decompress(Decode.java:1110)
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:162)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:493)
                              com.semmle.inmemory.trap.TRAPLinker$TrapLinkDirectiveScanner.scanTuplesAndLabels(TRAPLinker.java:311)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:414)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:400)
                              com.semmle.inmemory.trap.TRAPLinker.lambda$getTasks$2(TRAPLinker.java:215)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              at (start of line)

...


[2024-03-12 17:31:33] Importing 7815111_0.trap.br for no link target (46372 of 46545)
[2024-03-12 17:31:33] [ERROR] dataset import> 7815111_0.trap.br for no link target, 1: java.io.IOException: Brotli stream decoding failed
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:167)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:493)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:414)
                              com.semmle.inmemory.trap.ImportTasksProcessor.process(ImportTasksProcessor.java:234)
                              com.semmle.inmemory.trap.ImportTasksProcessor.lambda$importTrap$1(ImportTasksProcessor.java:154)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              
                               ... caused by:
                              
                              org.brotli.dec.BrotliRuntimeException: Corrupted Huffman code histogram
                              org.brotli.dec.Decode.readComplexHuffmanCode(Decode.java:591)
                              org.brotli.dec.Decode.readHuffmanCode(Decode.java:613)
                              org.brotli.dec.Decode.decodeHuffmanTreeGroup(Decode.java:945)
                              org.brotli.dec.Decode.readMetablockHuffmanCodesAndContextMaps(Decode.java:864)
                              org.brotli.dec.Decode.decompress(Decode.java:1110)
                              org.brotli.dec.BrotliInputStream.read(BrotliInputStream.java:162)
                              com.semmle.inmemory.trap.TrapInputStream.read(TrapInputStream.java:60)
                              com.semmle.inmemory.trap.TrapScanner.fill(TrapScanner.java:451)
                              com.semmle.inmemory.trap.TrapScanner.ensureNext(TrapScanner.java:428)
                              com.semmle.inmemory.trap.TrapScanner.nextToken(TrapScanner.java:61)
                              com.semmle.inmemory.trap.TRAPReader.scanTuplesAndLabels(TRAPReader.java:493)
                              com.semmle.inmemory.trap.TRAPReader.importTuples(TRAPReader.java:414)
                              com.semmle.inmemory.trap.ImportTasksProcessor.process(ImportTasksProcessor.java:234)
                              com.semmle.inmemory.trap.ImportTasksProcessor.lambda$importTrap$1(ImportTasksProcessor.java:154)
                              com.semmle.util.concurrent.FutureUtils.lambda$mapAsync_$8(FutureUtils.java:161)
                              java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                              java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                              java.base/java.lang.Thread.run(Unknown Source)
                              at (start of line)

@jketema
Copy link
Contributor

jketema commented Mar 12, 2024

Thanks for testing with 2.16.4.

the source files can be considered exceptionally big (40KB+), is there anything we can do about it? (beside editing them)

That's not exceptionally big, so there must be something else going on.

Looking at the latest log you shared. Am I correct that the line immediately after

CodeQL C++ extractor: Backtrace:

is

[0x00007FF6BEB54703] [E 17:27:26 34592] CodeQL C/C++ Extractor 2.16.4

? Or is there something in between?

@eelbaz1
Copy link
Author

eelbaz1 commented Mar 12, 2024

nothing in between for the first two errors:

[E 17:27:07 50172] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c27438 in find_source_start_pos with kind 79 (ms-if-exists).
ERROR: Uncaught Windows exception (EXCEPTION_STACK_OVERFLOW). Exception code: 0xc00000fd
CodeQL C++ extractor: Backtrace:
[0x00007FF6BEB54703] [E 17:27:16 37060] CodeQL C/C++ Extractor 2.16.4

[E 17:27:16 37060] Current directory: X:\MyProject\Marshim\MarshimBus

the third error looks like this:

[E 17:27:26 34592] Processed command line: C:\Users\Admin\Downloads\2.16.4\codeql\cpp\tools\win64\extractor.exe --trapfolder X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\trap\cpp --src_archive X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src --object_filename Win2022Release\x64\ --import_dir Win2022Release\x64 -w --error_limit 1000 --disable_system_macros --variadic_macros --incognito --microsoft --c++ --diag_warning narrowing_conversion --microsoft_version 1938 --target win64 -D_MSC_FULL_VER=193833130 -D_MSC_BUILD=0 -D_M_AMD64=100 -D_M_X64=100 -D_WIN64 -D_MT -IWin2022Release\x64\ -IX:\MyProject\\core\common\user\MpCommon -IX:\MyProject\core\common\kernel\KmCommon\KmCommon\\inc -IX:\MyProject\\inc -D_WIN64 -D_AMD64_ -DAMD64 -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DWINNT=1 -DNTDDI_VERSION=0xA000010 -DDRIVER -DDEPRECATE_DDK_FUNCTIONS -DUNICODE -D_UNICODE -DNDEBUG -DEVENT_TRACING "-DIB_COMPANYNAME=\"\"\"MY_COMPANY\"\"\"" "-DIB_PRODUCTNAME=\"\"\"OpenFabrics\x20Windows\"\"\"" -DVER_FILEMAJORVERSION=24 -DVER_FILEMINORVERSION=4 -DVER_FILEREV=11111 "-DVER_PROVIDER=\"\"\"MY_COMPANY\"\"\"" -DRECOMMENDED_FW_VERSION_MINOR=0 -DRECOMMENDED_FW_VERSION_REVISION=0 -DWINIB -DKMDF_VERSION_MAJOR=1 -DKMDF_VERSION_MINOR=13 --pack_alignment 8 --default_calling_convention __stdcall --preinclude X:\MyProject\core\common\kernel\KmCommon\KmCommon\\inc\KmWarning.h -D_KERNEL_MODE=1 --microsoft_pch_semantics --use_pch Win2022Release\x64\\stdafx.pch.semmle --microsoft_pch_filename stdafx.h --no_wchar_t_keyword --new_for_init --no_rtti "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\km\crt" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\km" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\shared" "-IJ:\Program Files\Windows Kits\10\Include\wdf\kmdf\1.13" "-IJ:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\include" "-IJ:\Program Files\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.38.33130\atlmfc\include" -IVCInstallDir_170_is_not_definedAuxiliary\VS\include "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\ucrt" -IVCInstallDir_170_is_not_definedAuxiliary\VS\UnitTest\include "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\um" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\winrt" "-IJ:\Program Files\Windows Kits\10\Include\10.0.26074.0\cppwinrt" "-IJ:\Program Files\Windows Kits\NETFXSDK\4.8.1\Include\um" -- MarshimDatapathLiveFish.cpp
[E 17:27:26 34592] Not using TRAP cache
[E 17:27:26 34592] TRAP cache miss
[E 17:27:26 34592] Starting compilation TRAP X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\trap\cpp/compilations/20/21524033_0.trap.br
[E 17:27:26 34592] Archiving X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/X_/MyProject/Marshim/MarshimBus/MarshimDatapathLiveFish.cpp
"MarshimDatapathLiveFish.cpp": using precompiled header file "Win2022Release\x64\\stdafx.pch.semmle"
[E 17:27:26 34592] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/X_/MyProject/Marshim/MarshimBus/MarshimDatapathLiveFish.cpp
[E 17:27:26 34592] Archiving X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/X_/MyProject/Marshim/MarshimBus/Win2022Release/x64/MarshimDatapathLiveFish.tmh
[E 17:27:26 34592] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/evntrace.h
[E 17:27:26 34592] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/guiddef.h
[E 17:27:26 34592] Already archived X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\src/J_/Program Files/Windows Kits/10/Include/10.0.26074.0/shared/wmistr.h
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c255e8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c25b18 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c25be8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c26230 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c264a8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c26c08 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c26cd8 in find_source_start_pos with kind 79 (ms-if-exists).
[E 17:27:26 34592] Warning[extractor-c++]: In find_source_start_pos: Unexpected entry 6bb07c27438 in find_source_start_pos with kind 79 (ms-if-exists).
ERROR: Uncaught Windows exception (EXCEPTION_STACK_OVERFLOW). Exception code: 0xc00000fd
CodeQL C++ extractor: Backtrace:
[0x00007FF6BEB54703] claration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In add_constructor_init: Unexpected dynamic init kind 7.
[E 17:27:00 21388] Warning[extractor-c++]: In add_constructor_init: Unexpected dynamic init kind 7.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In add_constructor_init: Unexpected dynamic init kind 7.
[E 17:27:00 21388] Warning[extractor-c++]: In add_constructor_init: Unexpected dynamic init kind 7.
[E 17:27:00 21388] Warning[extractor-c++]: In add_constructor_init: Unexpected dynamic init kind 7.
[E 17:27:00 21388] Warning[extractor-c++]: In add_constructor_init: Unexpected dynamic init kind 7.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Warning[extractor-c++]: In index_stmk_decl: No source sequence entry for declaration statement.
[E 17:27:00 21388] Wrote 426 files to X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\trap\cpp/tarballs/X_/MyProject/NEXUS/Net/Net_ArpCache.cpp.e724c869_0.trap.tar.br
262 errors detected in the compilation of "..\Net\Net_arpcache.cpp".
[E 17:27:00 21388] Finished compilation TRAP X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\trap\cpp/compilations/19/25889447_0.trap.br
[E 17:27:00 21388] Marking C compilation as happened.
[E 17:27:00 21388] Setting tag c-compilation-happened
[E 17:27:00 21388] Starting from CODEQL_TRACER_DB_ID BA0F61E60000984C_0000000000000001
[E 17:27:00 21388] Locking DB X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\working/tags.db
[E 17:27:00 21388] Locked DB X:\MyProject\codeqlDB\6162a100-e08c-4af6-8e26-94c23b6014a7\working/tags.db
[E 17:27:00 21388] Set tag for BA0F61E60000984C_0000000000000001
[E 17:27:00 21388] Set tag for 5C506C5A0000C158_0000000000000001
[E 17:27:00 21388] Set tag for 96B298070000BC30_0000000000000001
[E 17:27:00 21388] Set tag for 889E7F940000B6A0_0000000000000001
[E 17:27:00 21388] Set tag for 8645C4660000CDA4_0000000000000001
[E 17:27:00 21388] Set tag for 27817DF60000B5D8_0000000000000001
[E 17:27:00 21388] Set tag for 136C587E00004624_0000000000000001
[E 17:27:00 21388] Unlocking DB
[E 17:27:00 21388] Unlocked DB
[E 17:27:00 21388] Warning[extractor-c++]: In main: Extractor exiting with code 1
[E 17:27:01 50044] CodeQL C/C++ Extractor 2.16.4

[E 17:27:01 50044] Current directory: X:\MyProject\NEXUS\lib_math_net

@jketema
Copy link
Contributor

jketema commented Mar 12, 2024

Thanks. That unfortunately does not contain a lot of information (which can happen). Would it be possible for you to share the code on which this is happening? It will basically be impossible to debug this otherwise.

@eelbaz1
Copy link
Author

eelbaz1 commented Mar 12, 2024

Thanks for the help! but i cannot share the source code currently

@jketema
Copy link
Contributor

jketema commented Mar 12, 2024

If you want to help debug this further, one thing could do is the run of the source files with this problem through the compiler's preprocessor to see if the problem still occurs. If is does, you could use creduce to create a much smaller file that exhibits the same problem and which is possibly shareable. Unfortunately, creduce is a bit cumbersome to setup on Windows, so I full understand if you don't want to go that route.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants