Bug 91280
Summary: | Programs compiled against libc and libm produces segmentation faults. | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Bernard Heymann <bernardh> | ||||||||
Component: | libc | Assignee: | Jakub Jelinek <jakub> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 9 | ||||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | i686 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2003-07-10 21:08:43 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Bernard Heymann
2003-05-20 19:11:21 UTC
Created attachment 91840 [details]
Software package
Unpack into a previously created directory called "bsoft":
tar xzvf bsoft20030520.tgz
Also unpack the associated file in the same directory:
tar xzvf lib20030520.tgz
In the bsoft directory, compile with:
bmake
The bsoft.cshrc file contains the required environmental variables to run the
programs.
Created attachment 91841 [details]
Library to the Bsoft package
Unpack inside the bsoft directory:
tar xzvf lib20030520.tgz
Created attachment 91842 [details]
Example image for the Bsoft package
Read this image and write a new image with the Bsoft program, bimg:
bimg -v7 img.pif out.pif
That looks like memory corruption in your program. Try running it under ElectricFence, with MALLOC_CHECK_=3 in environment or under valgrind. I compiled and run valgrind with a couple of my programs, finding a few minor transgressions. However, using valgrind the bug I reported here did not show up and the programs ran normally. Outside valgrind, I got the segmentation fault as mentioned in the original bug report. I'm confident this is not a memory corruption issue, as I have some memory-checking built into the package and I'm conscientiously eliminating memory allocation and deallocation inconsistencies. In addition, this package runs on at least 5 other platforms as well as previous Redhat systems (8 and before). I really think it is a problem in the libraries /lib/tls/libc-2.3.2.so and/or /lib/tls/libm-2.3.2.so (probably /lib/tls/libc-2.3.2.so). Problem solved by upgrading glibc using the following rpms: atrpms-kickstart-9-2.i386.rpm gd-2.0.8-5.i686.rpm glibc-2.3.2-57.i686.rpm glibc-common-2.3.2-57.i386.rpm glibc-debug-2.3.2-57.i386.rpm glibc-devel-2.3.2-57.i386.rpm glibc-kernheaders-2.4-8.18.i386.rpm glibc-profile-2.3.2-57.i386.rpm glibc-utils-2.3.2-57.i386.rpm nptl-devel-2.3.2-57.i686.rpm |