Skip to content

"rustc" with no arguments crashes #155

Closed
@pcwalton

Description

@pcwalton
[pwalton@host-4-94 ~/Source/rust/src] ./rustc
rt: ---
rt: 2d2d:main:main:                       rust: This is the rust 'self-hosted' compiler.
rt: 2d2d:main:main:                       rust: The one written in rust.
rt: 2d2d:main:main:                       rust: It does nothing yet, it's a placeholder.
rt: 2d2d:main:main:                       rust: You want rustboot, the compiler next door.
free: ptr 0x100360 is not in allocation_list
rt: fatal, 'not in allocation_list' failed, rt/memory_region.cpp:28 

froystig says this is due to "argv" not bounds checking like real arrays do.

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