Mailinglist Archive: opensuse-ruby (15 mails)

< Previous Next >
[opensuse-ruby] Problem with segfaulting ruby C bindings in factory (1.9)
Hi,
when I port of yast2-ruby-bindings to ruby 1.9 as we use in factory I
face segfault when require string from C api.

When I attach gdb I don't see anything special. I pass common c string
to rb_require method and it segfault.


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5527858 in __longjmp_chk () from /lib64/libc.so.6
(gdb) up
#1 0x00007ffff3dd9a5c in rb_require_safe ()
from /usr/lib64/libruby1.9.so.1.9 (gdb) up
#2 0x00007ffff4199e9c in YRuby::loadModule (argList=...)
at
/home/abuild/rpmbuild/BUILD/yast2-ruby-bindings-0.3.10/src/ruby/YRuby.cc:145
145 VALUE result = rb_require(module_path.c_str());
(gdb) p module_path
$1 =
"/home/abuild/rpmbuild/BUILD/yast2-ruby-bindings-0.3.10/tests/ycp/URI"


To play with it do local osc build and then chroot into it with osc
chroot
( I have extra packages for osc vim and gdb
).

then if you rebuild package with make DEBUG=1 and make
DIST=/home/abuild/rpmbuild/BUILDROOT/yast2-ruby-bindings-0.3.11/

then simple do this:
cd /home/abuild/rpmbuild/BUILD/yast2-ruby-bindings-0.3.11/tests
export
Y2DIR=/home/abuild/rpmbuild/BUILDROOT/yast2-ruby-bindings-0.3.11/usr/lib64/YaST2/
gdb /usr/lib/YaST2/bin/y2base
run -l - -M . ./ruby_object.ycp UI

and you face also segfault.

Do you have any hints what could be wrong?

Josef
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-ruby+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups