Deutsch English Français Italiano |
<20240613210337.372@kylheku.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.c Subject: Re: "stack smashing detected" Date: Fri, 14 Jun 2024 04:06:21 -0000 (UTC) Organization: A noiseless patient Spider Lines: 25 Message-ID: <20240613210337.372@kylheku.com> References: <666a10d3$0$973$882e4bbb@reader.netnews.com> <87cyolzqb2.fsf@bsb.me.uk> <666a3d62$0$981$882e4bbb@reader.netnews.com> <877cetz0h5.fsf@bsb.me.uk> <v4eeav$26p06$1@dont-email.me> Injection-Date: Fri, 14 Jun 2024 06:06:21 +0200 (CEST) Injection-Info: dont-email.me; posting-host="3793024af845e39afd430c4a1eb108c6"; logging-data="2873670"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/nwMzv4MPeNyFEm8bkdDPQnS/hMSu3MWQ=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:8IUM02tWcYNz/bYXWeAnVcmOZyY= Bytes: 2054 On 2024-06-13, Malcolm McLean <malcolm.arthur.mclean@gmail.com> wrote: > On 13/06/2024 09:54, Ben Bacarisse wrote: >> >>> valgrind is too hardcore for me (for the hobby C programs I write >>> anyway). >> >> What does "too hardcore" mean? It's very simple to use and catches more >> problems than gcc's runtime checks can. Compile with -g (so you get >> line number information) and then run under valgrind: >> > > valgrind is my favourite little utility. It's easy to use, and flushes > out bugs very effectively. Unfotunately the Mac won't let me run it That's one of the benefits of writing cross-platform. Not every bug can be flushed out on every platform, whether by circumstances/fluke or availability of tooling (including from the toolchain or external). A program that run son Linux and Mac, and is checked with Valgrind on Linux, gives me a bit more confidence than a Mac-only similar program. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca