SCIENTIFIC-LINUX-USERS Archives

January 2005

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Connie Sieh <[log in to unmask]>
Reply To:
Connie Sieh <[log in to unmask]>
Date:
Tue, 25 Jan 2005 13:18:36 -0600
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (246 lines)
Bill,

On Tue, 25 Jan 2005, Bill Feero wrote:

> I've kept the same kernel source, but reconfigured CONFIG_FS_POSIX_ACL=y
> Still get the fault when running rpm.
>
> I then removed rpm 4.2.3 and installed rpm-4.1.1-1.8x, rpm-python-4.1.1-1.8x, popt-4.1.1-1.8x
> No more illegal instructions/ seg. faults.
>
> The last place I found in the gdb backrace was rpmswNow. I'm going to compare the two sources and see
> if there are any differences.
>
> I started nscd which is also using threads, and have had no problems - I'm starting to think it's not
> a thread issue but something in rpm.
>
> I'll let you know what I find out.
>
>
> Bill
>
> P.S. Somewhere in all my testing I did start with a make distclean and (I hope because of that) a new .config
> file. I have no other Linux but RedHat/Scientific Linux, so the config has to be a 'RedHat' config.
>
> Connie, I'm confused about your comment about getting the kernel source rpm.

All .rpm files are created from .src.rpm files.  These are called SRPM or
src rpm files.  They contain the source code and other files used to build
rpms.  There is a file that controls this build called the .spec file.
These for redhat are placed in the /usr/src/redhat/SPECS/ directory.
The kernel-source-2.4.21-27.0.1.EL.rpm is created by rebuilding from the
kernel-2.4.21-27.0.1.EL.src.rpm.  This also builds all the other kernel
rpms.  RedHat has modified the kernel.spec to not build the .i386 kernels
by default.  I really suggest that you modify the kernel.spec file and
reenable this and build your own kernel out of this.  In the end you will
get a rpm(alot of rpms).  This is better than just a kernel binary.

If your problem is not kernel related then all of this is mute.

Note that neither RedHat nor us support i386/i486.

-Connie Sieh
>
> Can I use the kernel source rpm (kernel-source-2.4.21-27.0.1.EL) from SL, select a 486 processor in the config options,
> and build a 486 kernel? (I settle for 386 if that is a better choice).
>
> I'm forced to use an AMD 5x86 ELAN processor.
>
> My development platform is a Pentium 4 running SL 3.03.
>
> Bill
>
>
> On Tuesday 25 January 2005 11:50 am, Connie Sieh wrote:
> > Bill,
> >
> > It requires either a RedHat based kernel or a 2.6 kernel.  RedHat
> > backported NPTL kernel support to their 2.4 kernels.  If the only reason
> > that you rebuilt a 486 is to get a 486 kernel then I suggest that you
> > get the kernel-2.4.21.xxx.src.rpm and modify the kernel.spec file to
> > build a 386 kernel.  RedHat disabled the rebuilding of the i386 kernel.
> >
> > -Connie Sieh
> > On
> > Mon, 24 Jan 2005, Bill Feero wrote:
> >
> > > Troy,
> > > Where would I check for that? Is it an option when I do my xconfig/menuconfig?
> > > I don't remember seeing it.
> > >
> > > I've attached by kernel config file if that helps.
> > >
> > > Bill
> > >
> > > On Monday 24 January 2005 1:24 pm, Troy Dawson wrote:
> > > > The big question, when building any kernel for a RHEL based system, is
> > > > do you have posix threads turned on for the kernel.  If you arn't sure
> > > > if you have them on or not, then the answer is usually that you don't
> > > > have them on.
> > > >
> > > > The problem is then that everything in S.L. has been compiled to use
> > > > posix threads.  So anything that has threads (such as rpm) then barfs
> > > > when it tries to use threads.
> > > >
> > > > If you do have posix threads turned on ... then I'm totally off.  Which
> > > > happens from time to time :).
> > > >
> > > > Troy
> > > >
> > > > Bill Feero wrote:
> > > > > I'm trying to run SL 3.03 on a 486.
> > > > > when I run a rpm command, it causes a seg. fault. Below is the output from strace rpm --info
> > > > >
> > > > > I've compiled the kernel for a 486.
> > > > > My rpm version is:
> > > > > rpm-4.2.3-10
> > > > > rpm-libs-4.2.3-10
> > > > >
> > > > > I've deleted the files in the rpm database directory, and tried rpm --initdb, but no luck.
> > > > >
> > > > > Is this a kernel issue or something in the rpm build?
> > > > >
> > > > > Any clues as to where to look?
> > > > >
> > > > > --
> > > > > Bill Feero
> > > > > Logical Solutions, Inc.
> > > > >
> > > > >
> > > > >
> > > > > execve("/bin/rpm", ["rpm", "--info"], [/* 20 vars */]) = 0
> > > > > uname({sys="Linux", node="scs.localdomain", ...}) = 0
> > > > > brk(0)                                  = 0x841d000
> > > > > open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
> > > > > open("/etc/ld.so.cache", O_RDONLY)      = 3
> > > > > fstat64(3, {st_mode=S_IFREG|0644, st_size=13689, ...}) = 0
> > > > > old_mmap(NULL, 13689, PROT_READ, MAP_PRIVATE, 3, 0) = 0x375f3000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/librpm-4.2.so", O_RDONLY) = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\237"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=306336, ...}) = 0
> > > > > old_mmap(NULL, 352148, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x21a000
> > > > > old_mmap(0x262000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x48000) = 0x262000
> > > > > old_mmap(0x265000, 44948, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x265000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/librpmdb-4.2.so", O_RDONLY) = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260}\1"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=895512, ...}) = 0
> > > > > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x375f2000
> > > > > old_mmap(NULL, 908160, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x501000
> > > > > old_mmap(0x5d9000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xd7000) = 0x5d9000
> > > > > old_mmap(0x5dd000, 7040, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x5dd000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/librpmio-4.2.so", O_RDONLY) = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320_\0"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=173432, ...}) = 0
> > > > > old_mmap(NULL, 212576, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x968000
> > > > > old_mmap(0x991000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x28000) = 0x991000
> > > > > old_mmap(0x994000, 32352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x994000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/libpopt.so.0", O_RDONLY) = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\24\0\000"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=27440, ...}) = 0
> > > > > old_mmap(NULL, 30416, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x60a000
> > > > > old_mmap(0x611000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x6000) = 0x611000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/libelf.so.1", O_RDONLY)  = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\344\33"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=63264, ...}) = 0
> > > > > old_mmap(NULL, 62060, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x39e000
> > > > > old_mmap(0x3ad000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xf000) = 0x3ad000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/libbeecrypt.so.6", O_RDONLY) = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260L\0"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=120528, ...}) = 0
> > > > > old_mmap(NULL, 119404, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x684000
> > > > > old_mmap(0x69f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x1b000) = 0x69f000
> > > > > close(3)                                = 0
> > > > > mprotect(0x3fff8000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC|PROT_GROWSDOWN) = 0
> > > > > open("/lib/librt.so.1", O_RDONLY)       = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260\32"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=33836, ...}) = 0
> > > > > old_mmap(NULL, 70488, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x9a3000
> > > > > old_mmap(0x9a9000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x5000) = 0x9a9000
> > > > > old_mmap(0x9aa000, 41816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x9aa000
> > > > > close(3)                                = 0
> > > > > open("/lib/libpthread.so.0", O_RDONLY)  = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320A\0"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=99404, ...}) = 0
> > > > > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x375f1000
> > > > > old_mmap(NULL, 331396, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x47b000
> > > > > old_mmap(0x489000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x489000
> > > > > old_mmap(0x48c000, 261764, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x48c000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/libz.so.1", O_RDONLY)    = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340\31"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=52584, ...}) = 0
> > > > > old_mmap(NULL, 55564, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb17000
> > > > > old_mmap(0xb23000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xb000) = 0xb23000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/libbz2.so.1", O_RDONLY)  = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\22"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=62128, ...}) = 0
> > > > > old_mmap(NULL, 61008, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x835000
> > > > > old_mmap(0x843000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xe000) = 0x843000
> > > > > close(3)                                = 0
> > > > > open("/lib/libc.so.6", O_RDONLY)        = 3
> > > > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0l\\\1\000"..., 512) = 512
> > > > > fstat64(3, {st_mode=S_IFREG|0755, st_size=1466548, ...}) = 0
> > > > > old_mmap(NULL, 1194084, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x270000
> > > > > old_mmap(0x38e000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x11d000) = 0x38e000
> > > > > old_mmap(0x391000, 10340, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x391000
> > > > > close(3)                                = 0
> > > > > old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x375f0000
> > > > > munmap(0x375f3000, 13689)               = 0
> > > > > getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
> > > > > setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
> > > > > getpid()                                = 570
> > > > > rt_sigaction(SIGRTMIN, {0x483c78, [], SA_RESTORER, 0x297198}, NULL, 8) = 0
> > > > > rt_sigaction(SIGRT_1, {0x483b60, [RTMIN], SA_RESTORER, 0x297198}, NULL, 8) = 0
> > > > > rt_sigaction(SIGRT_2, {0x483d00, [], SA_RESTORER, 0x297198}, NULL, 8) = 0
> > > > > rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
> > > > > rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0
> > > > > _sysctl({{CTL_KERN, KERN_VERSION}, 2, 0x3fff8c24, 31, (nil), 0}) = 0
> > > > > open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
> > > > > fstat64(3, {st_mode=S_IFREG|0644, st_size=32148976, ...}) = 0
> > > > > mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x373f0000
> > > > > mmap2(NULL, 204800, PROT_READ, MAP_PRIVATE, 3, 0x9c4) = 0x373be000
> > > > > brk(0)                                  = 0x841d000
> > > > > brk(0x843e000)                          = 0x843e000
> > > > > brk(0)                                  = 0x843e000
> > > > > mmap2(NULL, 4096, PROT_READ, MAP_PRIVATE, 3, 0xa12) = 0x373bd000
> > > > > close(3)                                = 0
> > > > > open("/usr/lib/rpm/rpmpopt-4.2.3", O_RDONLY|O_LARGEFILE) = 3
> > > > > _llseek(3, 0, [20869], SEEK_END)        = 0
> > > > > _llseek(3, 0, [0], SEEK_SET)            = 0
> > > > > read(3, "#/*! \\page config_rpmpopt Defaul"..., 20869) = 20869
> > > > > close(3)                                = 0
> > > > > open("/etc/popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
> > > > > open("/root/.popt", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
> > > > > open("/etc/rpm/platform", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
> > > > > uname({sys="Linux", node="scs.localdomain", ...}) = 0
> > > > > rt_sigaction(SIGILL, {0x48757c, [ILL], SA_RESTORER|SA_RESTART, 0x297198}, {SIG_DFL}, 8) = 0
> > > > > rt_sigprocmask(SIG_BLOCK, NULL, [RTMIN], 8) = 0
> > > > > open("/usr/lib/rpm/rpmrc", O_RDONLY|O_LARGEFILE) = 3
> > > > > fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
> > > > > fstat64(3, {st_mode=S_IFREG|0644, st_size=10753, ...}) = 0
> > > > > old_mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x373bb000
> > > > > select(4, [3], NULL, NULL, {1, 0})      = 1 (in [3], left {1, 0})
> > > > > gettimeofday({1106589524, 215532}, NULL) = 0
> > > > > --- SIGILL (Illegal instruction) @ 0 (0) ---
> > > > > rt_sigprocmask(SIG_SETMASK, [RTMIN], NULL, 8) = 0
> > > > > --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> > > > > +++ killed by SIGSEGV +++
> > > >
> > > >
> > >
> > > --
> > > Bill Feero
> > > Logical Solutions, Inc.
> > >
> >
> >
>
>

ATOM RSS1 RSS2