Mailinglist Archive: opensuse-ruby (15 mails)

< Previous Next >
[opensuse-ruby] Problem with segfaulting ruby C bindings in factory (1.9)
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/
(gdb) up
#1 0x00007ffff3dd9a5c in rb_require_safe ()
from /usr/lib64/ (gdb) up
#2 0x00007ffff4199e9c in YRuby::loadModule (argList=...)
145 VALUE result = rb_require(module_path.c_str());
(gdb) p module_path
$1 =

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

then if you rebuild package with make DEBUG=1 and make

then simple do this:
cd /home/abuild/rpmbuild/BUILD/yast2-ruby-bindings-0.3.11/tests
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?

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

< Previous Next >
Follow Ups