JVM SIGSEGV crashes after upgrade from 1.61.1 to 1.62.0
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/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ệ
- java
- Lĩnh vực
- devtools, performance
Hướng nghiên cứu
Bắt đầu bằng cách xem xét logs.txt đính kèm và các điểm vào crash được nêu trong báo cáo, đặc biệt là JavaProfiler.dump0, AgentTaskScheduler, DefaultConfigurationPoller và đường dẫn shaded okhttp. So sánh các thay đổi giữa 1.61.1 và 1.62.0, sau đó tái hiện lỗi trên Java 25; hoàn tất nghĩa là đã xác định được hồi quy và xác nhận rằng JVM không còn bị crash.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Tracer Version(s)
1.62.0
Java Version(s)
25
JVM Vendor
Eclipse Adoptium / Temurin
Bug Report
After upgrading dd-trace-java from 1.61.1 to 1.62.0, the JVM started crashing with SIGSEGV (and one UNKNOWN signal) on multiple tasks.
Reverting to 1.61.1 with no other changes made the crashes stop.
Crash tracking is enabled, and we have collected several distinct crash signatures. They cluster into three groups:
-
SIGSEGV inside the Datadog profiler native dump path:
Profiler::updateThreadName(jvmtiEnv*, JNIEnv, _jobject, bool)
-> jvmti_Deallocate
called from JavaProfiler.dump0 via the profiling system's periodic
snapshot task (AgentTaskScheduler$PeriodicTask). -
SIGSEGV in JIT inline-cache / wrong-method handling:
SharedRuntime::find_callee_info_helper
-> handle_ic_miss_helper / handle_wrong_method
Observed on multiple call sites, including:- the agent's own shaded okhttp during remote-config polling
(datadog.okhttp3...Http1Codec$FixedLengthSink.close, called from
DefaultConfigurationPoller.fetchConfiguration), seen repeatedly - a Micrometer StepMeterRegistry rollover scheduled task
(io.micrometer.core.instrument.step.StepTuple2.rollCount)
- the agent's own shaded okhttp during remote-config polling
-
JVM-internal crashes around the code cache / GC:
- nmethod::is_unloading -> DependencyContext::clean_unloading_dependents
on a G1 code-cache unloading worker - G1CodeRootSet::add(nmethod*) -> nmethod::oops_do -> register_nmethod
on a C1 CompileBroker thread installing a freshly compiled nmethod
(crashed inside concurrentHashTable.inline.hpp:684)
- nmethod::is_unloading -> DependencyContext::clean_unloading_dependents
All crashes occur either on a Datadog-managed thread or in code installed by the agent (its shaded okhttp). The stacks above come from dd-trace-java's own crashtracking output, which was enabled at the time.
hs_err_pid*.log files are not available: this is running on AWS ECS, and the crashing tasks were recycled before we could retrieve them.
Workaround: pinning back to 1.61.1 removes the crashes entirely.
Expected Behavior
Upgrading dd-trace-java from 1.61.1 to 1.62.0 should not cause JVM crashes.
Reproduction Code
No response
- Ngôn ngữ chính
- Java
- Star
- 737
- Fork
- 361
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 173
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 DataDog/dd-trace-java
-
type: feature request
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
DataDog/dd-trace-java#10245 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 62/100
DataDog/dd-trace-java#12608 ·
-
type: bug report
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
DataDog/dd-trace-java#12597 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
DataDog/dd-trace-java#12540 · 4 bình luận · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
DataDog/dd-trace-java#12480 ·
Tất cả issue của DataDog/dd-trace-java
Issue tương tự
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·
-
litertlm-android AAR ships no consumer ProGuard rules → "mid == null" SIGABRT in minified apps Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Add canonical URLs and a sitemap Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
apache/rocketmq-dashboard#5064 ·