RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm-5.0.0: usage of --root or --prefix while installing an rpm package -- not working ?

From: Jeff Johnson <n3npq@mac.com>
Date: Wed 16 Jan 2008 - 02:58:37 CET
Message-Id: <003A8ABF-94DA-4869-9654-F0AFB30E13D2@mac.com>

On Jan 15, 2008, at 5:07 PM, Stefan Westmeier wrote:
>
> This is what happenend. What did I do wrong?
>

A double free is nothing you did wrong, it's a bug in rpm-5.0
with --relocate somewhere.

Could you supply a pointer (i.e. a URL) for the most_if package
you are trying to install so that I can try to reproduce the problem?

Thanks!

73 de Jeff

>
> Installing the same package with no relocation works perfectly.
>
> Thx,
> Stefan
>
> ----------------------------------------------------------------------------------
> user@ubuntu-vmware:~/SWDev/rpmroot$ rpm -qpil most_if-1.0-1.i686.rpm
> Name        : most_if                      Relocations: /if/sys
> Version     : 1.0                               Vendor: SWM
> Release     : 1                             Build Date: Do 10 Jan  
> 2008 12:54:58 CET
> Install Date: (not installed)            Build Host: ubuntu-vmware
> Group       : CoC_sys                       Source RPM:  
> most_if-1.0-1.src.rpm
> Size        : 45                               License: SWM
> Signature   : (none)
> Packager    : stefan_westmeier@hotmail.de
> Summary     : Interface Package for Most
> Description :
> Interface Package for Most
> /if/sys
> /if/sys/most
> /if/sys/most/if_1.h
> user@ubuntu-vmware:~/SWDev/rpmroot$ rpm -vv --dbpath /home/user/ 
> SWDev/rpmroot/rpmdb --relocate /if/sys=/home/user/SWDev/rpmroot/if/ 
> sys -ihv most_if-1.0-1.i686.rpm
> D: Expected size:         2166 = lead(96)+sigs(180)+pad(4)+data(1886)
> D:   Actual size:         2166
> D: most_if-1.0-1.i686.rpm: SHA1-Pr™Ã™πfsumme des Headers: OK  
> (2d44dcc16a0f7b1953039f5cf6df814c30845fab)
> D: ========== relocations
> D:     0 relocate /if/sys -> /home/user/SWDev/rpmroot/if/sys
> D: relocating /if/sys to /home/user/SWDev/rpmroot/if/sys
> D: relocating directory /if/sys/most/ to /home/user/SWDev/rpmroot/if/ 
> sys/most/
> D: relocating directory /if/sys/ to /home/user/SWDev/rpmroot/if/sys/
> *** glibc detected *** rpm: free(): invalid pointer: 0xbfe18620 ***
> ======= Backtrace: =========
> /lib/tls/i686/cmov/libc.so.6[0xb7a2bd65]
> /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7a2f800]
> /opt/lib/librpm-5.0.so[0xb7f560f5]
> /opt/lib/librpm-5.0.so(rpmfiNew+0x101d)[0xb7f57ced]
> /opt/lib/librpm-5.0.so[0xb7f643d6]
> /opt/lib/librpm-5.0.so(rpmteNew+0xab)[0xb7f646db]
> /opt/lib/librpm-5.0.so(rpmtsAddInstallElement+0x25d)[0xb7f2c8cd]
> /opt/lib/librpm-5.0.so(rpmcliInstall+0x585)[0xb7f5bf75]
> rpm[0x804bd3b]
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb79d8050]
> rpm[0x804a101]
> ======= Memory map: ========
> 08048000-0804e000 r-xp 00000000 08:01 71958      /opt/bin/rpm
> 0804e000-0804f000 rw-p 00005000 08:01 71958      /opt/bin/rpm
> 0804f000-08070000 rw-p 0804f000 00:00 0          [heap]
> b7600000-b7621000 rw-p b7600000 00:00 0
> b7621000-b7700000 ---p b7621000 00:00 0
> b7730000-b7731000 rw-p b7730000 00:00 0
> b7751000-b7763000 r--p 00000000 08:01 71676      /opt/share/locale/ 
> de/LC_MESSAGES/rpm.mo
> b7763000-b77a2000 r--p 00000000 08:01 785656     /usr/lib/locale/ 
> de_DE.utf8/LC_CTYPE
> b77a2000-b77a3000 r--p 00000000 08:01 785837     /usr/lib/locale/ 
> de_DE.utf8/LC_NUMERIC
> b77a3000-b77a4000 r--p 00000000 08:01 785648     /usr/lib/locale/ 
> de_DE.utf8/LC_TIME
> b77a4000-b7884000 r--p 00000000 08:01 785668     /usr/lib/locale/ 
> de_DE.utf8/LC_COLLATE
> b7884000-b7885000 r--p 00000000 08:01 786055     /usr/lib/locale/ 
> de_DE.utf8/LC_MONETARY
> b7885000-b7886000 r--p 00000000 08:01 785665     /usr/lib/locale/ 
> de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES
> b7886000-b7887000 r--p 00000000 08:01 785970     /usr/lib/locale/ 
> de_DE.utf8/LC_PAPER
> b7887000-b7889000 rw-p b7887000 00:00 0
> b7889000-b789d000 r-xp 00000000 08:01 721586     /usr/lib/libz.so. 
> 1.2.3.3
> b789d000-b789e000 rw-p 00013000 08:01 721586     /usr/lib/libz.so. 
> 1.2.3.3
> b789e000-b78a8000 r-xp 00000000 08:01 801315     /lib/libgcc_s.so.1
> b78a8000-b78a9000 rw-p 0000a000 08:01 801315     /lib/libgcc_s.so.1
> b78a9000-b78cc000 r-xp 00000000 08:01 834833     /lib/tls/i686/cmov/ 
> libm-2.6.1.so
> b78cc000-b78ce000 rw-p 00023000 08:01 834833     /lib/tls/i686/cmov/ 
> libm-2.6.1.so
> b78ce000-b79b6000 r-xp 00000000 08:01 721516     /usr/lib/libstdc+ 
> +.so.6.0.9
> b79b6000-b79b9000 r--p 000e8000 08:01 721516     /usr/lib/libstdc+ 
> +.so.6.0.9
> b79b9000-b79bb000 rw-p 000eb000 08:01 721516     /usr/lib/libstdc+ 
> +.so.6.0.9
> b79bb000-b79c2000 rw-p b79bb000 00:00 0
> b79c2000-b7b06000 r-xp 00000000 08:01 834829     /lib/tls/i686/cmov/ 
> libc-2.6.1.so
> b7b06000-b7b07000 r--p 00143000 08:01 834829     /lib/tls/i686/cmov/ 
> libc-2.6.1.so
> b7b07000-b7b09000 rw-p 00144000 08:01 834829     /lib/tls/i686/cmov/ 
> libc-2.6.1.so
> b7b09000-b7b0c000 rw-p b7b09000 00:00 0
> b7b0c000-b7c37000 r-xp 00000000 08:01 789029     /usr/lib/i686/cmov/ 
> libcrypto.so.0.9.8
> b7c37000-b7c4c000 rw-p 0012a000 08:01 789029     /usr/lib/i686/cmov/ 
> libcrypto.so.0.9.8
> b7c4c000-b7c4f000 rw-p b7c4c000 00:00 0
> b7c4f000-b7c8c000 r-xp 00000000 08:01 789030     /usr/lib/i686/cmov/ 
> libssl.so.0.9.8
> b7c8c000-b7c90000 rw-p 0003c000 08:01 789030     /usr/lib/i686/cmov/ 
> libssl.so.0.9.8
> b7c90000-b7c97000 r-xp 00000000 08:01 834845     /lib/tls/i686/cmov/ 
> librt-2.6.1.so
> b7c97000-b7c99000 rw-p 00006000 08:01 834845     /lib/tls/i686/cmov/ 
> librt-2.6.1.so
> b7c99000-b7cad000 r-xp 00000000 08:01 834843     /lib/tls/i686/cmov/ 
> libpthread-2.6.1.so
> b7cad000-b7caf000 rw-p 00013000 08:01 834843     /lib/tls/i686/cmov/ 
> libpthread-2.6.1.so
> b7caf000-b7cb2000 rw-p b7caf000 00:00 0
> b7cb2000-b7cb4000 r-xp 00000000 08:01 834832     /lib/tls/i686/cmov/ 
> libdl-2.6.1.so
> b7cb4000-b7cb6000 rw-p 00001000 08:01 834832     /lib/tls/i686/cmov/ 
> libdl-2.6.1.so
> b7cAborted (core dumped)
>
Received on Wed Jan 16 02:58:45 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.