Skip to content

TDJSON Crash #7

@digabriel

Description

@digabriel

Hi, Leo. One more time thanks for your awesome work here.
We are having some crashes in TDJSON in production. Maybe you can help me identify the issue.

Here's the stack trace of the crashed thread:

0  TDJSON                         0x106b80290 std::__1::__hash_const_iterator<std::__1::__hash_node<std::__1::__hash_value_type<td::Slice, int>, void*>*> std::__1::__hash_table<std::__1::__hash_value_type<td::Slice, int>, std::__1::__unordered_map_hasher<td::Slice, std::__1::__hash_value_type<td::Slice, int>, td::SliceHash, true>, std::__1::__unordered_map_equal<td::Slice, std::__1::__hash_value_type<td::Slice, int>, std::__1::equal_to<td::Slice>, true>, std::__1::allocator<std::__1::__hash_value_type<td::Slice, int> > >::find<td::Slice>(td::Slice const&) const + 112
1  TDJSON                         0x1074b11f0 td::td_api::tl_constructor_from_string(td::td_api::OptionValue*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 100
2  TDJSON                         0x1074b11f0 td::td_api::tl_constructor_from_string(td::td_api::OptionValue*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) + 100
3  TDJSON                         0x1074df408 std::__1::enable_if<!(std::is_constructible<td::td_api::OptionValue>::value), td::Status>::type td::from_json<td::td_api::OptionValue>(td::tl::unique_ptr<td::td_api::OptionValue>&, td::JsonValue) + 920
4  TDJSON                         0x1074df040 td::td_api::from_json(td::td_api::setOption&, std::__1::vector<std::__1::pair<td::MutableSlice, td::JsonValue>, std::__1::allocator<std::__1::pair<td::MutableSlice, td::JsonValue> > >&) + 136
5  TDJSON                         0x10755aca4 bool td::td_api::downcast_call<std::__1::enable_if<!(std::is_constructible<td::td_api::Function>::value), td::Status>::type td::from_json<td::td_api::Function>(td::tl::unique_ptr<td::td_api::Function>&, td::JsonValue)::'lambda'(td::td_api::Function&)>(td::td_api::Function&, td::td_api::Function const&) + 6564
6  TDJSON                         0x1074a3770 std::__1::enable_if<!(std::is_constructible<td::td_api::Function>::value), td::Status>::type td::from_json<td::td_api::Function>(td::tl::unique_ptr<td::td_api::Function>&, td::JsonValue) + 1040
7  TDJSON                         0x1074a3348 td::td_api::from_json(td::tl::unique_ptr<td::td_api::Function>&, td::JsonValue) + 52
8  TDJSON                         0x107570174 td::to_request(td::Slice) + 904
9  TDJSON                         0x10756fcf0 td::ClientJson::send(td::Slice) + 36
10 TDJSON                         0x10692ca34 $s6TDJSON19td_json_client_send0D07requestySv_SStF + 92
11 TDLib                          0x107f18c30 $s5TDLib12TDJsonClientC4sendyyxKSERzlF + 296
12 TDLib                          0x108033cb4 $s5TDLib11CoordinatorC4sendy10PromiseKit0D0Cy6ResultQzGxAA10TDFunctionRzlFyycfU_ + 244
13 TDLib                          0x107f1eb10 $sIeg_IeyB_TR + 28
14 libdispatch.dylib              0x18697a134 _dispatch_call_block_and_release + 32
15 libdispatch.dylib              0x18697b5ac _dispatch_client_callout + 20
16 libdispatch.dylib              0x186981a64 _dispatch_lane_serial_drain + 568
17 libdispatch.dylib              0x186982498 _dispatch_lane_invoke + 400
18 libdispatch.dylib              0x18698ba5c _dispatch_workloop_worker_thread + 584
19 libsystem_pthread.dylib        0x1869e1718 _pthread_wqthread + 276
20 libsystem_pthread.dylib        0x1869e79c8 start_wqthread + 8

Do you have any idea of what is happening?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions