Windows: AccessDeniedException during `codeql database create` TRAP finalization (`pools/0` move fails)

Đang mở
#19,438 2 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
Đình trệ
Công nghệ
javascript
Lĩnh vực
cli, databases, devtools

Hướng nghiên cứu

Bắt đầu với lệnh codeql database create và bước hoàn tất việc nhập TRAP của lệnh này, sau đó tái hiện lỗi di chuyển pools\0 trên Windows 11 bằng lệnh và các đường dẫn trong báo cáo. Hoàn thành khi cơ sở dữ liệu JavaScript được hoàn tất thành công mà không có AccessDeniedException.

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

Mô tả

Title:
Windows: AccessDeniedException during codeql database create TRAP finalization (pools/0 move fails)

Description:

❗ Summary
On Windows 11, running codeql database create for a JavaScript project fails during TRAP import finalization with an AccessDeniedException. This occurs when attempting to move the final TRAP string pool into pools\0.

This happens even when:

  • Using a short path (e.g. C:\github\glob-ghas)
  • Running in an elevated PowerShell session
  • Closing VS Code and other editors
  • Disabling Windows Defender and indexing
  • Running codeql from CLI (not extension)

💻 Environment

  • OS: Windows 11 Pro (Build 26100+)
  • CodeQL CLI version: 2.21.1
  • Installed at: C:\tools\codeql
  • Language: JavaScript
  • Command:
    codeql database create my-db --language=javascript --source-root=. --overwrite

📄 Observed Output

Finalizing database at C:\github\glob-ghas\my-db.
Running TRAP import for CodeQL database at C:\github\glob-ghas\my-db...
Importing TRAP files
Merging relations
A fatal error occurred: Failed to move pool from C:\github\glob-ghas\my-db\db-javascript\default\strings\0 to C:\github\glob-ghas\my-db\db-javascript\default\pools\0
(eventual cause: AccessDeniedException ...)

🔄 Steps to Reproduce

  1. Create a minimal JS repo under C:\github\glob-ghas
  2. Run the CLI command above
  3. Observe failure during TRAP finalization

✅ What I've Already Tried

  • Using short paths (C:\github)
  • Deleting the target DB folder before each run
  • Disabling antivirus and indexing services
  • Running with --no-autobuild
  • Setting TEMP to C:\codeql-temp
  • Confirmed no VS Code or Language Server processes active

📌 Expected Behavior
The database should finalize cleanly without permission errors, especially in an elevated shell with a clean local path.

🧩 Additional Help
Happy to provide a zipped repro repo with dummy JavaScript files and a test script upon request.

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

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ề CLI

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.