From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com [68.232.137.252]) by sourceware.org (Postfix) with ESMTPS id 9807B3857010 for ; Tue, 14 Jul 2020 11:03:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9807B3857010 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mentor.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=abid_qadeer@mentor.com IronPort-SDR: zRKAqazlZER3OW6p107cw3pc4nACggkQ40ydC0glmNfsSRZIdBNCaxZgUMR6Qk02tBl7LXofDA jZply77Yh6BkBUvD1DxRdTD45DWsDhbX6bbnxw82W4VCAJDCfxHMID51ApHGF8ZH+ShIdZPEQ5 Q1Al26WtrqJaqzbDxxNr/MBM3B/EWxnGNv04cvN8flPZzDGcwA0juKX37Jp490OSA3nS4cNsAh DhuFSJSvoWLe0QB33nz1QS3K5mH6VoY0kIrTpVM10zmP+VTscsBuwmILHMXtBDKk2SXyO0VfM5 z2s= X-IronPort-AV: E=Sophos;i="5.75,350,1589270400"; d="scan'208";a="51012950" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa4.mentor.iphmx.com with ESMTP; 14 Jul 2020 03:03:17 -0800 IronPort-SDR: DGJab0vDJwGPLg7IqPPpFUkZwszF0qKidkguzcx1ElFbS8C+ICYH2ThkEfszKNymaQAbXGx0si Ez+D0UUjsk3BhVHQ9deL++Vi3T654DGbwjB0xdJTOhma1GKcCGkACAs69lp7oRENb6Q7HQloms hYAE83XKtXubcGgKiVwJZc4u92ktHf3gMEHb0X+rfI5qUR3Xe8uP+RzeAEOfUh3t5n2lBGa2BD TAt/5kLjs69wudDHcaDl/EGielKSbj7SGQaKzlUyPW/osrRxqFowfqUols5bAxPfVI5mPEqGZX jjg= From: Hafiz Abid Qadeer Subject: MI and SIGINT To: Message-ID: Date: Tue, 14 Jul 2020 12:03:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 11:03:20 -0000 Hi All, We have observed that a SIGINT send by an IDE can cause GDB to not print MI stopped messages. Although this is very difficult to reproduce by hand but the sequence look something like this. 1. You do continue and GDB hits a breakpoint and starts calling the observers. 2. One of the observer will call into python sniffers. 3. If during that time, a SIGINT has arrived, it will cause python to throw exception which will cause GDB to abandon printing the stopped message. It is not a big problem in cli mode but can leave IDE in bit of limbo. I was wondering if this is intended behavior with the SIGINT and MI. The call stack of the exception looks like this: #3 0x0000555555857ff1 in throw_quit #4 0x00005555559b9bdb in gdbpy_print_stack_or_quit #5 0x00005555559aa57f in pyuw_sniffer #6 0x0000555555838a23 in frame_unwind_try_unwinder #7 0x0000555555838b90 in frame_unwind_find_by_frame #8 0x000055555583e7ad in get_frame_type #9 0x0000555555a445e7 in print_frame_info #10 0x0000555555a42a9f in print_stack_frame #11 0x00005555558b4ebe in print_stop_location #12 0x00005555558b4f4b in print_stop_event #13 0x000055555591ab17 in mi_on_normal_stop_1 #14 0x000055555591ad34 in mi_on_normal_stop #15 0x0000555555618517 in std::_Function_handler::_M_invoke(std::_Any_data const&, bpstats*&&, int&&) #16 0x00005555558b9d82 in std::function::operator()(bpstats*, int) const #17 0x00005555558b93db in gdb::observers::observable::notify #18 0x00005555558b5832 in normal_stop Regards, -- Hafiz Abid Qadeer Mentor Embedded/CodeSourcery