From: Andres Salomon Date: 2004-09-28T11:24:12+09:00 Subject: Re: segfaulting in IO.popen() --=-24L2uOK2NJwnFyV0XOHS Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2004-09-28 at 08:42 +0900, Yukihiro Matsumoto wrote: > Hi, >=20 > In message "Re: segfaulting in IO.popen()" > on Tue, 28 Sep 2004 05:07:18 +0900, Andres Salomon writes: >=20 > |I'm having a problem w/ mod_xmlrpc segfaulting inside a call to > |IO.popen. The code snippet that's being run is: > | > |cmd =3D 'sudo ' + PRIV + ' /usr/bin/apt-get -u --trivial-only dist-upgra= de' > |skip =3D 2 > | > |f =3D IO.popen(cmd) > |output =3D f.readlines >=20 > Can you show us error reproducing script and how to run it? Code > snippet is not enough to detect bugs. Do I have to compile >=20 Unfortunately, I can't reproduce it with an individual script; I need all the scripts together (this bug has been incredibly frustrating to narrow down). I actually managed to make the bug go away by wrapping dbi, openssl, and ipaddr requires w/ GC.disable/GC.enable (ie,=20 GC.disable require 'ipaddr' GC.enable). > |http://www.acm.rpi.edu/~dilinger/modxmlrpc-snap.tar.gz >=20 > to get an error? >=20 Yes; the dependencies are kind of specific (apache2, xmlrpc-c, cmake..). If you use debian, I can prepare packages for you (libapache2-mod- xmlrpc2 is already in debian testing/unstable, but it's an older version that doesn't have ruby support). I'll try to narrow this down as much as possible, as I realize I'm not giving you much to work w/; unfortunately, I've seen variations of this bug (I think) before, and it's been randomly appearing/disappearing for months. --=20 Andres Salomon --=-24L2uOK2NJwnFyV0XOHS Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBWMtB78o9R9NraMQRAvSdAJ938DXcaLuP5ZcSdJk4l7S9HQaLbgCeO9ug usVt/YwtArdN6sMl8E78iPg= =SlBO -----END PGP SIGNATURE----- --=-24L2uOK2NJwnFyV0XOHS--