title: Segmentation fault: 1902 vfscanf.c: No such file or directory
body: <p>The program stops with segmentation fault at <code>scanf()</code> function.
  This is simplified code:</p>
  <pre><code>int main() {
    int x = 0;
    printf(&quot;$ &quot;);
    scanf(&quot;%i&quot;, x);
  
    return 0;
  }
  </code></pre>
  <p>And when I run this with <code>gdb</code> I get this message:</p>
  <pre class="lang-sh prettyprint-override"><code>(gdb) run
  Starting program: /home/siery/dev/shell/classes/bin/Recure 
  
  Program received signal SIGSEGV, Segmentation fault.
  0x00007ffff71f6794 in _IO_vfscanf_internal (s=&lt;optimized out&gt;, format=&lt;optimized out&gt;, argptr=argptr@entry=0x7fffffffe608, errp=errp@entry=0x0) at vfscanf.c:1902
  1902    vfscanf.c: No such file or directory.
  </code></pre>
  <p>I try to search the Internet for vfscanf.c but have not found much of helpful informations.</p>
  <p>Btw. I compile this program with g++ which is newly updated same as gdb.</p>