{"id":23175,"date":"2024-02-20T08:43:29","date_gmt":"2024-02-20T08:43:29","guid":{"rendered":"https:\/\/www.taosdata.com\/?p=23175"},"modified":"2024-02-28T08:54:41","modified_gmt":"2024-02-28T08:54:41","slug":"%e5%86%85%e5%ad%98%e6%b3%84%e6%bc%8f%e6%b2%bb%e7%90%86%e5%ae%9e%e6%88%98%ef%bc%9atdengine%e7%a0%94%e5%8f%91%e5%9b%a2%e9%98%9f%e4%bd%bf%e7%94%a8windbg%e7%9a%84%e7%bb%8f%e9%aa%8c%e5%88%86%e4%ba%ab","status":"publish","type":"post","link":"https:\/\/www.taosdata.com\/tdengine-engineering\/23175.html","title":{"rendered":"\u5185\u5b58\u6cc4\u6f0f\u6cbb\u7406\u5b9e\u6218\uff1aTDengine \u7814\u53d1\u56e2\u961f\u4f7f\u7528 Windbg \u7684\u7ecf\u9a8c\u5206\u4eab"},"content":{"rendered":"\n
\u5185\u5b58\u6cc4\u6f0f\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u95ee\u9898\uff0c\u5b83\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u7684\u5185\u5b58\u5360\u7528\u9010\u6e10\u589e\u52a0\uff0c\u6700\u7ec8\u5bfc\u81f4\u7cfb\u7edf\u8d44\u6e90\u8017\u5c3d\u6216\u7a0b\u5e8f\u5d29\u6e83\u3002AddressSanitizer (ASan) \u548c Valgrind \u662f\u5f88\u597d\u7684\u5185\u5b58\u68c0\u6d4b\u5de5\u5177\uff0cTDengine<\/a> \u7684 CI \u8fc7\u7a0b\u5c31\u4f7f\u7528\u4e86 ASan \u3002\u4e0d\u8fc7\u8fd9\u6b21\u5185\u5b58\u6cc4\u6f0f\u95ee\u9898\u53d1\u751f\u5728 Windows \u4e0b\uff0c\u6211\u4eec CI \u6682\u65f6\u8fd8\u6ca1\u6709\u8986\u76d6\u5230\uff0c\u56e0\u6b64 TDengine \u7814\u53d1\u9009\u62e9\u4f7f\u7528 Windbg \u6765\u89e3\u51b3\u95ee\u9898\u3002\u7ed3\u679c\u8bc1\u660e\uff0c\u5728 Windows \u4e0b\uff0c\u4f7f\u7528 Windbg \u4e5f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n\n\n\n \u5185\u5b58\u6cc4\u6f0f\u901a\u5e38\u4f1a\u53d1\u751f\u5728\u4ee5\u4e0b\u60c5\u51b5\u4e0b\uff1a<\/strong><\/p>\n\n\n\n \u5185\u5b58\u6cc4\u6f0f\u7684\u68c0\u6d4b\u65b9\u6cd5\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u79cd\uff1a<\/strong><\/p>\n\n\n\n \u4f18\u7f3a\u70b9\uff1a<\/strong><\/p>\n\n\n\n \u4f7f\u7528 Windbg \u5b9a\u4f4d\u5185\u5b58\u6cc4\u9732\uff0c\u4f9d\u8d56 glags \u7ec4\u4ef6\u8bb0\u5f55\u7a0b\u5e8f\u5728\u8fd0\u884c\u671f\u95f4\u6240\u6709\u7533\u8bf7\u548c\u91ca\u653e\u7684\u5185\u5b58\uff0c\u540c\u65f6\u8bb0\u5f55\u7684\u8fd8\u6709\u7533\u8bf7\u5185\u5b58\u65f6\u7684\u8c03\u7528\u6808\u4fe1\u606f\u3002\u8fd9\u6837\u5728\u7a0b\u5e8f\u8fd0\u884c\u671f\u95f4\uff0c\u4f7f\u7528 umdh \u7ec4\u4ef6\u8fdb\u884c\u4e24\u6b21\u5feb\u7167\u8bb0\u5f55\uff0c\u901a\u8fc7\u6bd4\u8f83\u4e24\u6b21\u5feb\u7167\u4fe1\u606f\u7684\u5dee\u5f02\uff0c\u5c31\u53ef\u4ee5\u53d1\u73b0\u4e24\u6b21\u5feb\u7167\u95f4\u9694\u65f6\u95f4\u6bb5\u4e2d\u7533\u8bf7\u5374\u5e76\u672a\u91ca\u653e\u7684\u5185\u5b58\u7533\u8bf7\u4fe1\u606f\u3002\u5982\u679c\u6709\u5185\u5b58\u6cc4\u9732\uff0cdiff \u7ed3\u679c\u6700\u524d\u8fb9\u4e00\u822c\u5c31\u662f\u6cc4\u6f0f\u70b9\u7684\u8c03\u7528\u6808\u4fe1\u606f\u3002\u5f53\u7136\uff0c\u4e24\u6b21\u5feb\u7167\u671f\u95f4\uff0c\u8981\u5c3d\u91cf\u89e6\u53d1\u5185\u5b58\u6cc4\u9732\uff0c\u624d\u80fd\u66f4\u51c6\u786e\u7684\u5b9a\u4f4d\u3002diff \u7ed3\u679c\u4e2d\u8fd8\u4f1a\u6709\u5c11\u91cf\u6b63\u5e38\u7684\u7533\u8bf7\u6ca1\u6765\u5f97\u53ca\u91ca\u653e\u7684\u8c03\u7528\u4fe1\u606f\uff0c\u4e0d\u8fc7 diff \u7ed3\u679c\u4e2d\u80fd\u770b\u5230\u8c03\u7528\u6b21\u6570\uff0c\u6bd4\u8f83\u5bb9\u6613\u7504\u522b\u3002<\/p>\n\n\n\n taosdump \u5728 windows \u5bfc\u5165\u6570\u636e\u51fa\u9519\uff1a<\/p>\n\n\n\n \u9519\u8bef\u65e5\u5fd7\uff1ataosd “tsem_init failed, errno: 28”<\/p>\n\n\n\n Taosdump: dumpInAvroDataImpl() LN7039 taos_stmt_execute() failed! reason: Out of Memory, timestamp: 1500000009256<\/p>\n\n\n\n gflags \u5de5\u5177\u5e94\u8be5\u4f4d\u4e8e\u8def\u5f84\uff1aC:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x64\\gflags\uff0c\u5982\u679c\u6ca1\u6709\u7684\u8bdd\uff0c\u53ef\u4ee5\u76f4\u63a5\u524d\u5f80 Microsoft \u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5b89\u88c5\uff1ahttps:\/\/learn.microsoft.com\/zh-cn\/windows-hardware\/drivers\/debugger\/debugger-download-tools<\/a><\/p>\n\n\n\n \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u547d\u4ee4\u884c\u6267\u884c gflags.exe \/i your_application.exe \u53ef\u8bbe\u7f6e\u8ddf\u8e2a\u76ee\u6807\uff0c\u540c\u65f6\u53ef\u4ee5\u8bbe\u7f6e\u76f8\u5173\u53c2\u6570\u3002\u53cc\u51fb\u8fd0\u884c\u4e5f\u662f\u53ef\u4ee5\u7684\uff0cImage File \u5bf9\u5e94 \/i \u53c2\u6570\uff0c\u9009\u62e9\u542f\u52a8\u7a0b\u5e8f your_application.exe \u540e\u5148\u6309 tab \u952e\uff0c\u7136\u540e\u9009\u62e9\u5176\u4ed6\u914d\u7f6e\u3002<\/p>\n\n\n\u5185\u5b58\u6cc4\u6f0f\u7684\u5e38\u7528\u68c0\u6d4b\u65b9\u6cd5<\/h3>\n\n\n\n
\n
\n
\n
\u5b9e\u8df5\u5206\u6790<\/h3>\n\n\n\n
\u57fa\u672c\u539f\u7406<\/h4>\n\n\n\n
\u95ee\u9898\u4ecb\u7ecd<\/h4>\n\n\n\n
build and install latest TDengine 3.0 branch on Windows\nuse \"taosBenchmark -I stmt -y\" to create a lot of tables and data (10000 * 10000).\nuse \"taosdump -D test -o outputFile\" to dump out\nuse \"taos -s 'drop database test'\" to drop database\nuse \"taosdump -i inputFile\" to dump in.<\/code><\/pre>\n\n\n\n
\u5b9a\u4f4d\u8fc7\u7a0b<\/h4>\n\n\n\n
\u914d\u7f6e gflags<\/h5>\n\n\n\n