Doris-Breakwater commented on issue #71019: URL: https://github.com/apache/doris/issues/71019#issuecomment-7157403045
**Triage.** Keep this open as a one-off BE crash pending a faulting stack. The report records a `SIGSEGV` with a null fault address after FE shutdown while no query was running. The handler-only stack leaves the faulting instruction and RPC implementation unknown. With the same BE executable in a fresh process, the monitored FE stop/restart and TLS close probes completed without a crash and the PME suites passed. The trigger and any link to TLS or Iceberg PME remain unverified. **What the reported revisions show** - **Outbound BE → FE.** Periodic report workers run independently of queries. `MasterServerClient::report` calls the FE through a cached Thrift client and can reopen it after a transport error, closing and replacing the old connection. Thrift surfaces write errors as transport exceptions and can log errors during TLS shutdown. The warnings on the report threads are consistent with a failed outbound RPC and subsequent cleanup. A stack from the faulting worker is needed to link the two. [Report worker](https://github.com/apache/doris/blob/0d16233c2c975ade321ce7676ed611c7121f1b8e/be/src/agent/task_worker_pool.cpp#L752-L785), [report retry](https://github.com/apache/doris/blob/0d16233c2c975ade321ce7676ed611c7121f1b8e/be/src/agent/utils.cpp#L117-L163), [Thrift TLS writes](https://github.com/apache/thrift/blob/v0.24.0/lib/cpp/src/thrift/transport/TSSLSocket.cpp#L508-L545), [Thrift TLS shutdown](https://github.com/apache/thrift/blob/v0.24.0/lib/cpp/src/thrift/transport/TSSLSocket.cpp#L 364-L421). - **Inbound FE → BE.** In the upstream BE build at `0d16233`, the backend and heartbeat Thrift starters use the `THREADED` default, which creates one worker per connection. The FE revision has a separate `THREAD_POOL` server mode. Please confirm which component was configured for thread-pool mode and whether the executable used the upstream BE starters. On an ordinary Thrift disconnect, `TConnectedClient` deletes the connection context and closes the transports. bRPC uses a separate listener and worker path, so the worker name and listener matter before attributing this to Thrift cleanup. [BE starters](https://github.com/apache/doris/blob/0d16233c2c975ade321ce7676ed611c7121f1b8e/be/src/service/server/oss/be_server_starter_factory.cpp#L202-L256), [BE constructor default](https://github.com/apache/doris/blob/0d16233c2c975ade321ce7676ed611c7121f1b8e/be/src/util/thrift_server.h#L70-L88), [FE server modes](https://github.com/apache/doris/blob/9cbe2ad053921814b6e2b8de15f3a5604c8a9ec1/ fe/fe-core/src/main/java/org/apache/doris/common/ThriftServer.java#L140-L171), [Thrift cleanup](https://github.com/apache/thrift/blob/v0.24.0/lib/cpp/src/thrift/server/TConnectedClient.cpp#L50-L118). **Most useful evidence on recurrence** 1. Capture a core or stop the BE in a debugger on the first `SIGSEGV` before the failure handler runs. Preserve the matching BE binary and debug symbols. Share the symbolized faulting frame and all-thread backtraces, the instruction address and registers, and the crashing thread name and ID. 2. Share the timestamped BE fatal output and nearby BE and FE logs, with thread IDs and the listener or RPC method if available. Include the exact FE stop command or signal, the FE's role, and whether the BE logged any local shutdown activity. Include the BE build ID and build type, any local patches, dependency versions used by the build, and the effective FE/BE Thrift and private RPC TLS settings with secrets omitted. Use the first faulting stack to decide whether to follow inbound connection teardown and worker exit, outbound report reconnection, or the subsystem named by the stack. Breakwater-GitHub-Analysis-Slot: slot_2be5924c082b -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
