uiua-lang / uiua

A stack-based array programming language
https://www.uiua.org
MIT License
1.63k stars 117 forks source link

Uiua crashes with Capacity overflow #212

Closed memark closed 1 year ago

memark commented 1 year ago

Uiua 0.0.25.

(Not saying I expect this expression to work, just trying some different things here, but it asked me to report the bug!)

❯ uiua repl
Uiua 0.0.25 (end with ctrl+C)

» ↯∞⊞$"__".[1 2]
↪ ↯∞⊞$"__".[1 2]
The application panicked (crashed).
Message:  capacity overflow
Location: /Users/memark/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ecow-0.2.0/src/vec.rs:1163

Backtrace omitted.

Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Error: The interpreter has crashed!
  Hooray! You found a bug!
  Please report this at http://github.com/uiua-lang/uiua/issues/new

  code:
  1:1
  ↯∞⊞$"__".[1 2]
  at 1:1
1 | ↯∞⊞$"__".[1 2]
    ─
kaikalii commented 1 year ago

Thanks for reporting! Fixed in c46093d06bdc5