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

Crash at LogManagerImpl

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

Maintainer thường phản hồi trong vòng 5 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
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
cpp

Hướng nghiên cứu

Bắt đầu với cấp phát được báo cáo trong LogManagerImpl.cpp tại dòng 330, sau đó lần theo đường dẫn khởi tạo qua LogManagerFactory.cpp và LogManagerProvider.cpp. Sử dụng stack trace bad_alloc của Windows và quá trình khởi tạo dependency TelemetrySystem làm các điểm bắt đầu điều tra. Hoàn tất nghĩa là xác định được nguyên nhân crash và ghi lại tài liệu hoặc triển khai một cách để ngăn chặn hoặc phát hiện lỗi này trước khi telemetry bắt đầu.

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

Mô tả

bug

Describe your environment.
SDK: 3.8.32.1
Platform: Windows
OS Version: 10.0.19045.4894
Build String : 10.0.19041.4894 (vb_release.191206-1406)
Build Stamp : 191206-1406
Build Flavor : Free
Build Day : 12/06/2019
OS Version : 10.0.19045.4894
LCID : Portuguese (Brazil)

Steps to reproduce.

We are getting random crashes the updater process. It is not reliable.

What is the expected behavior?
Not a crash.

What is the actual behavior?
A crash

Additional context.
This has started to happen since a couple weeks.

The StackTrace is as follows:

KERNELBASE!RaiseException |   | 0x0000000000000069 |   |   |   | xcpt.c |   | 938
1 | VCRUNTIME140!_CxxThrowException |   | 0x0000000000000090 |   |   |   | throw.cpp |   | 75
2 | ms_teamsupdate!__scrt_throw_std_bad_alloc |   | 0x000000000000001F |   |   |   | throw_bad_alloc.cpp |   | 35
3 | ms_teamsupdate!operator new |   | 0x0000000000000035 |   |   |   | new_scalar.cpp |   | 48
4 | ms_teamsupdate!Microsoft::Applications::Events::LogManagerImpl::LogManagerImpl |   | 0x0000000000001325 |   |   |   | LogManagerImpl.cpp |   | 330
5 | ms_teamsupdate!Microsoft::Applications::Events::LogManagerImpl::LogManagerImpl |   | 0x0000000000000011 |   |   |   | LogManagerImpl.cpp |   | 158
6 | ms_teamsupdate!Microsoft::Applications::Events::LogManagerFactory::Create |   | 0x000000000000004B |   |   |   | LogManagerFactory.cpp |   | 36
7 | ms_teamsupdate!Microsoft::Applications::Events::LogManagerFactory::lease |   | 0x00000000000000F0 |   |   |   | LogManagerFactory.cpp |   | 124
8 | ms_teamsupdate!Microsoft::Applications::Events::LogManagerProvider::Get |   | 0x0000000000000020 |   |   |   | LogManagerProvider.cpp |   | 17
KERNELBASE!RaiseException 0x0000000000000069 xcpt.c 938
1 VCRUNTIME140!_CxxThrowException 0x0000000000000090 throw.cpp 75
2 ms_teamsupdate!__scrt_throw_std_bad_alloc 0x000000000000001F throw_bad_alloc.cpp 35
3 ms_teamsupdate!operator new 0x0000000000000035 new_scalar.cpp 48
4 ms_teamsupdate!Microsoft::Applications::Events::LogManagerImpl::LogManagerImpl 0x0000000000001325 LogManagerImpl.cpp 330
5 ms_teamsupdate!Microsoft::Applications::Events::LogManagerImpl::LogManagerImpl 0x0000000000000011 LogManagerImpl.cpp 158
6 ms_teamsupdate!Microsoft::Applications::Events::LogManagerFactory::Create 0x000000000000004B LogManagerFactory.cpp 36
7 ms_teamsupdate!Microsoft::Applications::Events::LogManagerFactory::lease 0x00000000000000F0 LogManagerFactory.cpp 124
8 ms_teamsupdate!Microsoft::Applications::Events::LogManagerProvider::Get 0x0000000000000020 LogManagerProvider.cpp 17

image

Considering the line that crashes:

        m_system.reset(new TelemetrySystem(*this, *m_config, *m_offlineStorage, *m_httpClient,

We suspect one problem with the dependencies injected into the TelemetrySystem that leads to a crash. Would you folks have any idea of what could be happening here?

We have not changed anything on this part of our code so we suspect possible changes in the system that is running the application leading to the crashes. We would like to know what could be a possible solution in our end to detect before we launch the telemetry, configuring it to avoid crashes.

Ngôn ngữ chính
C
Star
102
Fork
67
Merge trung bình
5 ngày 5 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 microsoft/cpp_client_telemetry

Tất cả issue của microsoft/cpp_client_telemetry

Issue tương tự

Thêm issue về C

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.