2 Star 1 Fork 0

陈孝松/blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
0001-dump-stack-of-smbd_parent_loop.patch 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
ChenXiaoSong 提交于 2025-08-28 19:07 +08:00 . initial commit
From 12ce87142f53d42b3c007ae4d433c0609e607406 Mon Sep 17 00:00:00 2001
From: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
Date: Tue, 27 May 2025 22:48:22 +0800
Subject: [PATCH] dump stack of smbd_parent_loop()
Signed-off-by: ChenXiaoSong <chenxiaosong@chenxiaosong.com>
---
source3/smbd/server.c | 3 +++
source3/wscript_build | 1 +
2 files changed, 4 insertions(+)
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 1ad66ecbdba..fb265bccaa6 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -60,6 +60,7 @@
#include "lib/global_contexts.h"
#include "source3/lib/substitute.h"
#include "lib/addrchange.h"
+#include "lib/util/fault.h"
#ifdef CLUSTER_SUPPORT
#include "ctdb_protocol.h"
@@ -1412,6 +1413,8 @@ static void smbd_parent_loop(struct tevent_context *ev_ctx,
for each incoming connection */
DEBUG(2,("waiting for connections\n"));
+ log_stack_trace();
+
ret = tevent_loop_wait(ev_ctx);
if (ret != 0) {
DEBUG(0, ("tevent_loop_wait failed: %d, %s, exiting\n",
diff --git a/source3/wscript_build b/source3/wscript_build
index 2870f1a704b..3df7d60eb8d 100644
--- a/source3/wscript_build
+++ b/source3/wscript_build
@@ -1137,6 +1137,7 @@ bld.SAMBA3_SUBSYSTEM('fd_handle',
bld.SAMBA3_BINARY('smbd/smbd',
source='smbd/server.c smbd/smbd_cleanupd.c',
deps='''
+ smb-panic
CMDLINE_S3
smbd_base
REG_FULL
--
2.49.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenxiaosonggitee/blog.git
git@gitee.com:chenxiaosonggitee/blog.git
chenxiaosonggitee
blog
blog
master

搜索帮助