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=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7612 invoked from network); 9 Dec 2023 18:30:54 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 9 Dec 2023 18:30:54 -0000 Received: from sirjofri.de ([5.45.105.127]) by 9front; Sat Dec 9 13:29:49 -0500 2023 Received: from dummy.faircode.eu ([31.16.254.78]) by sirjofri.de; Sat Dec 9 19:29:41 +0100 2023 Date: Sat, 9 Dec 2023 19:29:29 +0100 (GMT+01:00) From: sirjofri To: 9front@9front.org Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: service firewall dependency interface Subject: [9front] prof profiler changing program result Reply-To: 9front@9front.org Precedence: bulk Hello, today I did an implementation of mandelbrot and learned to use prof to profile my program. I noticed that the mandelbrot result is different when linked using -p. Instead of the nice mandelbrot image I get a circle (but still with lots of details). Funnily enough, julia seems to work better. Since my installation of 9front isn't always up to date that issue might already be fixed. I also doubt that the issue appears very often, and I didn't find any notes about issues like that when reading prof(1). For reproduction, find this small repository: https://shithub.us/sirjofri/fractals/HEAD/info.html . You should be able to just run `mk` to build the program, and use `mk test` to build sample images. The mkfile contains a commented out "-p" ldflag which you can use to reproduce the issue. In general, I don't expect anyone to go this far at this stage (or at all). I'll probably take a deeper look and try to find out what's happening. Did anyone encounter other (or similar) issues when using prof and the -p flag? sirjofri