On Sep 18, 2010, at 1:01 PM, Eric MSP Veith wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Saturday 18 September 2010, Jeff Johnson <n3...@mac.com> wrote:
>> What version of ruby-1.9.x are you using?
> 
> Sorry, forgot to mention: 1.9.2p0
> 

OK, almost there, building ruby --prefix=/usr/lib/rpm.

Note that "make check" in the build generates this traceback:

*** glibc detected *** ./ruby: free(): invalid pointer: 0x0d8e2368 ***
======= Backtrace: =========
/lib/libc.so.6(-0xff9e379f)[0x17e861]
/lib/libc.so.6(cfree+0xf0)[0x1834a0]
./ruby[0x80ee3de]
./ruby(ruby_snprintf+0x40)[0x80ef390]
./ruby(rb_str_format+0x2cad)[0x80f204d]
./ruby(rb_f_sprintf+0x28)[0x80f2af8]
./ruby[0x8142d6d]
./ruby[0x814df00]
./ruby[0x81502c4]
./ruby[0x8153b09]
./ruby(rb_yield+0x50)[0x8154ec0]
./ruby(rb_ary_each+0x41)[0x8165c01]
./ruby[0x814df00]
./ruby[0x81502c4]
./ruby[0x8153b09]
./ruby(rb_yield+0x50)[0x8154ec0]
./ruby(rb_ary_each+0x41)[0x8165c01]
./ruby[0x814df00]
./ruby[0x81502c4]
./ruby[0x8153b09]
./ruby(rb_vm_invoke_proc+0x76)[0x8147786]
./ruby(rb_proc_call+0x49)[0x805e999]
./ruby(rb_call_end_proc+0x1a)[0x805b90a]
./ruby(rb_exec_end_proc+0x1bc)[0x805caec]
./ruby[0x805cb87]
./ruby(ruby_cleanup+0x113)[0x805ccd3]
./ruby(ruby_run_node+0x3a)[0x805cf6a]
./ruby(main+0x5a)[0x805aa2a]
/lib/libc.so.6(__libc_start_main+0xe6)[0x126bb6]
./ruby[0x805a931]

Also note that I run with this malloc voo-doo to catch issues like this:

        export MALLOC_CHECK_=3
        # http://udrepper.livejournal.com/11429.html
        export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))

Next to rebuild rpm --with-rubyembed ...

73 de Jeff



______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to