Azure DevOps Ubuntu 24.04 DB Creation for C#
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Beginne damit, die Azure DevOps-Pipeline auf dem Ubuntu-24.04-Image zu reproduzieren, und untersuche den gemeldeten Fehler bei dotnet --info. Verfolge den C#-Extraktionspfad durch codeql/csharp/tools/autobuild.sh, und vergleiche die installierte .NET CLI mit dem, was der Autobuilder sieht. Als erledigt gilt die Aufgabe, wenn die C#-Datenbank erfolgreich erstellt wird, ohne den Fehler exit-134.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Using an Azure DevOps Ubuntu 24.04 image as ubuntu-latest
Downloaded CodeQL command-line toolchain release 2.25.0.
Creating CodeQL DB for 'csharp' in '/home/vsts/work/1/a/codeqldb/csharp' with args: --build-mode none
Receiving the following error message in the pipeline:
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /home/vsts/work/_temp/c3d589b8-77a0-43fe-b1a2-aefbb9428de0.sh
→ Creating CodeQL DB for 'csharp' in '/home/vsts/work/1/a/codeqldb/csharp' with args: --build-mode none
Initializing database at /home/vsts/work/1/a/codeqldb/csharp.
Running build command: []
Running command in /home/vsts/work/1/s/network: [/home/vsts/work/1/s/codeql/csharp/tools/autobuild.sh]
[2026-03-23 09:09:16] [build-stdout] CodeQL C# autobuilder
[2026-03-23 09:09:16] [build-stdout] Working directory: /home/vsts/work/1/s/network
[2026-03-23 09:09:16] [build-stdout] [001] Extracting C# with build-mode set to 'none'
[2026-03-23 09:09:16] [build-stdout] [001] Finding files in /home/vsts/work/1/s/network...
[2026-03-23 09:09:16] [build-stdout] [001] Found 766 files in /home/vsts/work/1/s/network
[2026-03-23 09:09:16] [build-stdout] [001] Found 766 small non-binary files in /home/vsts/work/1/s/network.
[2026-03-23 09:09:16] [build-stdout] [001] Found 426 source files in /home/vsts/work/1/s/network.
[2026-03-23 09:09:16] [build-stdout] [001] Found 0 global.json files in /home/vsts/work/1/s/network.
[2026-03-23 09:09:16] [build-stdout] [001] No Dependabot proxy credentials are configured.
[2026-03-23 09:09:16] [build-stdout] [001] Using .NET CLI executable: 'dotnet'
[2026-03-23 09:09:16] [build-stdout] [001] Running 'dotnet --info'
[2026-03-23 09:09:19] [build-stderr] [001] Error: Missing dotnet CLI
[2026-03-23 09:09:19] [build-stderr] Unhandled exception. System.Exception: dotnet --info failed with exit code 139.
[2026-03-23 09:09:19] [build-stderr] at Semmle.Extraction.CSharp.DependencyFetching.DotNet.Info()
[2026-03-23 09:09:19] [build-stderr] at Semmle.Extraction.CSharp.DependencyFetching.DotNet..ctor(IDotNetCliInvoker dotnetCliInvoker, ILogger logger, Boolean runDotnetInfo, TemporaryDirectory tempWorkingDirectory)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Extraction.CSharp.DependencyFetching.DotNet..ctor(ILogger logger, String dotNetPath, TemporaryDirectory tempWorkingDirectory, DependabotProxy dependabotProxy)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Extraction.CSharp.DependencyFetching.DotNet.Make(ILogger logger, String dotNetPath, TemporaryDirectory tempWorkingDirectory, DependabotProxy dependabotProxy)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Extraction.CSharp.DependencyFetching.DependencyManager..ctor(String srcDir, ILogger logger)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Extraction.CSharp.Standalone.Extractor.Run(Options options)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Extraction.CSharp.Standalone.Program.Main(String[] args)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Autobuild.CSharp.StandaloneBuildRule.<>c.b__0_1(IBuildActions _)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Util.BuildScript.ReturnBuildCommand.Run(IBuildActions actions, Action2 startCallback, Action3 exitCallBack, BuildOutputHandler onOutput, BuildOutputHandler onError)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Util.BuildScript.BindBuildScript.Run(IBuildActions actions, Action2 startCallback, Action3 exitCallBack, BuildOutputHandler onOutput, BuildOutputHandler onError)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Util.BuildScript.BindBuildScript.Run(IBuildActions actions, Action2 startCallback, Action3 exitCallBack, BuildOutputHandler onOutput, BuildOutputHandler onError)
[2026-03-23 09:09:19] [build-stderr] at Semmle.Autobuild.Shared.Autobuilder`1.AttemptBuild()
[2026-03-23 09:09:19] [build-stderr] at Semmle.Autobuild.CSharp.Program.Main()
[2026-03-23 09:09:21] [build-stderr] Aborted (core dumped)
[2026-03-23 09:09:21] [ERROR] Spawned process exited abnormally (code 134; tried to run: [/home/vsts/work/1/s/codeql/csharp/tools/autobuild.sh])
A fatal error occurred: Exit status 134 from command: [/home/vsts/work/1/s/codeql/csharp/tools/autobuild.sh]
##[error]Bash exited with code '2'.
Finishing: codeql: database-build-csharp
We have already installed dotnet on the image, I can't work out why our pipelines are failing?
- Vorherrschende Sprache
- CodeQL
- Sterne
- 10.1k
- Forks
- 2.1k
- Ø Merge
- 2 T. 16 Std.
- Gemergte PRs (30 T.)
- 143
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/codeql
-
agentic-workflows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
false-positive javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
-
C#: cs/simplifiable-boolean-expression false positive on Nullable<bool> compared with a literal Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
false-positive
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
NVIDIA/gpu-operator#2955 ·
-
agentic-workflows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
-
automated issue report
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
dsx-ai-factory/infra-controller#6694 ·
-
bug build
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
facebookincubator/velox#19143 ·