[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

Re: [ ruby-Bugs-5701 ] ruby-1.8.5 loads fox16.so more than once

From: "Lyle Johnson" <lyle.johnson@...>
Date: 2006-09-09 14:38:11 UTC
List: ruby-core #8820
On 9/8/06, Eric Hodel <drbrain@segment7.net> wrote:

> What do we need to do to reproduce this?

Since FXRuby is so difficult to build, I put together a dead simple
extension that reproduces the problem. I've attached it to the
original bug report at RubyForge, but I can also send it to you or
anyone else off-line. Here's how to reproduce the problem (also
recorded with the RubyForge entry):

In order to reproduce the bug, dowload and unpack the attached tarball
(simple.tar.gz). This contains three files: simple.c, helper.rb and
the extconf.rb file. Run the extconf.rb script to create a Makefile
for your operating system, then type "make" to build the extension.

Once you've built the extension, start up "irb" and then type: require
"simple". You should get a warning message, "already initialized
constant FOO". If you inspect the value of $", you will see that the
shared library part (simple.bundle, or simple.so, depending on your
operating system) has been loaded twice.

In This Thread