From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 06AA63858D28 for ; Wed, 13 Apr 2022 01:33:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 06AA63858D28 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 23D1Xceo017179 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 12 Apr 2022 21:33:43 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 23D1Xceo017179 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id C7D8B1E787; Tue, 12 Apr 2022 21:33:38 -0400 (EDT) Message-ID: <83ce3c23-1b64-a371-db02-c614c9ec385a@polymtl.ca> Date: Tue, 12 Apr 2022 21:33:38 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 From: Simon Marchi Subject: Re: GDB is preventing my catch blocks in my C++ program To: Claude Robitaille , "gdb@sourceware.org" References: <7775f85e-e0f5-2942-bde9-cb3c2effee90@polymtl.ca> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 13 Apr 2022 01:33:38 +0000 X-Spam-Status: No, score=-3033.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Wed, 13 Apr 2022 01:33:48 -0000 Hi Claude, Please make sure to do a reply all so everyone on the list can see your reply and contribute. On 2022-04-12 21:28, Claude Robitaille wrote: > Thanks Simon for the quick reply. > > I can single step the program up to the point where an exception is thrown. And I did set a breakpoint inside the catch statement but no success (earlier breakpoint in the code are working as expected). > > Here is what appears on the console (yes, it is Windows) > > Listening on port 2345 > Remote debugging from host 192.168.70.8, port 34542 > Error while doing a GetTokenInformation - Unknown errorLOGGER NOT INITIALIZED: > ********************************************************************************************* > terminate called after throwing an instance of 'sf::context::tGlobal::envVariableMissing' > > Child exited with status 3 > > > The string that starts with Error blah blah is my own std::cout earlier in the program. Same with the line with the ****** > and the LOGGER xxxx is from the g3log library in my program. > > The exception instance is definitely what my program is throwing. Indeed, that makes it clear it's not gdbserver crashing. I don't have any idea at the moment about how gdb/gdbserver could affect the execution of your program in this way. > I guess Child exited is from gdb. Yes. Simon