Skip to content

Bus error 10 from using debug! too much #9975

Closed
@glennsl

Description

@glennsl

On OS X 10.8.4, x86_64-apple-darwin, rust 0.9-pre (freshly pulled).

This little snippet causes a bus error 10 for me:

do 300.times {
  debug!(".");
}

I've narrowed it down to std::fmt::write_unsafe(), but from there things start getting private and hard to probe.

An example closer to the source would be:

do 300.times { 
  format_args!(|args| {
    let mut out = std::rt::io::native::stdio::stdout();
    std::fmt::write(&mut out as &mut std::rt::io::Writer, args);
   }, ".");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions