github / github/codeql-cli-binaries

Xcode iOS simulator build fails when codeql is injected

Đang mở
#147 14 bình luận 0 reaction 0 người được giao Xem trên GitHub
CLI
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1k
Fork
184
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When CodeQL is enabled for our repo here https://github.com/xamarin/ios-sim-sharp, the build crashes, with codeql is on the call stack.

See the attached: [failure.log](https://github.com/github/codeql-cli-binaries/files/10198085/failure.log)

The error below also appears in the log:
```
2022-11-18T14:31:19.4879860Z dyld: dyld cache load error: shared cache file open() failed
2022-11-18T14:31:19.4882650Z dyld: could not load inserted library '/Users/runner/work/_temp/codeql3000/github/codeql/tools/osx64/libtrace.dylib' because no suitable image found. Did find:
2022-11-18T14:31:19.4885600Z /Users/runner/work/_temp/codeql3000/github/codeql/tools/osx64/libtrace.dylib: mach-o, but not built for platform iOS-sim
```

[success.log](https://github.com/github/codeql-cli-binaries/files/10198084/success.log) is the same build, without codeql enabled, so that you can compare.

Also attached is [codeql-init.log](https://github.com/github/codeql-cli-binaries/files/10198083/codeql-init.log), with the output of the CodeQL init task.

I tested with the latest codeql, 2.11.4, and the error still happens.

Thanks for investigating & hopefully fixing or suggesting a workaround.

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

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

Hướng nghiên cứu

Bắt đầu bằng cách so sánh failure.log và success.log đính kèm, sau đó xem lại codeql-init.log và đầu ra injection của CodeQL cho bản build iOS simulator. Truy vết nơi libtrace.dylib được chèn vào và xác minh rằng thư viện được inject không được tải vào tiến trình iOS-sim; công việc được coi là hoàn tất khi bản build có bật CodeQL hoàn tất thành công.

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

Đánh giá

Công nghệ
ios
Lĩnh vực
build-system, devtools, mobile-dev
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

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.