[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

Re: [ ruby-Bugs-6987 ] Double-free problem in the interpreter

From: Sylvain Joyeux <sylvain.joyeux@...4x.org>
Date: 2006-12-01 08:33:19 UTC
List: ruby-core #9643
> Thank you for the report.  Although this indicates double free
> problem, the information is not enough to locate the place to fix.
> Can you show us the program to reproduce the error?
Well, I can show you the *application* which does that. The problem is that 
I cannot really narrow down the problem since if I remove code it seems to 
disappear.

Anyway, you can get the relevant part of the code at
   http://www.jhaampe.org/~doudou/roby-rubybug.tar.bz2

You'll need 
   * to build the extension in ext/ and to make a symbolic link of 
     ext/bgl.so in lib/roby
   * the utilrb library. It is available as a gem. I released 0.2.2 (which 
is needed) today, so if it is not available yet on the gem server, you can 
get it at
  http://rubyforge.org/frs/download.php/15216/utilrb-0.2.2.gem

You can trigger the problem by launching test/suite_distributed.rb with 
testrb
  testrb test/suite_distributed.rb

It is 100% reproducible on 3 machines I have access to:
  - FC5 with vanilla ruby 
  - Debian/i386 and Debian/PPC, unstable, with the debian package

In general, when problem appears, you get the following messages:

  *** glibc detected *** corrupted double-linked list: 0xa7df74f8 ***

/usr/lib/ruby/1.8/monitor.rb:296: [BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [i486-linux]

(and since I'm doing DRb stuff across forked instances, a 
Errno::ECONNREFUSED exception)
-- 
Sylvain Joyeux

In This Thread

Prev Next