Skip to content

Memory corruption with --emit-llvm -S on linux #1526

Closed
@brson

Description

@brson
x86_64-unknown-linux-gnu/stage1/bin/rustc --emit-llvm -S --target=x86_64-unknown-linux-gnu --lib -o test.ll ../src/comp/rustc.rc

Results in:

*** glibc detected *** x86_64-unknown-linux-gnu/stage1/bin/rustc: double free or corruption (!prev): 0x000000001e3341d0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a8f)[0x7faef5e01a8f]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x73)[0x7faef5e058e3]
/home/banderson/Dev/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustrt.so(+0x2f1b9)[0x7faef676e1b9]
/home/banderson/Dev/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/librustrt.so(upcall_shared_free+0x2f)[0x7faef675d63f]
/home/banderson/Dev/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/libcore-14bd852465126fe7-0.1.so(+0x5ee65)[0x7faef78dce65]
/home/banderson/Dev/rust/build/x86_64-unknown-linux-gnu/stage1/bin/../lib/libcore-14bd852465126fe7-0.1.so(_ZN3str7replace17_7feb76196d5727efE+0x633)[0x7faef789e003]

Probably overran the stack.

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