[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Segmentation fault when trying to run rpm



Jeff Johnson <jbj@redhat.com> wrote:

> If it's related to LANG, then LANG=C rpm ...
should fix.

This didn't help. Wasn't postive about this, just
vaguley remember something about it.

> Hmmm, there's a cpuid instruction there that I
dimly remember
> a mis-compilation with. Try putting
"i686-redhat-linux" in
> /etc/rpm/platform in order to avoid the voo-doo asm.

Still didn't work(was this file suppose to be in
there? wasn't). Produced a different strace. Both
outputed the same strace
strace rpm
strace rpm --rebuilddb
execve("/bin/rpm", ["rpm", "--rebuild"], [/* 24 vars
*/]) = 0
fcntl64(0, F_GETFD)                     = 0
fcntl64(1, F_GETFD)                     = 0
fcntl64(2, F_GETFD)                     = 0
uname({sys="Linux", node="west.DUMMY.com", ...}) = 0
geteuid32()                             = 0
getuid32()                              = 0
getegid32()                             = 0
getgid32()                              = 0
getrlimit(0x3, 0xbffff4c8)              = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024,
rlim_max=RLIM_INFINITY}) = 0
getpid()                                = 3423
rt_sigaction(SIGRTMIN, {0x8141594, [], SA_RESTORER,
0x8161198}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x8140b20, [], SA_RESTORER,
0x8161198}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x8141600, [], SA_RESTORER,
0x8161198}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff4d0,
30, (nil), 0}) = 0
brk(0)                                  = 0x8256f38
brk(0x8257f38)                          = 0x8257f38
brk(0x8258000)                          = 0x8258000
open("/usr/lib/locale/locale-archive",
O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=3788320,
...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) =
0x40000000
close(3)                                = 0
open("/usr/lib/rpm/rpmpopt-4.1", O_RDONLY) = 3
lseek(3, 0, SEEK_END)                   = 19318
lseek(3, 0, SEEK_SET)                   = 0
read(3, "#/*! \\page config_rpmpopt Defaul"...,
19318) = 19318
close(3)                                = 0
brk(0x8259000)                          = 0x8259000
brk(0x825a000)                          = 0x825a000
brk(0x825b000)                          = 0x825b000
open("/etc/popt", O_RDONLY)             = -1 ENOENT
(No such file or directory)
getuid32()                              = 0
geteuid32()                             = 0
open("/root/.popt", O_RDONLY)           = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2601,
...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40200000
read(3, "# Locale name alias data base.\n#"...,
4096) = 2601
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x40200000, 4096)                = 0
open("/usr/share/locale/en_US/LC_MESSAGES/popt.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/popt.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

When I changed LANG=C , 'LANG=C strace rpm
--rebuild' produced:

execve("/bin/rpm", ["rpm", "--rebuild"], [/* 24 vars
*/]) = 0
fcntl64(0, F_GETFD)                     = 0
fcntl64(1, F_GETFD)                     = 0
fcntl64(2, F_GETFD)                     = 0
uname({sys="Linux", node="west.DUMMY.com", ...}) = 0
geteuid32()                             = 0
getuid32()                              = 0
getegid32()                             = 0
getgid32()                              = 0
getrlimit(0x3, 0xbffff4d8)              = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024,
rlim_max=RLIM_INFINITY}) = 0
getpid()                                = 3435
rt_sigaction(SIGRTMIN, {0x8141594, [], SA_RESTORER,
0x8161198}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x8140b20, [], SA_RESTORER,
0x8161198}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x8141600, [], SA_RESTORER,
0x8161198}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffff4e0,
30, (nil), 0}) = 0
brk(0)                                  = 0x8256f38
brk(0x8257f38)                          = 0x8257f38
brk(0x8258000)                          = 0x8258000
open("/usr/lib/rpm/rpmpopt-4.1", O_RDONLY) = 3
lseek(3, 0, SEEK_END)                   = 19318
lseek(3, 0, SEEK_SET)                   = 0
read(3, "#/*! \\page config_rpmpopt Defaul"...,
19318) = 19318
close(3)                                = 0
brk(0x8259000)                          = 0x8259000
brk(0x825a000)                          = 0x825a000
open("/etc/popt", O_RDONLY)             = -1 ENOENT
(No such file or directory)
getuid32()                              = 0
geteuid32()                             = 0
open("/root/.popt", O_RDONLY)           = -1 ENOENT
(No such file or directory)
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++ 

It appears to be getting a little farther, but still
no dice.

Thanks

Steve





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []