Code Monkey home page Code Monkey logo

Comments (6)

deadprogram avatar deadprogram commented on May 21, 2024

Just confirming this is still an issue with the latest master branch. Was not sure with all of the core changes.

from tinygo.

aykevl avatar aykevl commented on May 21, 2024

I plan to look into it once I'm on a stable LLVM version. It is possible this is a bug in LLVM.

What I've found last time I experimented with it, is that it is a specific combination of a branch depending on a volatile variable, print, and time.Sleep(). Note that something like:

println("foo", uint16(5))

is turned into this:

runtime.printstring("foo")
runtime.printspace()
runtime.printuint16(5)
runtime.printnl()

EDIT: if you manage to reproduce this on a desktop computer, that would make finding the bug much easier (with bugpoint).

from tinygo.

aykevl avatar aykevl commented on May 21, 2024

Tested on stable LLVM, the issue is still present.

from tinygo.

aykevl avatar aykevl commented on May 21, 2024

It looks like I made a mistake while testing. I cannot reproduce it now (on stable LLVM) so it looks like a bug in LLVM that was fixed before the release.
@deadprogram can you try whether it is still present?

from tinygo.

deadprogram avatar deadprogram commented on May 21, 2024

Good news here, I also can no longer reproduce on latest LLVM. Seems you are correct, this must have been addressed upstream. Seems like it can ne closed now.

from tinygo.

aykevl avatar aykevl commented on May 21, 2024

Glad to hear, and thanks for testing!
So this is why I wasn't putting much time in it ;) I already suspected a LLVM bug as it happened during an optimization pass.

from tinygo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.