Forum: Ruby-core [ruby-trunk - Bug #8243][Open] ruby-debug-base fails because a function is no longer exported

629266ef4c3f1705dff4cec490c2b223?d=identicon&s=25 ericp (Eric Promislow) (Guest)
on 2013-04-09 23:15
(Received via mailing list)
Issue #8243 has been reported by ericp (Eric Promislow).

----------------------------------------
Bug #8243: ruby-debug-base fails because a function is no longer
exported
https://bugs.ruby-lang.org/issues/8243

Author: ericp (Eric Promislow)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]


The ruby-debug-base project (now at
https://github.com/cldwalker/debugger )
fails with 2.0 giving an error message like

dyld: lazy symbol binding failed: Symbol not found:
_rb_vm_get_sourceline
  Referenced from:
/usr/local/rvm/gems/ruby-2.0.0-p0@apono/bundler/gems/debugger-e98dc5762a48/lib/ruby_debug.bundle
  Expected in: flat namespace

When I reinstate this line in vm_backtrace.c the debugger works fine:

RUBY_FUNC_EXPORTED int rb_vm_get_sourceline(const rb_control_frame_t
*cfp);
629266ef4c3f1705dff4cec490c2b223?d=identicon&s=25 ericp (Eric Promislow) (Guest)
on 2013-04-09 23:18
(Received via mailing list)
Issue #8243 has been updated by ericp (Eric Promislow).

File bug08243.patch added

This patch reinstates the RUBY_FUNC_EXPORTED declaration, including
the comment from 1.9.3 stating that a better interface would be used
in the next version.  I don't know of any such interface in the 2.0
code.
----------------------------------------
Bug #8243: ruby-debug-base fails because a function is no longer
exported
https://bugs.ruby-lang.org/issues/8243#change-38404

Author: ericp (Eric Promislow)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]


The ruby-debug-base project (now at
https://github.com/cldwalker/debugger )
fails with 2.0 giving an error message like

dyld: lazy symbol binding failed: Symbol not found:
_rb_vm_get_sourceline
  Referenced from:
/usr/local/rvm/gems/ruby-2.0.0-p0@apono/bundler/gems/debugger-e98dc5762a48/lib/ruby_debug.bundle
  Expected in: flat namespace

When I reinstate this line in vm_backtrace.c the debugger works fine:

RUBY_FUNC_EXPORTED int rb_vm_get_sourceline(const rb_control_frame_t
*cfp);
24d2f8804e6bb4b7ea6bd11e0a586470?d=identicon&s=25 bitsweat (Jeremy Kemper) (Guest)
on 2013-04-10 00:09
(Received via mailing list)
Issue #8243 has been updated by bitsweat (Jeremy Kemper).


Hey Eric -

@ko1 updated it to use the new Ruby 2 debugging API!

See the debugger2 branch:
https://github.com/cldwalker/debugger/compare/mast...
----------------------------------------
Bug #8243: ruby-debug-base fails because a function is no longer
exported
https://bugs.ruby-lang.org/issues/8243#change-38405

Author: ericp (Eric Promislow)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]


The ruby-debug-base project (now at
https://github.com/cldwalker/debugger )
fails with 2.0 giving an error message like

dyld: lazy symbol binding failed: Symbol not found:
_rb_vm_get_sourceline
  Referenced from:
/usr/local/rvm/gems/ruby-2.0.0-p0@apono/bundler/gems/debugger-e98dc5762a48/lib/ruby_debug.bundle
  Expected in: flat namespace

When I reinstate this line in vm_backtrace.c the debugger works fine:

RUBY_FUNC_EXPORTED int rb_vm_get_sourceline(const rb_control_frame_t
*cfp);
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 Nobuyoshi Nakada (nobu)
on 2013-04-10 06:36
(Received via mailing list)
Issue #8243 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Rejected


----------------------------------------
Bug #8243: ruby-debug-base fails because a function is no longer
exported
https://bugs.ruby-lang.org/issues/8243#change-38410

Author: ericp (Eric Promislow)
Status: Rejected
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]


The ruby-debug-base project (now at
https://github.com/cldwalker/debugger )
fails with 2.0 giving an error message like

dyld: lazy symbol binding failed: Symbol not found:
_rb_vm_get_sourceline
  Referenced from:
/usr/local/rvm/gems/ruby-2.0.0-p0@apono/bundler/gems/debugger-e98dc5762a48/lib/ruby_debug.bundle
  Expected in: flat namespace

When I reinstate this line in vm_backtrace.c the debugger works fine:

RUBY_FUNC_EXPORTED int rb_vm_get_sourceline(const rb_control_frame_t
*cfp);
This topic is locked and can not be replied to.