hprof icon indicating copy to clipboard operation
hprof copied to clipboard

Panic when a child node has the same name as its parent

Open tomaka opened this issue 10 years ago • 0 comments

The following code:

    let _g = hprof::enter("Reading");
    {
        let _g = hprof::enter("Mapping");
        let mapping = buffer.map();
        drop(_g);

        let _g = hprof::enter("Reading");
        for val in mapping.values.iter() {
            process(val);
        }
    }

Panics with:

thread '<main>' panicked at 'arithmetic operation overflowed', C:\Users\pierre\.cargo\registry\src\github.com-1285ae84e5963aae\hprof-0.1.2\src\lib.rs:262

Renaming the inner Reading to Reading2 fixed the issue.

tomaka avatar Jul 08 '15 08:07 tomaka