I'm working with /usr/lib/rpm/dbconvert.sh with modifications and getting
better results. The script is configured to work on /dev/shm/ (tmpfs) to be
much faster than on SD. It converts Packages and creates Nvra (I think after
doing rpm --dbpath ${NEWDB} -q rpm). The current result is this:
#
On Feb 15, 2011, at 11:37 AM, Silvan Calarco wrote:
I'm working with /usr/lib/rpm/dbconvert.sh with modifications and getting
better results. The script is configured to work on /dev/shm/ (tmpfs) to be
much faster than on SD. It converts Packages and creates Nvra (I think after
doing rpm
On Feb 15, 2011, at 3:36 PM, Silvan Calarco wrote:
D: opening db environment /var/lib/rpm/Packages
create:thread:lock:log:mpool:txn
D: opening db index /var/lib/rpm/Packages create:thread:auto_commit
mode=0x2
rpmdb: /var/lib/rpm/Packages: unexpected file type or format
Try this
I disabled the rpmdsFree in the previous chunk of code, and now showrc works as
expected.
In lib/rpmrc.c
@@ -1216,11 +1229,15 @@
if (DNEVR != NULL)
fprintf(fp, %s\n, DNEVR+2);
}
+#if 0
(void)rpmdsFree(ds);
ds = NULL;
On Feb 15, 2011, at 7:27 PM, Mark Hatle wrote:
I disabled the rpmdsFree in the previous chunk of code, and now showrc works
as
expected.
Hmm odd ... but -v --showrc isn't something I look at
once every 6 months or so.
This is 5.4.0? If so, you likely have the start of an attempt
to fix
The reproducer for me is simple.
Setup a /etc/rpm/platform with some entries (not sure if this matters), have an
/etc/rpm/sysinfo/Provides with a / as a provide.
Then run rpm -vv --showrc.
I get a double free and crash.. (which is why I started digging into it with
Valgrind.)
On 2/15/11 8:03
On Tuesday 15 February 2011 22:29:09 Jeff Johnson wrote:
If file reports Berkeley DB etc, look for btree or hash. Either
can/will work, but the configuration needs to agree with reality.
It should be btree for 5.2.1 and 5.3.8 (but the dbconvert.sh script is
attempting db-4.6.1 w hash -
On Feb 15, 2011, at 9:18 PM, Silvan Calarco wrote:
This is the difference before and after conversion:
[root@smartqv7 ~]# file rpm/Packages
rpm/Packages: Berkeley DB (Hash, version 9, native byte-order)
[root@smartqv7 ~]# file /var/lib/rpm/Packages
/var/lib/rpm/Packages: Berkeley DB
On Feb 15, 2011, at 9:09 PM, Mark Hatle wrote:
The reproducer for me is simple.
Setup a /etc/rpm/platform with some entries (not sure if this matters), have
an
/etc/rpm/sysinfo/Provides with a / as a provide.
Then run rpm -vv --showrc.
I get a double free and crash.. (which is why I
On Feb 15, 2011, at 10:10 PM, Jeff Johnson wrote:
On Feb 15, 2011, at 9:09 PM, Mark Hatle wrote:
The reproducer for me is simple.
Setup a /etc/rpm/platform with some entries (not sure if this matters), have
an
/etc/rpm/sysinfo/Provides with a / as a provide.
Then run rpm -vv
I'm currently using rpm-5.4.0, and I've encountered a few issues.. however
during this I'm trying to diagnose loading of certain files using --showrc. But
when I do, I get a segfault.
Looking at valgrind output I get:
==3492== Invalid read of size 8
==3492==at 0x53E862A: rpmioGetPool
11 matches
Mail list logo