Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid format string causes leaked memory in rust main loop #1299

Closed
grahame opened this issue Dec 14, 2011 · 2 comments
Closed

invalid format string causes leaked memory in rust main loop #1299

grahame opened this issue Dec 14, 2011 · 2 comments
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)

Comments

@grahame
Copy link
Contributor

grahame commented Dec 14, 2011

The following program;

use std;
import std::io;

fn main(arg : [str])
{
std::io::println(#fmt("%r", "Goat"));
}

fails to compile with the following internal error:

herugrim::~/code/markov2 $ rustc markov.rs
markov.rs:6:26: 6:30 error: unknown type in conversion: r
markov.rs:6 std::io::println(#fmt("%r", "Goat"));
^~~~
rust: upcall fail 'explicit failure', src/comp/driver/session.rs:70
rust: domain main @0x7fd001021200 root task failed
rust: fatal, 'leaked memory in rust main loop (2 objects)' failed, ./src/rt/memory_region.cpp:158 2 objects

I'm on MacOS lion, and I'm running rev 283cf35 of rust.

@brson
Copy link
Contributor

brson commented Dec 15, 2011

I spent a few minutes tinkering with this yesterday and the only useful thing I observed was that this goes away when removing the call to println.

@nikomatsakis
Copy link
Contributor

This is a dup of #1374.

celinval added a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Clean up property class and mark sanity checks

1. Remove the property classes that weren't being used.
2. Provide a tighter definition for DefaultAssert and reclassify things
   accordingly.
3. Renamed KaniCheck to SafetyCheck to make it a more meaningful name.

* Use strum to convert PropertyClass <-> &str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR)
Projects
None yet
Development

No branches or pull requests

3 participants