🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2237

Re: is wraper on realloc good idea? maybe more wrappers?

#2237
From: fir
Date: Sat, 05 Dec 2026 08:32
41 lines
3175 bytes
Tristan Wibberley pisze:
> On 29/11/2026 14:57, fir wrote:
>> fir pisze:
>>> never used it but generally wrappers on some standard functions
>>> probably are good idea, or not?
>>
>> i also think if not tu built in system for localizing runtime errors
>>
>> i rarely have runtime errors but when something appears its unplesant
>> the you need to do such weird debug thing to localize crash
>>
>> sulution would be doing some simple list where i would log some
>> function tags in array in ram then probably i could show this is system/
>> signal/crash handler i guess
> 
> 
> Have you considered always running under a debugger with crash handling
> there? Depending on your runtime environment it might provide the best
> language for the job.
> 
> For example, a main process that forks a job processor and gdb,
> attaching gdb to the job processor to react to process exits.
> 
> Why make life hard by trying to do it all in C with flawlessness on day one?
> 

i used to use dolly a bit but i really have not muach crashes in my 
coding career not so much to get used to it.. in last years im like when
writing this 50k line rasterizer /game  i got cras once

before when writing some other 2d game prototype for few weeks
i got also crash once afair (or maybe even none..though i remember some 
like year or two ago i got this crash ..and it was related to -O3 or 
something like that and not aligning simds on stack) so ypu see im liek
having less crashes than once a year

overally i must say i got not much amount of serious errors when coding
..also you may include not only crashes but "errors that needs 
localisation" as very rare - just as i said maybe once a year type error
(though i not code whole year - if i would code i coud maybe have 2 on a 
year?)
Technical Details
Message-ID: <11f0i7p$2j7hh$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11eh538$3fet7$1@dont-email.me> <11eheha$3j5qd$1@dont-email.me> <11f0h5c$2i7jn$4@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: is wraper on realloc good idea? maybe more wrappers?
Date: Sat, 5 Dec 2026 09:32:55 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <11f0i7p$2j7hh$1@dont-email.me>
References: <11eh538$3fet7$1@dont-email.me> <11eheha$3j5qd$1@dont-email.me>
 <11f0h5c$2i7jn$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 05 Dec 2026 08:32:58 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2727473"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18XU/xA6/5vAHY81O69fomuFCYCBD32RAM="; posting-host="342f4926edf4bd28a33754ba53b7ff2f"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:vj3wuIwEvMeKHrqeK+n0nChHVmQ= sha256:tetSkQPqyM0fsTLs7TiH6NnWkqWEQBT5LrSDzMpVtEc=
	sha1:/3KpzOEx12KqpxEq+XYx7ZWAJw0= sha256:/BtCH41pHM0asfbTYqPs+DLYEjln/uqhz+7MDaa6h2o=
In-Reply-To: <11f0h5c$2i7jn$4@dont-email.me>