mozilla/rust — Issue #1696: segfault logging a hashmap
Author: erickt
Created: 2012-01-28 18:30:25+00:00
State: open

This code segfaults:

use std;
import std::map;

fn main() {
let m = map::new_bytes_hash();
m.insert(str::bytes("foo"), str::bytes("bar"));
log(error, m);
}

gdb on my mac isn't giving me a stack trace though, but in a similar situation I got a stack trace that pointed at rt/rust_shape.h's ctxt's `rust_shape_tables* tables` pointer is null.