https://github.com/slydiman created 
https://github.com/llvm/llvm-project/pull/92286

This test caused python crash on Windows x86_64 host with the exit code 
0xC0000409 (STATUS_STACK_BUFFER_OVERRUN). Close the input stream before exit to 
avoid this crash.

>From b6d9b129dc92eea0bd7347ea6ae2a305178dbd46 Mon Sep 17 00:00:00 2001
From: Dmitry Vasilyev <dvassil...@accesssoftek.com>
Date: Wed, 15 May 2024 19:47:48 +0400
Subject: [PATCH] [lldb][Windows] Fixed the TestIOHandlerResizeNoEditline test

This test caused python crash on Windows x86_64 host with the exit code 
0xC0000409 (STATUS_STACK_BUFFER_OVERRUN).
Close the input stream before exit to avoid this crash.
---
 lldb/test/API/iohandler/resize/TestIOHandlerResizeNoEditline.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lldb/test/API/iohandler/resize/TestIOHandlerResizeNoEditline.py 
b/lldb/test/API/iohandler/resize/TestIOHandlerResizeNoEditline.py
index 3c07554f6cafd..bbc2dcbe4e30a 100644
--- a/lldb/test/API/iohandler/resize/TestIOHandlerResizeNoEditline.py
+++ b/lldb/test/API/iohandler/resize/TestIOHandlerResizeNoEditline.py
@@ -18,3 +18,4 @@ def test_resize_no_editline(self):
         dbg.RunCommandInterpreter(True, True, opts, 0, False, False)
         # Try resizing the terminal which shouldn't crash.
         dbg.SetTerminalWidth(47)
+        dbg.GetInputFile().Close()

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to