"rustc" with no arguments crashes
59c5ba9
Opened by Patrick Walton at
[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.
Fixed long ago. 'rustc' alone still hits a 'fail' path, but not due to a runtime crash.
Graydon Hoare at 2011-01-27 02:02:52