FS#70601 - [klayout] KLayout should be build with ruby2.7 in stead of ruby [=3.0]

Attached to Project: Community Packages
Opened by Floris Laporte (flaport) - Monday, 26 April 2021, 21:02 GMT
Last edited by Felix Yan (felixonmars) - Sunday, 09 May 2021, 15:19 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

community/klayout should be build with community/ruby2.7 dependency (and the -ruby /usr/bin/ruby-2.7 flag) in stead of community/ruby, which recently upgraded to version 3.

Opening the GUI currently shows error logs, but apart from this works fine.
Some parts of the CLI are unusable and show the same error messages.

Typical error message on opening KLayout:

Signal number: 11
Address: 0x8
Program Version: KLayout 0.26.11 (2021-03-19 rLatestSourcePackage)

Backtrace:
/usr/lib/libklayout_lay.so.0 +0x2978a4 lay::enable_signal_handler_gui(bool) [??:?]
/usr/lib/libc.so.6 +0x3cf80 __restore_rt [sigaction.c:?]
/usr/lib/libruby.so.3.0 +0xc5c1d rb_obj_info_dump_loc [??:?]
/usr/lib/libklayout_rba.so.0 +0x3c692 void std::vector<unsigned long, std::allocator<unsigned long> >::_M_realloc_insert<unsigned long>(__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, unsigned long&&) [??:?]
/usr/lib/libklayout_rba.so.0 +0x3c8ee void std::vector<unsigned long, std::allocator<unsigned long> >::_M_realloc_insert<unsigned long>(__gnu_cxx::__normal_iterator<unsigned long*, std::vector<unsigned long, std::allocator<unsigned long> > >, unsigned long&&) [??:?]
/usr/lib/libklayout_rba.so.0 +0x5594d std::auto_ptr<gsi::AdaptorBase>::~auto_ptr() [??:?]
/usr/lib/libklayout_rba.so.0 +0x4ea74 void tl::event<gsi::ObjectBase::StatusEventType, void, void, void, void>::add<rba::Proxy>(rba::Proxy*, void (rba::Proxy::*)(gsi::ObjectBase::StatusEventType)) [??:?]
/usr/lib/libklayout_rba.so.0 +0x24867 rba::RubyInterpreter::push_exec_handler(gsi::ExecutionHandler*) [??:?]
/usr/lib/libruby.so.3.0 +0x2308af rb_error_arity [??:?]
/usr/lib/libruby.so.3.0 +0x2397ce rb_vm_localjump_error [??:?]
/usr/lib/libruby.so.3.0 +0x23c3de rb_check_funcall [??:?]
/usr/lib/libruby.so.3.0 +0x2413c2 rb_vm_exec [??:?]
/usr/lib/libruby.so.3.0 +0x24810b rb_call_super [??:?]
/usr/lib/libruby.so.3.0 +0x248c42 rb_funcallv_kw [??:?]
/usr/lib/libruby.so.3.0 +0x145862 rb_class_new_instance_pass_kw [??:?]
/usr/lib/libruby.so.3.0 +0x2308af rb_error_arity [??:?]
/usr/lib/libruby.so.3.0 +0x2397ce rb_vm_localjump_error [??:?]
/usr/lib/libruby.so.3.0 +0x23c3de rb_check_funcall [??:?]
/usr/lib/libruby.so.3.0 +0x2413c2 rb_vm_exec [??:?]
/usr/lib/libruby.so.3.0 +0x242085 rb_eval_string [??:?]
/usr/lib/libruby.so.3.0 +0x2461fc rb_vm_invoke_proc [??:?]
/usr/lib/libruby.so.3.0 +0x24974c rb_funcallv [??:?]
/usr/lib/libruby.so.3.0 +0xacd4e rb_protect [??:?]
/usr/lib/libklayout_rba.so.0 +0x436cd void std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*> > >::_M_realloc_insert<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*> >(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*> > > >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>&&) [??:?]
/usr/lib/libklayout_rba.so.0 +0x437ee void std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*> > >::_M_realloc_insert<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*> >(__gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*> > > >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, gsi::MethodBase const*>&&) [??:?]
/usr/lib/libklayout_lym.so.0 +0x31884 lym::Macro::run() const [??:?]
/usr/lib/libklayout_lym.so.0 +0x33ed7 lym::Macro::install_doc() const [??:?]
/usr/lib/libklayout_lym.so.0 +0x33e81 lym::Macro::install_doc() const [??:?]
/usr/lib/libklayout_lay.so.0 +0x111fc8 lay::ApplicationBase::init_app() [??:?]
klayout +0x3dd9
/usr/lib/libklayout_rba.so.0 +0x20f60
/usr/lib/libruby.so.3.0 +0x2308af
/usr/lib/libruby.so.3.0 +0x2397ce
/usr/lib/libruby.so.3.0 +0x23c3de
/usr/lib/libruby.so.3.0 +0x2413c2 rb_vm_exec
/usr/lib/libruby.so.3.0 +0xab252
/usr/lib/libruby.so.3.0 +0xaf128 ruby_run_node
/usr/lib/libklayout_rba.so.0 +0x22056 _ZN3rba15RubyInterpreter10initializeERiPPcPFiS1_S3_E
klayout +0x3a0f
klayout +0x351d
/usr/lib/libc.so.6 +0x27b25 __libc_start_main
klayout +0x36de
This task depends upon

Closed by  Felix Yan (felixonmars)
Sunday, 09 May 2021, 15:19 GMT
Reason for closing:  Fixed
Additional comments about closing:  klayout-0.27-2

Loading...