From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 557 invoked from network); 12 Mar 2023 16:53:27 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 12 Mar 2023 16:53:27 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 842BC41585; Mon, 13 Mar 2023 02:53:26 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id E83CF41565 for ; Mon, 13 Mar 2023 02:53:19 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id 87DE235E9EF; Sun, 12 Mar 2023 09:53:19 -0700 (PDT) Date: Sun, 12 Mar 2023 09:53:19 -0700 From: Larry McVoy To: Paul Winalski Message-ID: <20230312165319.GN9225@mcvoy.com> References: <69248852-1701-4938-8A4D-3B27F3018E83@iitbombay.org> <20230310174222.GB9225@mcvoy.com> <20230311112849.22C0920145@orac.inputplus.co.uk> <20230312042348.GJ860405@mit.edu> <20230312104417.DC1DF215AA@orac.inputplus.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Message-ID-Hash: L72XIPKDTSNHT5AZT66PPY2T7JZESF2B X-Message-ID-Hash: L72XIPKDTSNHT5AZT66PPY2T7JZESF2B X-MailFrom: lm@mcvoy.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: coff@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [COFF] Re: Conditions, AKA exceptions. List-Id: Computer Old Farts Forum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Sun, Mar 12, 2023 at 12:46:40PM -0400, Paul Winalski wrote: > On 3/12/23, Ralph Corderoy wrote: > > > > Do you ever find things are so messed up that stdio has trouble whereas > > using write(2) with compile-time memory allocations for a buffer would > > have a better chance of reaching the TTY? > > I hate it when that happens. Even worse is when adding the write(2) > with compile-time memory allocations makes the bug go away. I once > had to spend three days camped out in someone's office debugging a > compiler crash. The crash only happened 4 hours into a massive > multi-file compilation, and this guy's login session was the only one > where the problem reproduced under the debugger. Heisenbugs are hell. I had one like that. Sometimes, rarely, suninstall would throw a panic(psig) which meant that someone in the kernel had messed with the process' signal mask, which is a no-no. Turns out that the SCSI twins had heard that people were interrupting suninstall if it took too long, so under certain conditions, the SCSI tape driver would disable SIGINT. It was (obviously) my fault because I was doing POSIX conformance and I was the last person in many kernel files. Took me a long time to track that one down. -- --- Larry McVoy Retired to fishing http://www.mcvoy.com/lm/boat