Article View: comp.lang.c
Article #93Re: Real world switch () with the MPS memory pool system!
From: Kaz Kylheku
Date: Fri, 09 Oct 2026 20:45
Date: Fri, 09 Oct 2026 20:45
34 lines
2846 bytes
2846 bytes
On 2026-10-09, Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> wrote: > On 10/8/2026 9:31 AM, Kaz Kylheku wrote: > And don't forget that just recently, people found a security bug in > OpenSSL [again] just because they neglected to include a garbage coll- > ector in the system. Maybe they would have been better off, if they'd > just used MPS from the start? Many programs that use OpenSSL nowadays are threaded. Threads + GC + stuff written in C => shit show You may fix some use-after-free bug, but you introduce 17 others, the 16th and 17th of which won't be found until 2037 and 2050. I've pulled out my hair debugging GC problems in a single-threaded Lisp implementation. You have to develop all the tooling and approaches for it because none of the regular memory debugging tools understand your GC objects. I wanted Valgrind, so I had to integrate it, and it's not perfect. A newly created GC object is wrongly garbage collected, perhaps just before it was properly made reachable. The object is reassigned to a different purpose, but the original context uses it also. Happy case: the object has a different type, incompatible with what the original owner is doing, and so that blows up, and (happy again) it happens close to where it was created. From there, there are various shades of unhappy. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca
Technical Details
Message-ID:
<20261009133919.155@kylheku.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<EUBxS.8919$mPXe.2290@fx06.ams4> <20261007182218.446@kylheku.com> <N5cyS.10488$mPXe.6319@fx06.ams4>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <046-301-5902@kylheku.com> Newsgroups: comp.lang.c,comp.lang.misc,comp.lang.lisp,sci.crypt,netscape.public.mozilla.crypto Subject: Re: Real world switch () with the MPS memory pool system! Date: Fri, 9 Oct 2026 20:45:30 -0000 (UTC) Organization: A noiseless patient Spider Lines: 34 Message-ID: <20261009133919.155@kylheku.com> References: <EUBxS.8919$mPXe.2290@fx06.ams4> <20261007182218.446@kylheku.com> <N5cyS.10488$mPXe.6319@fx06.ams4> Injection-Date: Fri, 09 Oct 2026 20:45:31 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1217047"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ItB1EnaTLKE7v3vwHYtGhyCR5giRL1Fw="; posting-host="47e211268598cd4f150fd1ba46a52cb9" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:0HKSTY6OT/eEybEsC/I0ziDS70w= sha256:47CLYb4kYYi4T8BaKb7mTCQ5OwSVvuP2GBgpo4qfqCM= sha1:w/ZdPQGAisHVLS3lNKfvAT1jGqo= sha256:CRvKi4nfVcpm0X8hxTR1jrMiRHj/ArVqprlqe/nbrHw=