https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2011-07-20T15:50:55Z
Ruby Issue Tracking System
Ruby master - Bug #5021: test_empty(DL::TestCFunc): DL::DLError: unknown symbol "strcpy"
https://bugs.ruby-lang.org/issues/5021?journal_id=19378
2011-07-20T15:50:55Z
naruse (Yui NARUSE)
naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r32586.<br>
Makoto, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>ext/dl/handle.c (dlhandle_sym): clear previous error with dlerror()<br>
before calling dlsym(). <a href="/issues/5021">[ruby-dev:44091]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: test_empty(DL::TestCFunc): DL::DLError: unknown symbol "strcpy" (Closed)" href="https://bugs.ruby-lang.org/issues/5021">#5021</a>]</li>
</ul>
Ruby master - Bug #5021: test_empty(DL::TestCFunc): DL::DLError: unknown symbol "strcpy"
https://bugs.ruby-lang.org/issues/5021?journal_id=19379
2011-07-20T15:52:09Z
naruse (Yui NARUSE)
naruse@airemix.jp
<ul></ul><p>ちなみに、これの再現コードは以下のとおりでした。</p>
<p>require 'dl'<br>
require 'socket'<br>
Socket.gethostbyname("localhost")<br>
DL::dlopen("/usr/lib/libc.so")['strcpy']</p>