Duplicate sequence point definitions when generating a PDB for real assemblies
Maintainer thường phản hồi trong vòng 1 ngày
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
- 58/100
Hướng nghiên cứu
Bắt đầu tại ICSharpCode.Decompiler/DebugInfo/PortablePdbWriter.cs, ở PortablePdbWriter.ProcessMethod, và tái hiện vấn đề bằng ilspycmd -genpdb AutoMapper.dll. Đọc PdbSequencePoints.CheckWellFormed và các fixture trong TestCases/PdbGen để hiểu invariant hiện có. Công việc được xem là hoàn tất khi các phương thức được tái hiện không còn kích hoạt assertion, quá trình tạo PDB thành công trong các bản build Debug và các offset của sequence-point theo từng phương thức vẫn tăng строго.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Debug.Assert(false, "Duplicate sequence point definition detected: ...") in PortablePdbWriter.ProcessMethod (ICSharpCode.Decompiler/DebugInfo/PortablePdbWriter.cs line 325) fires when generating a PDB for real-world assemblies. It is a known limitation - it is why the Members PDB fixture is [Ignore]d - but it has no issue tracking it and no reproduction on record.
In a Debug build of ilspycmd the assertion aborts the process, so no PDB is produced at all. In Release the assertion is compiled out and the PDB is written with whatever the duplicate produced. EncodeSequencePoints delta-encodes offsets, and a record whose deltas are all zero is the encoding for "the document changed here", so a duplicate offset that reaches the writer aliases into a document record rather than a sequence point.
Reproduction
AutoMapper 16.2.0, lib/net10.0/AutoMapper.dll:
ilspycmd -genpdb AutoMapper.dll
Five methods trip it, all local functions of ProjectionBuilder.CreateProjection:
06000861 <>c__DisplayClass11_0.<CreateProjection>g__ShouldExpand|5
06000863 <>c__DisplayClass11_0.<CreateProjection>g__ResolveSource|7
06000860 <>c__DisplayClass11_0.<CreateProjection>g__TryProjectMember|3
060003C0 ProjectionBuilder.<CreateProjection>g__NullSubstitute|11_10
060003C1 ProjectionBuilder.<CreateProjection>g__GetProjectionMapper|11_8
Reproduces with or without the reference closure resolved. A minimal case built from local functions in the same shapes (expression-bodied, static, capturing) does not reproduce it, so the trigger is narrower than "local functions".
Note
The test suite has an oracle-free check for exactly this - PdbSequencePoints.CheckWellFormed, which requires per-method offsets to be strictly increasing - but it only runs over the hand-written TestCases/PdbGen fixtures.
Posted by an AI agent (Claude) on Siegfried's behalf.
- Ngôn ngữ chính
- C#
- Star
- 27.1k
- Fork
- 3.8k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 44
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của icsharpcode/ILSpy
-
AvaloniaEdit Issues to dateĐang mởExternal UI
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 75/100
icsharpcode/ILSpy#4284 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
icsharpcode/ILSpy#4357 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Misdecompilation of a lazy initialization patternCó thể đã có người làm @siegfriedpammer đã nhận 5 ngày trước. Đang mởBug Decompiler
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
icsharpcode/ILSpy#4349 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
icsharpcode/ILSpy#4343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
AI
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 55/100
icsharpcode/ILSpy#4300 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của icsharpcode/ILSpy
Issue tương tự
-
DXF with empty names failsĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug python
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
ilia-sokolov/OfficeAgent.NET#89 ·
Maintainer thường phản hồi trong vòng 13 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
juandresrodca/AdminForge#66 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
umbraco/Umbraco.Automate#612 ·
Maintainer thường phản hồi trong vòng 1 ngày