For some packages, rpm seg faults if the package specified is name-version-release. If I only query name-version, it works fine. Example (run as root): # rpm -q gawk-3.1.1-9 Segmentation fault # rpm -q gawk-3.1.1 gawk-3.1.1-9 This worked fine for all other packages in beta2 for me when run as root. But when I run this as non-root, there are two more packages that cannot be queried this way: $ rpm -q grub-0.93-4 Segmentation fault $ rpm -q gzip-1.3.3-9 Segmentation fault I am attaching the strace output of the three failed queries.
Created attachment 94327 [details] rpm -q gawk-3.1.1-9 strace output
Created attachment 94328 [details] rpm -q grub-0.93-4 strace output
Created attachment 94329 [details] rpm -q gzip-1.3.3-9 strace output
works for me: [msw@sid lib]$ rpm -q gawk-3.1.1-9 gawk-3.1.1-9 [msw@sid lib]$ rpm -q grub-0.93-4 grub-0.93-4 [msw@sid lib]$ rpm -q gzip-1.3.3-9 gzip-1.3.3-9 [msw@sid lib]$ rpm -q rpm rpm-4.2.1-0.31 Can you use gdb, that is more useful than strace in getting a diagnosis.
I am trying to do so (rebuilt rpm and installed debuginfo), but ddd/gdb keep telling me "[New Thread -1218546256 (LWP 12320)] Cannot find user-level thread for LWP 12320: generic error" However, I found out more: # LANG=en_US.UTF-8 rpm -q gawk-3.1.1-9 Segmentation fault # LANG=en_GB.UTF-8 rpm -q gawk-3.1.1-9 Segmentation fault # LANG=C rpm -q gawk-3.1.1-9 gawk-3.1.1-9 # LANG=de_AT rpm -q gawk-3.1.1-9 gawk-3.1.1-9 # LANG=de_AT.UTF-8 rpm -q gawk-3.1.1-9 gawk-3.1.1-9 # LANG=de_DE.UTF-8 rpm -q gawk-3.1.1-9 gawk-3.1.1-9 (Same for the other packages, when run as normal user) Can you reproduce it now?
I forgot this one: # LANG=en_US.UTF-8 LC_MESSAGES=C rpm -q gawk-3.1.1-9 gawk-3.1.1-9
still can't reproduce
try rpm --rebuilddb?
Forgot that one. It actually helps - I do not know why ... closing.