<p dir="auto">Just cloned the rust0.6 from today.<br>
And build it on  Ubuntu 12.10 x86_64<br>
when I run rusti and enter 1+1 ,it happens Segmentation fault .</p>
<p dir="auto">Here som gdb log:<br>
GNU gdb (GDB) 7.5-ubuntu<br>
Copyright (C) 2012 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <a href="http://gnu.org/licenses/gpl.html" rel="nofollow">http://gnu.org/licenses/gpl.html</a><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"<br>
and "show warranty" for details.<br>
This GDB was configured as "x86_64-linux-gnu".<br>
For bug reporting instructions, please see:<br>
<a href="http://www.gnu.org/software/gdb/bugs/" rel="nofollow">http://www.gnu.org/software/gdb/bugs/</a>...<br>
Reading symbols from /usr/local/bin/rusti...(no debugging symbols found)...done.<br>
[New LWP 5883]<br>
[New LWP 5884]<br>
[New LWP 5881]<br>
[New LWP 5880]<br>
[New LWP 5882]</p>
<p dir="auto">warning: Can't read pathname for load map: 输入/输出错误.<br>
[Thread debugging using libthread_db enabled]<br>
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br>
Core was generated by `rusti'.<br>
Program terminated with signal 11, Segmentation fault.<br>
#0  0x00007f9d32f69018 in ?? () from /lib64/ld-linux-x86-64.so.2</p>
<p dir="auto">(gdb) bt full<br>
#0  0x00007f9d32f69018 in ?? () from /lib64/ld-linux-x86-64.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="227519" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/1" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/1/hovercard" href="https://github.com/rust-lang/rust/issues/1">#1</a>  0x00007f9d32f6b63d in ?? () from /lib64/ld-linux-x86-64.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228601" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/2" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/2/hovercard" href="https://github.com/rust-lang/rust/issues/2">#2</a>  0x00007f9d32f7685b in ?? () from /lib64/ld-linux-x86-64.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228607" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/3" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/3/hovercard" href="https://github.com/rust-lang/rust/issues/3">#3</a>  0x00007f9d32f72186 in ?? () from /lib64/ld-linux-x86-64.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228626" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/4" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/4/hovercard" href="https://github.com/rust-lang/rust/issues/4">#4</a>  0x00007f9d32f7632a in ?? () from /lib64/ld-linux-x86-64.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228628" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/5" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/5/hovercard" href="https://github.com/rust-lang/rust/issues/5">#5</a>  0x00007f9d30710f26 in ?? () from /lib/x86_64-linux-gnu/libdl.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228638" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/6" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/6/hovercard" href="https://github.com/rust-lang/rust/issues/6">#6</a>  0x00007f9d32f72186 in ?? () from /lib64/ld-linux-x86-64.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228641" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/7" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/7/hovercard" href="https://github.com/rust-lang/rust/issues/7">#7</a>  0x00007f9d3071152f in ?? () from /lib/x86_64-linux-gnu/libdl.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228645" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/8" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/8/hovercard" href="https://github.com/rust-lang/rust/issues/8">#8</a>  0x00007f9d30710fc1 in dlopen () from /lib/x86_64-linux-gnu/libdl.so.2</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228646" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/9" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/9/hovercard" href="https://github.com/rust-lang/rust/issues/9">#9</a>  0x00007f9d2fc8cd1a in llvm::sys::DynamicLibrary::getPermanentLibrary(char const_, std::string_) () from /usr/local/bin/../lib/./librustllvm.so</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228647" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/10" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/10/hovercard" href="https://github.com/rust-lang/rust/issues/10">#10</a> 0x00007f9d2f233d0c in RustMCJITMemoryManager::loadCrate (</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="this=0x7f9d205a3020, file=&lt;optimized out&gt;, err=err@entry=0x7f9d201008a0)"><pre class="notranslate"><code class="notranslate">this=0x7f9d205a3020, file=&lt;optimized out&gt;, err=err@entry=0x7f9d201008a0)
</code></pre></div>
<p dir="auto">---Type  to continue, or q  to quit---<br>
at /usr/local/src/rust/src/rustllvm/RustWrapper.cpp:197<br>
crate = {static Invalid = 0 '\000', Data = 0x7f9d2f0a7878}<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228649" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11/hovercard" href="https://github.com/rust-lang/rust/issues/11">#11</a> 0x00007f9d2f234587 in LLVMRustLoadCrate (mem=,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="crate=&lt;optimized out&gt;)
at /usr/local/src/rust/src/rustllvm/RustWrapper.cpp:328
    manager = &lt;optimized out&gt;
    Err = {static npos = &lt;optimized out&gt;, 
      _M_dataplus = {&lt;std::allocator&lt;char&gt;&gt; = {&lt;__gnu_cxx::new_allocator&lt;char&gt;&gt; = {&lt;No data fields&gt;}, &lt;No data fields&gt;}, _M_p = 0x7f9d2ee404d8 &quot;&quot;}}
    __PRETTY_FUNCTION__ = &quot;bool LLVMRustLoadCrate(void*, const char*)&quot;"><pre class="notranslate"><code class="notranslate">crate=&lt;optimized out&gt;)
at /usr/local/src/rust/src/rustllvm/RustWrapper.cpp:328
    manager = &lt;optimized out&gt;
    Err = {static npos = &lt;optimized out&gt;, 
      _M_dataplus = {&lt;std::allocator&lt;char&gt;&gt; = {&lt;__gnu_cxx::new_allocator&lt;char&gt;&gt; = {&lt;No data fields&gt;}, &lt;No data fields&gt;}, _M_p = 0x7f9d2ee404d8 ""}}
    __PRETTY_FUNCTION__ = "bool LLVMRustLoadCrate(void*, const char*)"
</code></pre></div>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228650" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12/hovercard" href="https://github.com/rust-lang/rust/issues/12">#12</a> 0x00007f9d31e223ca in LLVMRustLoadCrate__c_stack_shim ()</p>
<p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228651" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/13" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/13/hovercard" href="https://github.com/rust-lang/rust/issues/13">#13</a> 0x00007f9d31218ab9 in __morestack ()</p>
<p dir="auto">from /usr/local/bin/../lib/librustrt.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228652" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/14" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/14/hovercard" href="https://github.com/rust-lang/rust/issues/14">#14</a> 0x00007f9d31207174 in call_on_c_stack (</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;, 
args=0x7f9d201035f0, this=0x7f9d28108a10)
at /usr/local/src/rust/src/rt/rust_task.h:491
    prev_rust_sp = 0
    borrowed_a_c_stack = true
    sp = &lt;optimized out&gt;"><pre class="notranslate"><code class="notranslate">fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;, 
args=0x7f9d201035f0, this=0x7f9d28108a10)
at /usr/local/src/rust/src/rt/rust_task.h:491
    prev_rust_sp = 0
    borrowed_a_c_stack = true
    sp = &lt;optimized out&gt;
</code></pre></div>
<p dir="auto">---Type  to continue, or q  to quit---<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228654" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/15" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/15/hovercard" href="https://github.com/rust-lang/rust/issues/15">#15</a> upcall_call_shim_on_c_stack (args=0x7f9d201035f0,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;)
at /usr/local/src/rust/src/rt/rust_upcall.cpp:60
    task = 0x7f9d28108a10
    __PRETTY_FUNCTION__ = &quot;void upcall_call_shim_on_c_stack(void*, void*)&quot;"><pre class="notranslate"><code class="notranslate">fn_ptr=0x7f9d31e22390 &lt;LLVMRustLoadCrate__c_stack_shim&gt;)
at /usr/local/src/rust/src/rt/rust_upcall.cpp:60
    task = 0x7f9d28108a10
    __PRETTY_FUNCTION__ = "void upcall_call_shim_on_c_stack(void*, void*)"
</code></pre></div>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228656" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16/hovercard" href="https://github.com/rust-lang/rust/issues/16">#16</a> 0x00007f9d31d8beb4 in back:<g-emoji class="g-emoji" alias="link" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f517.png">🔗</g-emoji>:jit::exec::anon::anon::expr_fn_76891 ()</p>
<p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228659" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17/hovercard" href="https://github.com/rust-lang/rust/issues/17">#17</a> 0x00007f9d318d2158 in str::as_c_str_28724::_b760a7dcc0e4db::_06 ()</p>
<p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228661" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/18" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/18/hovercard" href="https://github.com/rust-lang/rust/issues/18">#18</a> 0x00007f9d31d8b949 in back:🔗:jit::exec::_c3905cfecb8b69e9::_06 ()</p>
<p dir="auto">from /usr/local/bin/../lib/librustc-c84825241471686d-0.6.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228664" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19/hovercard" href="https://github.com/rust-lang/rust/issues/19">#19</a> 0x00007f9d31464d65 in run::_ee4d29fb4c6e65c::_06 ()</p>
<p dir="auto">from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228665" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/20" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/20/hovercard" href="https://github.com/rust-lang/rust/issues/20">#20</a> 0x00007f9d31496aa8 in __morestack ()</p>
<p dir="auto">from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228666" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21/hovercard" href="https://github.com/rust-lang/rust/issues/21">#21</a> 0x00007f9d31495a60 in run_line::anon::expr_fn_13894 ()</p>
<p dir="auto">from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so<br>
No symbol table info available.<br>
---Type  to continue, or q  to quit---<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228668" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22/hovercard" href="https://github.com/rust-lang/rust/issues/22">#22</a> 0x00007f9d31495235 in task::<strong>extensions</strong>::try_13791::anon::expr_fn_13846</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="() from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so"><pre class="notranslate"><code class="notranslate">() from /usr/local/bin/../lib/librusti-5047c7f210c7cac8-0.6.so
</code></pre></div>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228799" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/23/hovercard" href="https://github.com/rust-lang/rust/issues/23">#23</a> 0x00007f9d32bf814f in task::spawn::spawn_raw::make_child_wrapper::anon::expr_fn_10036 () from /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so</p>
<p dir="auto">No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228801" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/24" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/24/hovercard" href="https://github.com/rust-lang/rust/issues/24">#24</a> 0x00007f9d32c2f520 in __morestack ()</p>
<p dir="auto">from /usr/local/bin/../lib/libcore-c3ca5d77d81b46c1-0.6.so<br>
No symbol table info available.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228804" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25/hovercard" href="https://github.com/rust-lang/rust/issues/25">#25</a> 0x00007f9d312057f4 in task_start_wrapper (a=0x7f9d28109810)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="at /usr/local/src/rust/src/rt/rust_task.cpp:160
    __PRETTY_FUNCTION__ = &quot;void task_start_wrapper(spawn_args*)&quot;
    env = &lt;optimized out&gt;
    ca = {spargs = 0x0, threw_exception = false}
    task = 0x7f9d28108a10
    threw_exception = false"><pre class="notranslate"><code class="notranslate">at /usr/local/src/rust/src/rt/rust_task.cpp:160
    __PRETTY_FUNCTION__ = "void task_start_wrapper(spawn_args*)"
    env = &lt;optimized out&gt;
    ca = {spargs = 0x0, threw_exception = false}
    task = 0x7f9d28108a10
    threw_exception = false
</code></pre></div>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="228805" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/26" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/26/hovercard" href="https://github.com/rust-lang/rust/issues/26">#26</a> 0x0000000000000000 in ?? ()</p>
<p dir="auto">No symbol table info available.<br>
(gdb) quit</p>
<p dir="auto">rustc v0.6:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ rusti
rusti&gt;  fn foo() { for 5.times { io::println(&quot;hi&quot;); } }
[1]    11363 segmentation fault (core dumped)  rusti"><pre class="notranslate">$ rusti
rusti&gt;  fn <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">for</span> <span class="pl-c1">5</span><span class="pl-kos">.</span><span class="pl-smi">times</span> <span class="pl-kos">{</span> <span class="pl-c1">io</span><span class="pl-kos">:</span><span class="pl-kos">:</span>println<span class="pl-kos">(</span><span class="pl-s">"hi"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span>
<span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span>    <span class="pl-c1">11363</span> segmentation fault <span class="pl-kos">(</span>core dumped<span class="pl-kos">)</span>  rusti</pre></div>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ rusti
rusti&gt; let x = 1;
&lt;anon&gt;:35:4: 35:7 warning: unused variable: `x`
&lt;anon&gt;:35 let x = 1;
              ^~~
[1]    11937 segmentation fault (core dumped)  rusti"><pre class="notranslate">$ rusti
rusti&gt; let x = <span class="pl-c1">1</span><span class="pl-kos">;</span>
&lt;<span class="pl-smi">anon</span>&gt;<span class="pl-kos">:</span><span class="pl-c1">35</span><span class="pl-kos">:</span><span class="pl-c1">4</span><span class="pl-kos">:</span> <span class="pl-c1">35</span><span class="pl-kos">:</span><span class="pl-c1">7</span> warning<span class="pl-kos">:</span> unused variable<span class="pl-kos">:</span> `x`
&lt;anon&gt;<span class="pl-kos">:</span><span class="pl-c1">35</span> let x = <span class="pl-c1">1</span><span class="pl-kos">;</span>
              ^~~
<span class="pl-kos">[</span><span class="pl-c1">1</span><span class="pl-kos">]</span>    <span class="pl-c1">11937</span> <span class="pl-en">segmentation</span> fault <span class="pl-kos">(</span>core dumped<span class="pl-kos">)</span>  rusti</pre></div>
<p dir="auto">I was able to reproduce this today by using <code class="notranslate">ctrl+c</code> to exit <code class="notranslate">rusti</code>. Subsequent <code class="notranslate">rusti</code> runs segfaulted regardless of the statement.</p>