[Bug 705425] New: ruby-bindings: YaST crash during the call of ruby method
https://bugzilla.novell.com/show_bug.cgi?id=705425 https://bugzilla.novell.com/show_bug.cgi?id=705425#c0 Summary: ruby-bindings: YaST crash during the call of ruby method Classification: openSUSE Product: openSUSE 11.4 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: dmacvicar@novell.com ReportedBy: jsuchome@novell.com QAContact: jsrain@novell.com Found By: Development Blocker: --- KerberosClient.rb is located under /usr/share/YaST2/modules modified Kerberos.ycp is importing KerberosClient.rb and tries to call read function from that module It crashes with these last lines in y2log: 2011-07-13 14:42:51 <1> dhcp74.suse.cz(18030) [Y2Ruby] ruby/YRuby.cc(callInner):164 Adding argument 0 of type MAP 2011-07-13 14:42:51 <1> dhcp74.suse.cz(18030) [Y2Ruby] ruby/YRuby.cc(callInner):168 Wll call function 'read' in module 'KerberosClient' with '1' arguments -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c1
--- Comment #1 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c2
--- Comment #2 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c3
--- Comment #3 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c4
--- Comment #4 from Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c5
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c6
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c7
--- Comment #7 from Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c8
--- Comment #8 from Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c9
Klaus Kämpf
1. Download yast-- project from https://github.com/yast/yast--
2. Follow the README to install the project.
Please fix this. Testing YaST-- and reproducing bugs must not require root privileges.
3. YaST needs library files under YaST directory and with YaST-like name: link kerberos_client.rb (https://github.com/yast/yast--/blob/master/kerberos-client/kerberos_client.r...) to /usr/share/YaST2/modules/KerberosClient.rb
See above
(btw, there are bugs 705422, 705417 for this)
4. Run this ycp code:
How does one run this code ?
{ import "KerberosClient"; y2internal ("read: %1", KerberosClient::read ($[])); }
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c10
Jiří Suchomel
(In reply to comment #6)
1. Download yast-- project from https://github.com/yast/yast--
2. Follow the README to install the project.
Please fix this. Testing YaST-- and reproducing bugs must not require root privileges.
You need root privileges for 'sudo rake install', which is usual for any project.
3. YaST needs library files under YaST directory and with YaST-like name: link kerberos_client.rb (https://github.com/yast/yast--/blob/master/kerberos-client/kerberos_client.r...) to /usr/share/YaST2/modules/KerberosClient.rb
See above
This is workaround for another ruby-bindings bugs, as already mentioned:
(btw, there are bugs 705422, 705417 for this)
4. Run this ycp code:
How does one run this code ?
/sbin/yast2 ./this_example.ycp -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c11
--- Comment #11 from Klaus Kämpf
(In reply to comment #9)
(In reply to comment #6)
1. Download yast-- project from https://github.com/yast/yast--
2. Follow the README to install the project.
Please fix this. Testing YaST-- and reproducing bugs must not require root privileges.
You need root privileges for 'sudo rake install', which is usual for any project.
But completely wrong for development and testing IMHO. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c12
--- Comment #12 from Jiří Suchomel
Please fix this. Testing YaST-- and reproducing bugs must not require root privileges.
You need root privileges for 'sudo rake install', which is usual for any project.
But completely wrong for development and testing IMHO.
AFAIK it's for the D-BUS stuff which needs to be in correct directory. Anyway, it is sure that the project needs improvements on all parts, including configuration. That may be point of bugs against YaST++ project, but not of this one, which shows problems in ruby-bindings. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c13
--- Comment #13 from Duncan Mac-Vicar
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c14
--- Comment #14 from Jiří Suchomel
I discussed this bug with Jiri during the workshop. The reason it happens is because the bindings use Method#arity when it should probably use Method#parameters (as detailed in the ruby-doc).
No, you are referring to a different one: bug 705420 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c15
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c16
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c17
--- Comment #17 from Jiří Suchomel
The problem is arity being -1 for a 'varargs'-like parameter list. This is not handled properly by yast2-ruby-bindings.
Which is bug 705420. As a workaround, it should work to call KerberosClient::read () from example ycp code (without argument). Or remove default argument value from read function of https://github.com/yast/yast--/blob/master/kerberos-client/kerberos_client.r... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c18
--- Comment #18 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c19
--- Comment #19 from Jiří Suchomel
Or remove default argument value from read function of https://github.com/yast/yast--/blob/master/kerberos-client/kerberos_client.r...
I just did it in git. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c20
--- Comment #20 from Klaus Kämpf
(In reply to comment #16)
The problem is arity being -1 for a 'varargs'-like parameter list. This is not handled properly by yast2-ruby-bindings.
Which is bug 705420.
As a workaround, it should work to call KerberosClient::read () from example ycp code (without argument).
Or remove default argument value from read function of https://github.com/yast/yast--/blob/master/kerberos-client/kerberos_client.r...
Right, now I get a segfault -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c21
--- Comment #21 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c22
--- Comment #22 from Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c23
--- Comment #23 from Klaus Kämpf
During the workshop Pepa and I found that it is trying to raise a SystemStackError. Ah, this would explain the TAG_RAISE
Looking into that, we found that there seems to be no particularly deep recursion. Maybe we are omitting some initialization step in the bindings.
I was comparing the initialization with the one from cmpi-bindings-ruby and couldn't find a difference. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c24
--- Comment #24 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c25
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c26
--- Comment #26 from Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c27
--- Comment #27 from Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c
Klaus Kämpf
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c28
--- Comment #28 from Klaus Kämpf
Cool! Do you we already have a bug report for the new bug?
bnc#708059 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c29
--- Comment #29 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com