Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Azure DevOps Ubuntu 24.04 DB Creation for C#

Đang mở
#21,562 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
azure, csharp, ubuntu
Lĩnh vực
ci-cd, devops, security

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện pipeline Azure DevOps trên image Ubuntu 24.04 và kiểm tra lỗi dotnet --info đã được báo cáo. Theo dõi đường dẫn trích xuất C# qua codeql/csharp/tools/autobuild.sh, so sánh .NET CLI đã cài đặt với những gì autobuilder nhìn thấy. Hoàn tất khi cơ sở dữ liệu C# được tạo thành công mà không gặp lỗi exit-134.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

question

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?

Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
143

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/codeql

Tất cả issue của github/codeql

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.