Mailinglist Archive: opensuse-ruby (15 mails)

< Previous Next >
Re: [opensuse-ruby] Problem with segfaulting ruby C bindings in factory (1.9)
On Thu, Jun 07, 2012 at 05:54:51PM +0200, Josef Reidinger wrote:
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 =

Do you have any hints what could be wrong?

I suspect Ruby memory management, but I am prejudiced by an earlier

Have you tried valgrind?
Martin Vidner, YaST developer

Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
< Previous Next >
Follow Ups